This program stored last five BTC prices
The project consists of three modules
- solana-program (Smart Contract)
- price-sender - module that adds the BTC price to solana-program
- client - solana-program client module (here we can see the average bitcoin price)
solana config set --url https://api.devnet.solana.com
solana airdrop 2
solana airdrop 2
./run.sh build-bpf
./run.sh deploy
./run.sh price_sender
./run.sh client
Here is example of program (with running price-sender)