Readonly
programReadonly
pubkeyLoads the oracle data for this Oracle
account from on chain.
A promise that resolves to the oracle data.
if the oracle account does not exist.
Optional
overrideOptional
overrideLoads the oracle data and checks if the oracle is verified.
A promise that resolves to a tuple containing a boolean indicating if the oracle is verified and the expiration time of the verification.
if the oracle account does not exist.
Static
createCreates a new oracle account. linked to the specified queue. After creation the oracle still must receive run approval and verify their enclave measurement.
The program that owns the oracle account.
The queue that the oracle will be linked to.
A promise that resolves to a tuple containing the oracle account and the transaction signature.
Static
loadLoads the oracle data for a list of Oracle
accounts from on chain.
The program that owns the oracle accounts.
The public keys of the oracle accounts to load.
A promise that resolves to an array of oracle data.
if any of the oracle accounts do not exist.
This class represents an oracle account on chain.