Configuration options for sdk

Hierarchy

  • Options

Properties

env?: Env

The environment to connect to.

Default Value

Env.Mainnet

numConfirmations?: number

Number of block confirmations to wait for a block to finalize.

Default Value

Env.Mainnet: 5
Env.Testnet: 1

signerOrProvider?: Provider | Signer

Give a Signer for transacting with the blockchain.
Give a Provider for read-only operations.

Default Value

If nothing is given, defaults to a Provider for the configured env using Binance RPCs.

Remarks

When providing this field, ensure that it is correct for the configured env. i.e., you are not using a Provider/Signer for testnet when the env is mainnet and vice-versa.

Generated using TypeDoc