Custom Transaction Builder
Last updated
Last updated
The Custom Transaction Builder in Console allows users to interact directly with any smart contract by crafting and executing custom transactions. This tool is ideal for advanced users who need granular control over smart contract interactions or wish to bundle multiple actions in a single transaction across supported networks.
The Custom Transaction Builder provides a flexible interface for creating and sending transactions to any smart contract address. It enables users to:
Interact with specific functions of a smart contract using custom data.
Batch multiple actions into a single transaction, saving time and optimising gas fees.
Follow these steps to create and send a custom transaction using Console’s Custom Transaction Builder:
Select Network:
Choose the network you wish to interact with by selecting one of the supported chains at the top. Ensure the chosen network corresponds to the contract you intend to interact with.
Enter Contract Address:
In the Contract address field, input the contract address or an ENS name if available. This field identifies the contract you wish to interact with.
Provide the ABI (Application Binary Interface):
Paste the ABI of the smart contract in the provided field. The ABI is essential for decoding the contract’s functions and generating the correct transaction data. Common ABIs like erc20 tokens, nfts and safe ABI are available for selection. ABI auto fetching from etherscan is supported on limited networks.
If you frequently interact with the same contracts, you can save ABIs for future use, or use the ABI Templates section for pre-configured templates (if available).
Select Function and Input Parameters:
Once the ABI is loaded, you’ll see a list of functions that the contract supports (if the auto loaded abi does not contain your expected method, paste your own abi). Choose the desired function, and input any necessary parameters directly within the interface. Each parameter corresponds to the data required by that specific function.
Add Transaction to the Queue:
Click Add to queue the transaction. You can add multiple transactions if you want to execute a series of actions in one go. Each added transaction will appear in the Transactions panel on the right.
Review and Download Transactions (Optional):
Before sending, review each transaction in the Transactions list. You can download the transaction data for record-keeping or offline review by clicking Download.
Send to Builder:
Once your transactions are configured, click Send to Builder. This action moves the selected transactions into the main transaction builder, where they’re queued for final execution.
Sign and Execute:
In the main transaction builder, review all queued transactions. When ready, sign and execute them as a single batched transaction. Console will handle the relaying and optimise gas costs for the transaction.
Verify Contract Data: Always double-check the contract address and ABI to ensure you’re interacting with the correct smart contract.
Use Saved ABIs: If you regularly interact with specific contracts, save the ABIs to streamline future interactions.
Batch Wisely: While batching saves on gas fees, ensure that each transaction in the batch is correct. Errors in any transaction may affect the entire batch.
Multi-Step Protocol Interaction: For DeFi protocols where you need to approve, swap, and deposit funds, the Custom Transaction Builder allows you to execute all steps in a single transaction, saving time and fees.
DAO Operations: Execute governance-related transactions that require interaction with multiple smart contracts, or batch several operations into a single transaction.
Repeated Actions: Execute large, fixed operations like executing payroll, or any transactions that need to be repeated often and execute them all in a single go.