Get Payment Requirements
get_payment_requirementsRetrieve payment requirements for a marketplace asset before purchasing. Returns whether the asset is free or paid. For paid assets, includes the x402 payment requirements object that must be signed by the buyer's wallet and passed to the purchase_asset tool.
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": {
"uploadId": "<uploadId>"
},
"name": "get_payment_requirements"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uploadId | Yes | Upload ID of the marketplace asset to check payment requirements for. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset | Yes | Asset metadata. | |
| isFree | Yes | Whether the asset can be downloaded for free. | |
| paymentRequirements | No | x402 payment requirements — present only for paid assets. Sign this with your wallet and pass to purchase_asset. |