write_contract
Interact with smart contracts on BNB Chain by calling state-changing functions. Specify contract address, ABI, function name, arguments, and network to execute write operations securely.
Instructions
Write data to a smart contract by calling a state-changing function
Input Schema
Name | Required | Description | Default |
---|---|---|---|
abi | Yes | The ABI of the smart contract function, as a JSON array | |
args | Yes | The arguments to pass to the function | |
contractAddress | Yes | The address of the smart contract to interact with | |
functionName | Yes | The name of the function to call on the contract | |
network | No | Network name (e.g. 'bsc', 'opbnb', 'ethereum', 'base', etc.) or chain ID. Supports others main popular networks. Defaults to BSC mainnet. | bsc |
privateKey | No | Private key of the sending account. Used only for transaction signing. | 0x5a2b7e4d9c8f1a3e6b0d2c5f4e3d2a1b0c9f8e7d6a5b4c3d2e1f0a9b8c7d6e5f4 |
Input Schema (JSON Schema)
You must be authenticated.
Other Tools from bnbchain-mcp
- approve_token_spending
- check_nft_ownership
- estimate_gas
- get_address_from_private_key
- get_block_by_hash
- get_block_by_number
- get_chain_info
- get_erc1155_balance
- get_erc1155_token_uri
- get_erc20_balance
- get_erc20_token_info
- get_latest_block
- get_native_balance
- get_nft_balance
- get_nft_info
- get_supported_networks
- get_transaction
- get_transaction_receipt
- is_contract
- read_contract
- resolve_ens
- transfer_erc1155
- transfer_erc20
- transfer_native_token
- transfer_nft
- write_contract
Related Tools
- @mcpdotdirect/evm-mcp-server
- @allthatjazzleo/mantrachain-mcp
- @Xiawpohr/metamask-mcp
- @bnb-chain/bnbchain-mcp
- @crazyrabbitLTC/mcp-ethers-server