API

Price Oracle 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

initializePriceOracleV0

Accounts

NameMutabilitySignerDocs
priceOraclemutyes
payermutyes
systemProgramimmutno

Args

NameTypeDocs
argsInitializePriceOracleArgsV0

updatePriceOracleV0

Accounts

NameMutabilitySignerDocs
priceOraclemutno
authoritymutyes
systemProgramimmutno

Args

NameTypeDocs
argsUpdatePriceOracleArgsV0

submitPriceV0

Accounts

NameMutabilitySignerDocs
priceOraclemutno
oracleimmutyes

Args

NameTypeDocs
argsSubmitPriceArgsV0

updatePriceV0

Accounts

NameMutabilitySignerDocs
priceOraclemutno

Args

NameTypeDocs

Accounts

PriceOracleV0

FieldType
authoritypublicKey
numOraclesu8
decimalsu8
oraclesOracleV0
currentPriceu64
lastCalculatedTimestampi64

Types

InitializePriceOracleArgsV0

FieldType
oraclesOracleV0
decimalsu8
authoritypublicKey

SubmitPriceArgsV0

FieldType
oracleIndexu8
priceu64

UpdatePriceOracleArgsV0

FieldType
oracles[object Object]
authoritypublicKey

OracleV0

FieldType
authoritypublicKey
lastSubmittedTimestampi64
lastSubmittedPriceu64
Previous