Neynar · Example Payload

Create X402 Siwx

Create a Sign-In-With-X payload for a wallet-backed x402 resource.

Onchain

Create X402 Siwx is an example object payload from Neynar, with 9 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationIdmethodpathsummarydescriptiontagsparametersrequestBodyresponses

Example Payload

Raw ↑
{
  "operationId": "create-x402-siwx",
  "method": "POST",
  "path": "/v2/signature/x402/siwx",
  "summary": "Create x402 Sign-In-With-X payload",
  "description": "Create a Sign-In-With-X payload for a wallet-backed x402 resource.",
  "tags": [
    "Onchain"
  ],
  "parameters": [
    {
      "name": "",
      "in": "",
      "required": false,
      "description": ""
    },
    {
      "name": "x-api-key",
      "in": "header",
      "required": true,
      "description": "",
      "schema": {
        "type": "string"
      }
    }
  ],
  "requestBody": {
    "required": true,
    "schema": {
      "properties": {
        "chainId": {
          "anyOf": [
            {
              "enum": [
                8453
              ],
              "type": "number"
            },
            {
              "enum": [
                84532
              ],
              "type": "number"
            }
          ],
          "default": 8453
        },
        "resource": {
          "format": "uri",
          "type": "string"
        }
      },
      "required": [
        "resource"
      ],
      "type": "object"
    },
    "example": null
  },
  "responses": {
    "200": {
      "description": "Success",
      "schema": {
        "properties": {
          "address": {
            "$ref": "#/components/schemas/EthAddress"
          },
          "chainId": {
            "anyOf": [
              {
                "enum": [
                  8453
                ],
                "type": "number"
              },
              {
                "enum": [
                  84532
                ],
                "type": "number"
              }
            ]
          },
          "message": {
            "type": "string"
          },
          "signature": {
            "pattern": "^0x[a-fA-F0-9]{130}$",
            "type": "string"
          },
          "timestamp": {
            "type": "number"
          }
        },
        "required": [
          "address",
          "message",
          "signature",
          "timestamp",
          "chainId"
        ],
        "type": "object"
      },
      "example": null
    },
    "400": {
      "description": "Bad Request",
      "schema": {
        "$ref": "#/components/schemas/ErrorRes"
      },
      "example": null
    },
    "401": {
      "description": "Unauthorized",
      "schema": {
        "$ref": "#/components/schemas/ErrorRes"
      },
      "example": null
    },
    "403": {
      "description": "Forbidden",
      "schema": {
        "$ref": "#/components/schemas/ErrorRes"
      },
      "example": null
    },
    "500": {
      "description": "Server Error",
      "schema": {
        "$ref": "#/components/schemas/ErrorRes"
      },
      "example": null
    }
  }
}