ucai_sponsor_gas
Sponsor gas costs for users' smart contract transactions via x402, enabling them to transact without holding network tokens. Works across EVM chains.
Instructions
Sponsor gas for a user's smart contract transaction. The AI agent pays for gas using x402 payment. Fee: 0.10% of gas cost + gas cost in USD.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"userAddress": "<userAddress>",
"contractAddress": "<contractAddress>",
"functionName": "<functionName>",
"args": "<args>",
"abi": "<abi>"
},
"name": "ucai_sponsor_gas"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| abi | Yes | Contract ABI | |
| args | Yes | Function arguments | |
| network | No | The blockchain network to use | arbitrum |
| maxGasUsd | No | Maximum gas in USD to sponsor (default: $5) | |
| userAddress | Yes | User's wallet address | |
| functionName | Yes | Function to call | |
| contractAddress | Yes | Target contract address |