8000 GitHub - huben/solana-dapp-template
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

huben/solana-dapp-template

Repository files navigation

前置安装

启动本地节点

npm install --save @solana/web3.js

cargo build-bpf

solana-test-validator

查看 programId


# Windows and Linux 
npm run address

# Mac
cargo install --git https://github.com/project-serum/anchor --tag v0.24.2 anchor-cli --locked

anchor keys list

并将 programId 替换掉 /programs/src/lib.rs 中的

declare_id!("HesXTDtSzQpnBTJQeFGEBKcigNszXkLTGvqfW2EvPtbG");

发布 program 到本地链上

cd deploy
npm i -S

# 修改网络
solana config set --url localhost

# 空投货币
solana airdrop 10000 HesXTDtSzQpnBTJQeFGEBKcigNszXkLTGvqfW2EvPtbG

npm run deploy

启动 app

cd app
npm i -S
npm run serve

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0