Skip to main content

Smart Contracts

CryptoClaw helps you deploy and interact with smart contracts across supported EVM chains.

Operations

ToolDescriptionConfirmation
write_contractExecute a state-changing contract callYes
read_contractRead data from a contract
get_contract_abiFetch verified contract ABI from explorer
get_contract_sourceFetch verified source code
deploy_contractDeploy a contract from bytecodeYes

Contract deployment

CryptoClaw provides templates for common token standards:
TemplateStandardDescription
ERC-20TokenFungible token with standard transfer/approve
ERC-721NFTNon-fungible token collection

Deployment flow

1

Describe your contract

Tell the agent what you want to deploy. For example: “Deploy an ERC-20 token called MyToken with symbol MTK and 1 million supply”
2

Review parameters

The agent prepares the deployment with gas estimation and shows all parameters for review.
3

Confirm and deploy

Approve the transaction. The agent submits the deployment and returns the contract address.
Always test deployments on a testnet (BSC Testnet, Sepolia) before deploying to mainnet. Mainnet deployments cost real funds and are irreversible.

Contract interaction

Reading contract data

"Read the totalSupply of contract 0x..."
"What's the owner of contract 0x... on BSC?"
"Get the balance of 0x... on the USDT contract"

Writing to contracts

"Call the approve function on USDT contract for 100 tokens"
"Execute the stake function on contract 0x... with 10 BNB"
All write operations require confirmation through the tx-gate.

Explorer integration

CryptoClaw integrates with block explorers via the Etherscan API family:
ChainExplorer
EthereumEtherscan
BSCBSCScan
PolygonPolygonscan
ArbitrumArbiscan
OptimismOptimistic Etherscan
BaseBaseScan

Setup

export ETHERSCAN_API_KEY=your_key_here

Explorer operations

  • Fetch verified contract ABI for dynamic interaction
  • View contract source code
  • Query transaction history
  • Check token transfers
  • Monitor gas prices