Create Greenfield Client
| params | description |
|---|---|
| GRPC_URL | Greenfield grpc url |
| GREEN_CHAIN_ID | Greenfield chain id |
- Browser
- Nodejs
import { Client } from '@bnb-chain/greenfield-js-sdk';
const client = Client.create(GRPC_URL, GREEN_CHAIN_ID);
const { Client } = require('@bnb-chain/greenfield-js-sdk');
const client = Client.create(GRPC_URL, GREEN_CHAIN_ID);
The JS SDK consists of two parts: