API

Circuit Breaker SDK

Quick tip

If you are looking for a quick start guide, check out the Getting Started guide. We also have some react examples here.

Instructions

initialize_account_windowed_breaker_v0

Accounts

NameMutabilitySignerDocs
payerimmutno
circuit_breakerimmutno
token_accountimmutno
ownerimmutno
token_programimmutno
system_programimmutno

Args

NameTypeDocs
args[object Object]

initialize_mint_windowed_breaker_v0

Accounts

NameMutabilitySignerDocs
payerimmutno
circuit_breakerimmutno
mintimmutno
mint_authorityimmutno
token_programimmutno
system_programimmutno

Args

NameTypeDocs
args[object Object]

mint_v0

Accounts

NameMutabilitySignerDocs
mintimmutno
toimmutno
mint_authorityimmutno
circuit_breakerimmutno
token_programimmutno

Args

NameTypeDocs
args[object Object]

remove_mint_authority_v0

Accounts

NameMutabilitySignerDocs
rent_refundimmutno
mintimmutno
authorityimmutno
circuit_breakerimmutno
token_programimmutno

Args

NameTypeDocs

transfer_v0

Accounts

NameMutabilitySignerDocs
fromimmutno
toimmutno
ownerimmutno
circuit_breakerimmutno
token_programimmutno

Args

NameTypeDocs
args[object Object]

update_account_windowed_breaker_v0

Accounts

NameMutabilitySignerDocs
circuit_breakerimmutno
authorityimmutno

Args

NameTypeDocs
args[object Object]

update_mint_windowed_breaker_v0

Accounts

NameMutabilitySignerDocs
authorityimmutno
circuit_breakerimmutno

Args

NameTypeDocs
args[object Object]

Accounts

AccountWindowedCircuitBreakerV0

undefined

MintWindowedCircuitBreakerV0

undefined

Types

AccountWindowedCircuitBreakerV0

FieldType
token_accountpubkey
authoritypubkey
ownerpubkey
config[object Object]
last_window[object Object]
bump_seedu8

InitializeAccountWindowedBreakerArgsV0

FieldType
authoritypubkey
ownerpubkey
config[object Object]

InitializeMintWindowedBreakerArgsV0

FieldType
authoritypubkey
mint_authoritypubkey
config[object Object]

MintArgsV0

FieldType
amountu64

MintWindowedCircuitBreakerV0

FieldType
mintpubkey
authoritypubkey
mint_authoritypubkey
config[object Object]
last_window[object Object]
bump_seedu8

ThresholdType

VariantFields
Percent
Absolute

TransferArgsV0

FieldType
amountu64

UpdateAccountWindowedBreakerArgsV0

FieldType
new_authoritypubkey
config[object Object]

UpdateMintWindowedBreakerArgsV0

FieldType
new_authoritypubkey
config[object Object]

WindowV0

FieldType
last_aggregated_valueu64
last_unix_timestampi64

WindowedCircuitBreakerConfigV0

FieldType
window_size_secondsu64
threshold_type[object Object]
thresholdu64
Previous