Skip to main content

Create Greenfield Client

paramsdescription
GRPC_URLGreenfield grpc url
GREEN_CHAIN_IDGreenfield chain id
import { Client } from '@bnb-chain/greenfield-js-sdk';
const client = Client.create(GRPC_URL, GREEN_CHAIN_ID);

The JS SDK consists of two parts: