/rust-solana-simple-app

This program stored five BTC prices

Primary LanguageRust

Solana program: Index

This program stored last five BTC prices

The project consists of three modules

  1. solana-program (Smart Contract)
  2. price-sender - module that adds the BTC price to solana-program
  3. client - solana-program client module (here we can see the average bitcoin price)

Startup steps

1. Configure solana to work on the local network or in devnet and add some SOL

solana config set --url https://api.devnet.solana.com
solana airdrop 2
solana airdrop 2

2. Build solana-program and generate keypair of program:

./run.sh build-bpf

3. Deploy solana-program:

./run.sh deploy

4. Run bitcoin price sender to solana-program:

./run.sh price_sender

5 Run client:

./run.sh client

Here is example of program (with running price-sender)