Relay Gasless Transaction (Base Mainnet)
Use when an agent wants to execute a transaction on Base without maintaining an ETH balance for gas.
Call
POST https://statepulse-api.hahavoid0.workers.dev/blockchain/send
{
"target_contract": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
"calldata": "0x095ea7b300000000000000000000000055014c5b9781682b3cd1eedfd56e85bfe4a33251ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
"max_gas_fee_usdc": "0.50",
"sender": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"nonce": "0x0000000000000000000000000000000000000000000000000000000000000002",
"valid_before": 1800000000,
"signature": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
}AgentCash command
npx agentcash@latest fetch https://statepulse-api.hahavoid0.workers.dev/blockchain/send -m POST -b '{"target_contract":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","calldata":"0x095ea7b300000000000000000000000055014c5b9781682b3cd1eedfd56e85bfe4a33251ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff","max_gas_fee_usdc":"0.50","sender":"0x742d35Cc6634C0532925a3b844Bc454e4438f44e","nonce":"0x0000000000000000000000000000000000000000000000000000000000000002","valid_before":1800000000,"signature":"0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"}'Not for
Do not use for read-only contract calls (use /blockchain/simulate instead).