Loads the state data from on chain.
A promise that resolves to the state data.
Register a guardian with the global guardian queue.
The parameters object.
The guardian account.
A promise that resolves to the transaction instruction.
Set program-wide configurations.
The configuration parameters.
Optional
addCostWl?: PublicKeyOptional
denyAdvisory?: numberThe deny advisory value.
Optional
guardianQueue?: PublicKeyThe guardian queue account.
Optional
minQuoteVerifyVotes?: BNThe minimum number of votes required to verify a quote.
Optional
newAuthority?: PublicKeyThe new authority account.
Optional
permitAdvisory?: numberThe permit advisory value.
Optional
rmCostWl?: PublicKeyOptional
subsidyAmount?: BNOptional
switchMint?: PublicKeyThe switch mint account.
Optional
testOnlyDisableMrEnclaveCheck?: booleanA flag to disable MrEnclave check for testing purposes.
A promise that resolves to the transaction instruction.
Unregister a guardian from the global guardian queue.
The parameters object.
The guardian account.
A promise that resolves to the transaction instruction.
Static
createInitializes the state account.
The Anchor program instance.
A promise that resolves to the state account and the transaction signature.
Static
keyDerives a state PDA (Program Derived Address) from the program.
The Anchor program instance.
The derived state account's public key.
Static
loadLoads the state data from on chain.
A promise that resolves to the state data.
Abstraction around the Switchboard-On-Demand State account
This account is used to store the state data for a given program.