Skip to main content
POST
/
v2
/
signature
/
x402
Create x402 signature
curl --request POST \
  --url https://api.neynar.com/v2/signature/x402/ \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --header 'x-wallet-id: <x-wallet-id>' \
  --data '
{
  "payment_requirements": {
    "x402Version": 1,
    "accepts": [
      {
        "scheme": "exact",
        "network": "base",
        "maxAmountRequired": "<string>",
        "asset": "0x5a927ac639636e534b678e81768ca19e2c6280b7",
        "payTo": "0x5a927ac639636e534b678e81768ca19e2c6280b7",
        "resource": "<string>",
        "description": "<string>",
        "maxTimeoutSeconds": 123,
        "mimeType": "<string>",
        "outputSchema": {},
        "extra": {}
      }
    ]
  }
}
'
{
  "x402Version": 1,
  "scheme": "exact",
  "network": "base",
  "payload": {
    "signature": "<string>",
    "authorization": {
      "from": "0x5a927ac639636e534b678e81768ca19e2c6280b7",
      "to": "0x5a927ac639636e534b678e81768ca19e2c6280b7",
      "value": "<string>",
      "validAfter": "<string>",
      "validBefore": "<string>",
      "nonce": "<string>"
    }
  }
}

Create x402 Signature

Authorizations

x-api-key
string
header
default:NEYNAR_API_DOCS
required

API key to authorize requests

Headers

x-wallet-id
string
required

Wallet ID to use for transactions

x-api-key
string
required

Body

application/json
payment_requirements
object
required

Response

Success

x402Version
enum<number>
required
Available options:
1
scheme
enum<string>
required
Available options:
exact
network
enum<string>
required
Available options:
base,
base-sepolia
payload
object
required