Readonly
programThe Anchor program instance.
Readonly
pubkeyThe public key of the queue account.
Adds a new MR enclave to the queue. This will allow the queue to accept signatures from the given MR enclave.
A promise that resolves to the transaction instruction.
if the request fails.
if the MR enclave is already added.
if the MR enclave is invalid.
if the MR enclave is not a valid length.
Fetches signatures from a random gateway on the queue.
REST API endpoint: /api/v1/fetch_signatures
A promise that resolves to the feed evaluation responses.
if the request fails.
Optional
gateway?: stringOptional
minOptional
recentOptional
gateway?: stringOptional
minOptional
recentLoads the queue data for this Queue
account from on chain.
A promise that resolves to the queue data.
if the queue account does not exist.
Removes an MR enclave from the queue. This will prevent the queue from accepting signatures from the given MR enclave.
A promise that resolves to the transaction instruction.
if the request fails.
if the MR enclave is not present.
Sets the queue configurations.
Optional
authority?: PublicKeyThe new authority for the queue.
Optional
nodeThe new node timeout for the queue.
Optional
reward?: numberThe new reward for the queue.
A promise that resolves to the transaction instruction.
Sets the oracle permission on the queue.
The oracle to set the permission for.
The permission to set.
A promise that resolves to the transaction instruction
Static
createOptional
allowOptional
lutOptional
maxOptional
nodeOptional
requireOptional
requireOptional
reward?: numberStatic
fetchOptional
gateway?: stringOptional
maxOptional
minOptional
numOptional
recentDeprecated. Use @switchboard-xyz/common#FeedHash.compute instead.
Static
fetchFetches signatures from a random gateway on the queue.
REST API endpoint: /api/v1/fetch_signatures
Optional
gateway?: stringOptional
maxOptional
minOptional
numOptional
recentA promise that resolves to the feed evaluation responses.
if the request fails.
Static
fetchOptional
gateway?: stringOptional
minOptional
recentStatic
fetchOptional
gateway?: stringOptional
minOptional
recent
Abstraction around the Switchboard-On-Demand Queue account
This account is used to store the queue data for a given feed.