build_userop
Construct an unsigned ERC-4337 UserOperation from a transaction request. Returns sender, nonce, callData, buildId; platform fills gas and paymaster data before signing.
Instructions
Build an unsigned ERC-4337 UserOperation from a transaction request. Returns sender, nonce, callData, buildId. Platform fills gas/paymaster fields before signing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet_id | Yes | Smart Account wallet ID (UUID). | |
| type | Yes | Transaction type. | |
| to | No | Recipient address. | |
| amount | No | Amount in smallest units (wei). Example: "1000000000000000000" = 1 ETH, "1000000" = 1 USDC | |
| token | No | Token contract address (for TOKEN_TRANSFER/APPROVE). | |
| contract | No | Contract address (for CONTRACT_CALL). | |
| method | No | Contract method name (for CONTRACT_CALL). | |
| abi | No | Contract ABI (for CONTRACT_CALL). | |
| args | No | Contract method args (for CONTRACT_CALL). | |
| calls | No | Batch calls (for BATCH type). | |
| network | Yes | EVM network (e.g., "ethereum-sepolia"). |