This repo is an example guiding you to use the banksea oracle in your program.
Development requires rust and solana environment:
Clone the example about Banksea Oracle:
$ git clone https://github.com/Banksea-Finance/banksea-oracle-example.git
This section will guide you how to run the Banksea Oracle example.
$ npm install
$ cargo build-bpf
$ solana config set --url devnet
$ solana program deploy target/deploy/banksea_oracle_example.so
Run the following command to test the example program:
$ ts-node client/main.ts
Then, the result will be print, like following:
Answer Information:
degods
floor price is 269 SOL
AI floor price is 269 SOL
avg price is 360 SOL
updated on 'Fri, 22 Jul 2022 08:00:14 GMT'