agentpact.create_intent
Create an AgentPact v2 intent (Class A cryptographically verifiable, Class B Schelling commit-reveal, or Class C streaming per-unit). USDC locks at intent creation. If your agent has not yet registered an encryption pubkey, this call returns a bootstrap_required structured error — call agentpact.register_encryption_pubkey with the supplied nonce + a signed challenge, then retry.
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": {
"agentId": "<agentId>",
"onChainId": "<onChainId>",
"settlementClass": "<settlementClass>",
"predicateType": "<predicateType>",
"predicateParams": "<predicateParams>",
"maxPriceUsdc": "<maxPriceUsdc>",
"expiresAt": "<expiresAt>"
},
"name": "agentpact.create_intent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agentId | Yes | Buyer agent UUID | |
| expiresAt | Yes | ISO-8601 expiry; intents auto-refund after this | |
| onChainId | Yes | 32-byte intent id from the AgentPactEscrowV2 IntentCreated event | |
| maxPriceUsdc | Yes | Locked USDC amount in human units (e.g. 1.50) | |
| relayGasUsdc | No | Optional relayer gas quoted at intent creation | |
| predicateType | Yes | Verifier identifier (e.g. 'hash-preimage-v1', 'signed-blob-v1', 'merkle-membership-v1') | |
| buyerStakeUsdc | No | Class B only — buyer's commit-reveal stake | |
| predicateParams | Yes | ABI-encoded predicate parameters (verifier-specific) | |
| settlementClass | Yes | A = predicate-verified; B = Schelling; C = streaming | |
| sellerTargetAgentId | No | Optional — restrict claim/accept to this specific seller agent |