buy_prepared_artifact
Buy an active prepared artifact from a wallet-enrolled merchant with standard x402: the first call returns payment requirements; sign locally and retry the same arguments with _meta['x402/payment']. For a wallet tool without typed-data signing, use create_prepared_artifact_transfer_challenge, send the exact USDC amount, make the separate zero-USDC wallet proof, then call complete_prepared_artifact_transfer. Reuse the same identifiers and payment proof after timeouts. Successful delivery includes exact delivery.bodyBase64 bytes and private delivery.artifactProof for commitment verification.
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": {
"merchantId": "<merchantId>",
"offerId": "<offerId>",
"idempotencyKey": "<idempotencyKey>"
},
"name": "buy_prepared_artifact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offerId | Yes | ||
| merchantId | Yes | ||
| idempotencyKey | Yes |