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

initializeMintWindowedBreakerV0

Accounts

NameMutabilitySignerDocs
payermutyes
circuitBreakermutno
mintmutno
mintAuthorityimmutyes
tokenProgramimmutno
systemProgramimmutno

Args

NameTypeDocs
argsInitializeMintWindowedBreakerArgsV0

initializeAccountWindowedBreakerV0

Accounts

NameMutabilitySignerDocs
payermutyes
circuitBreakermutno
tokenAccountmutno
ownerimmutyes
tokenProgramimmutno
systemProgramimmutno

Args

NameTypeDocs
argsInitializeAccountWindowedBreakerArgsV0

mintV0

Accounts

NameMutabilitySignerDocs
mintmutno
tomutno
mintAuthorityimmutyes
circuitBreakermutno
tokenProgramimmutno

Args

NameTypeDocs
argsMintArgsV0

transferV0

Accounts

NameMutabilitySignerDocs
frommutno
tomutno
ownerimmutyes
circuitBreakermutno
tokenProgramimmutno

Args

NameTypeDocs
argsTransferArgsV0

updateAccountWindowedBreakerV0

Accounts

NameMutabilitySignerDocs
circuitBreakermutno
authorityimmutyes

Args

NameTypeDocs
argsUpdateAccountWindowedBreakerArgsV0

updateMintWindowedBreakerV0

Accounts

NameMutabilitySignerDocs
authorityimmutyes
circuitBreakermutno

Args

NameTypeDocs
argsUpdateMintWindowedBreakerArgsV0

Accounts

MintWindowedCircuitBreakerV0

FieldType
mintpublicKey
authoritypublicKey
mintAuthoritypublicKey
configWindowedCircuitBreakerConfigV0
lastWindowWindowV0
bumpSeedu8

AccountWindowedCircuitBreakerV0

FieldType
tokenAccountpublicKey
authoritypublicKey
ownerpublicKey
configWindowedCircuitBreakerConfigV0
lastWindowWindowV0
bumpSeedu8

Types

InitializeAccountWindowedBreakerArgsV0

FieldType
authoritypublicKey
ownerpublicKey
configWindowedCircuitBreakerConfigV0

InitializeMintWindowedBreakerArgsV0

FieldType
authoritypublicKey
mintAuthoritypublicKey
configWindowedCircuitBreakerConfigV0

MintArgsV0

FieldType
amountu64

TransferArgsV0

FieldType
amountu64

UpdateAccountWindowedBreakerArgsV0

FieldType
newAuthoritypublicKey
config[object Object]

UpdateMintWindowedBreakerArgsV0

FieldType
newAuthoritypublicKey
config[object Object]

WindowV0

FieldType
lastAggregatedValueu64
lastUnixTimestampi64

WindowedCircuitBreakerConfigV0

FieldType
windowSizeSecondsu64
thresholdTypeThresholdType
thresholdu64

ThresholdType

VariantFields
Percent
Absolute
Previous