Skip to content

Latest commit

 

History

History
50 lines (33 loc) · 1.14 KB

README.md

File metadata and controls

50 lines (33 loc) · 1.14 KB

GreenField JS SDK Next.js

Use React and Next.js

Prepare

install and build

Install dependencies:

pnpm install

Build package:

pnpm -F "@bnb-chain/**" build

Run the demo application

cp .env.simple .env and fill your own configuration:

NEXT_PUBLIC_GRPC_URL=https://gnfd-testnet-fullnode-tendermint-us.bnbchain.org

NEXT_PUBLIC_GREENFIELD_RPC_URL=https://gnfd-testnet-ethapi-us.bnbchain.org
NEXT_PUBLIC_GREEN_CHAIN_ID=5600

# BSC End POINT
NEXT_PUBLIC_BSC_RPC_URL=https://gnfd-bsc-testnet-dataseed1.bnbchain.org
NEXT_PUBLIC_BSC_CHAIN_ID=5601

this is TESTNET's configuration.

Run the demo application: npm run dev

Usage case