Solana / SVM
Programming API reference for the Stork Solana contract.
Last updated
Programming API reference for the Stork Solana contract.
Last updated
Solana contracts can program against using the stork-solana-sdk rust crate available on . This SDK provides useful methods and structs for reading from stork price feed account. The Stork contract and SDK are built on top of .
After setting up your Anchor project, add the stork-solana-sdk to your project dependencies by adding the following line to the [dependencies]
section of the programs Cargo.toml
:
or the following command:
You can now import the stork-sdk's interfaces with:
Documentation for the methods, structs, and constants provided by the stork-solana-sdk can be found on .
Example usage of the stork-solana-sdk for consuming Stork prices can be found in the .
Stork's contract depends on the and , and contains useful methods for writing to the Stork Config account, as well as Temporal Numeric Value Feed PDA accounts that represent Stork data feeds. The full source-code can be found in the . For the official deployments, please see the .