> For the complete documentation index, see [llms.txt](https://docs.blockdagnetwork.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.blockdagnetwork.io/block-explorer/evm/contract-listing/contract-details/contract-tab/write-tab.md). Agents can also search and read this documentation through its [MCP server](https://docs.blockdagnetwork.io/~gitbook/mcp).

# Write Tab

The Write Contract Tab allows users to perform state-changing actions on a smart contract, such as transferring tokens, updating settings, or triggering specific operations. These interactions modify the blockchain's state and require wallet authorization.

<figure><img src="https://126349725-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fz6Eka3ZszH6j0B9pIhsV%2Fuploads%2FlVpAwGrjt3b2gu0s4wBL%2Fimage.png?alt=media&amp;token=5124c10c-c850-4650-b038-ec17bd070406" alt=""><figcaption></figcaption></figure>

**Wallet Connection**

Users must connect their wallet to execute write functions. This ensures secure interactions, allows authentication and facilitates the payment of gas fees required for the transaction.

**Contract Information**

* **Callable Functions:** The tab lists all available write functions within the smart contract *(e.g., batchTransferETH)*. These methods enable users to make changes to the blockchain's data.
* **Expandable Functions:** Clicking on a function name expands it to reveal input fields and options for user interaction.
* **Input Fields:** Each function displays the required inputs *(e.g., wallet addresses, token amounts)* that users must provide to execute the operation.

**Executing Transactions**

* **Execute Button:** Once all input fields are completed, users can click the Execute button to initiate the transaction. This will prompt the connected wallet for confirmation.
* **Gas Fees:** Executing write functions incurs gas fees. The estimated fee is displayed in the wallet confirmation screen, ensuring users are aware of the cost before approving the transaction.
