lib.rs
:
initialize
function takes a number (data
) and stores it in a new account
Initialize
struct defines what accounts our function needs
NewAccount
defines the structure of our data storage
declare_id!()
address updates - this will be your program’s address on SOON Network.
https://rpc.fc.devnet.soo.network/rpc
tests/anchor.test.ts
. This demonstrates how to interact with your program:
[PROGRAM-ID]
with the address shown in your declare_id!()
.