Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 612 Bytes

0_anchor_init.md

File metadata and controls

26 lines (20 loc) · 612 Bytes

Anchor Init

$ git checkout tags/0

Let's create a new anchor project and setup the directory

anchor init vrf-client
cd vrf-client
rm -rf app migrations

We'll need to update our program ID to our unique deploy keypair. First build the example program to generate the target directory and deploy keypair. Then grab your program ID and update Anchor.toml and programs/vrf-client/src/lib.rs.

$ anchor build
$ solana-keygen pubkey target/deploy/vrf_client-keypair.json
D79gSNtjonBFmDfc4zznoYaJHPwGTb35zHQ1EPUPsxxp