Authorizations
A JWT signed using your CDP API Key Secret, encoded in base64. Refer to the Generate Bearer Token section of our Authentication docs for information on how to generate your Bearer Token.
Body
The version of the x402 protocol.
1
1
The x402 protocol payment payload that the client attaches to x402-paid API requests to the resource server in the X-PAYMENT header.
{
"x402Version": 1,
"scheme": "exact",
"network": "base",
"payload": {
"signature": "0xf3746613c2d920b5fdabc0856f2aeb2d4f88ee6037b8cc5d04a71a4462f13480",
"authorization": {
"from": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"to": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"value": "1000000000000000000",
"validAfter": "1716150000",
"validBefore": "1716150000",
"nonce": "0x1234567890abcdef1234567890abcdef12345678"
}
}
}
The x402 protocol payment requirements that the resource server expects the client's payment payload to meet.
Response
Successfully settled payment on the x402 protocol.
Indicates whether the payment settlement is successful.
false
The onchain address of the client that is paying for the resource.
For EVM networks, the payer will be a 0x-prefixed, checksum EVM address.
For Solana-based networks, the payer will be a base58-encoded Solana address.
"0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
The transaction of the settlement. For EVM networks, the transaction will be a 0x-prefixed, EVM transaction hash. For Solana-based networks, the transaction will be a base58-encoded Solana signature.
"0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
The network where the settlement occurred.
"base"
The reason the payment settlement errored on the x402 protocol.
insufficient_funds
, invalid_scheme
, invalid_network
, invalid_x402_version
, invalid_payment_requirements
, invalid_payload
, invalid_exact_evm_payload_authorization_value
, invalid_exact_evm_payload_authorization_valid_after
, invalid_exact_evm_payload_authorization_valid_before
, invalid_exact_evm_payload_authorization_typed_data_message
, invalid_exact_evm_payload_authorization_from_address_kyt
, invalid_exact_evm_payload_authorization_to_address_kyt
, invalid_exact_evm_payload_signature_address
, settle_exact_svm_block_height_exceeded
, settle_exact_svm_transaction_confirmation_timed_out
"insufficient_funds"