The Ethereum address in which to get the BNB balance.
Returns a BigNumber hexadecimal value of the BNB balance of the address.
This is a generic method for invoking JSON RPC's eth_call with Ethers.js.
Use this method to execute a smart contract's constant or non-constant
member without using gas. This is a read-only method intended to read a
value or test a transaction for valid parameters. It does not create a
transaction on the block chain.
The Ethereum address the transaction is directed to.
The smart contract member in which to invoke.
Return value of the invoked smart contract member or an error object if the call failed.
This is a generic method for invoking JSON RPC's eth_sendTransaction with
Ethers.js. Use this method to create a transaction that invokes a smart
contract method. Returns an Ethers.js TransactionResponse object.
The Ethereum address the transaction is directed to.
The smart contract member in which to invoke.
Returns an Ethers.js TransactionResponse object or an error
object if the transaction failed.
Fetches the current Ether balance of a provided Ethereum address.
(async function () { balance = await Venus.eth.getBalance(myAddress, provider); console.log('My BNB Balance', +balance); })().catch(console.error);