{
  "info": {
    "_postman_id": "dfb17b4d-2535-4bb4-aad9-10001596484b",
    "name": "RpcNode Public API",
    "description": "The RpcNode Public API is a signed HTTPS JSON interface for a merchant's servers. Create payments and receive a\n`paid` event (with a free AML result), watch addresses and transactions, receive block events, manage JSON-RPC\nendpoints, and read your plan, usage and network prices.\n\nJSON-RPC traffic itself goes to each endpoint URL (`https://{network}-{env}.rpcnode.dev/{uuid}`, see\n`GET /endpoints`), **not** through this host, and must not carry the signing headers below.\n\n## Base URL\n\n`https://api.rpcnode.dev/v1`. Every path in this file is relative to it (`/account`, `/usage`,\n`/networks`, ...).\n\n## Authentication (HMAC-SHA256 request signing)\n\nEvery request carries three headers:\n\n| Header | Value |\n|---|---|\n| `X-Api-Key` | the id of the API key (a UUID from \"API keys\" in the dashboard) |\n| `X-Timestamp` | Unix time in seconds; at most +/-300 seconds from the server time |\n| `X-Signature` | lowercase hex `HMAC-SHA256(secret, canonical)`; `secret` is the `sk_live_...` value shown once when the key is created |\n\nThe canonical string is four lines joined by a single `\\n` (no newline after the last line):\n\n```\n{timestamp}\\n{METHOD}\\n{path?query}\\n{sha256_hex(body)}\n```\n\n* `METHOD` is upper case (`GET`, `POST`, `PUT`, `PATCH`, `DELETE`).\n* The signed path is the **full request target as the server sees it**: `/v1/<route>` plus\n  `?query` when there is one (for example `/v1/usage?days=30`). The host is not part of it. The query\n  **is signed**, so build the query string once and use the same string in the signature and in the URL.\n* `body` is the raw body bytes as sent; with no body hash the empty string\n  (`e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855`). Sign the exact string you send. Requests with a\n  body use `Content-Type: application/json`.\n\nDetails, curl and Node.js examples: https://docs.rpcnode.dev/public-api/authentication\n\n## Rate limits\n\n* 30 requests per second per client address (any request: with a key, without one, with a wrong one);\n  429 `public_api.rate_limited`, `Retry-After: 1`.\n* 600 requests per minute per account (all of its API keys together), on every plan;\n  429 `public_api.rate_limited`, `Retry-After` until the start of the next minute.\n* 20 failed sign-ins per minute per client address (unknown key, address not allowed, wrong signature or time);\n  then the address waits for the next minute: 429 `public_api.too_many_failures`, even for a correct signature.\n\nThese limits are separate from the plan's `rps_limit`, which applies to JSON-RPC traffic on endpoint URLs and is\nheld by the gateway. API requests and RPC requests do not take from each other.\n\n## Responses and errors\n\nSuccess is `{\"ok\": true, ...}`. A field that has no value is **not written** (it is never `null`): read a missing\nfield as \"no value\". Money amounts are strings. Resource ids are UUIDs (`uuid` of an endpoint, `watch_id` of a watch,\n`payment_id` of a payment, `slug` of a network); numeric database ids are never shown or accepted.\n\nFailure is `{\"ok\": false, \"error_code\": \"...\", \"error\": \"...\"}`. A request that cannot be accepted (wrong body, bad\nquery value, unknown field) is **400** with an `errors` list that names every wrong field, not only the first. A\nvalue outside its bounds is refused with the field named, never replaced by a default, and an unknown field in a body\nis refused too (a typo is never dropped silently).\n\nThe request body is limited to 1 MiB (413) and to a JSON nesting depth of 16 (400 `public_api.body_too_deep`).\n\n## Outbound events\n\nEvents reach your server over an HTTP webhook (`PUT /webhooks`) or a Pusher-compatible WebSocket\n(`PUT /realtime/subscription`); these are two separate transports with separate settings. The bodies and the\n`X-RpcNode-Signature` header of webhook deliveries are described under `webhooks` in this document.\n\nDocs: https://docs.rpcnode.dev/public-api/overview - Agent brief: https://rpcnode.dev/llms.txt\n\n## Using this collection\n\n1. Import the environment \"RpcNode Public API\" too, select it, and set `apiKey` (the key UUID from the cabinet) and `apiSecret` (the `sk_live_…` secret shown once).\n\n2. Send any request: the collection signs it by itself (pre-request script), so do not add X-Api-Key / X-Timestamp / X-Signature by hand.\n\n3. Path ids (`watchId`, `paymentId`, `uuid`, `slug`, …) are collection variables: set them, or replace `{{…}}` in the URL.\n\nGenerated from https://rpcnode.dev/openapi.yaml — download the newest one from https://docs.rpcnode.dev/public-api/postman.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "version": "1.0"
  },
  "item": [
    {
      "name": "Account",
      "description": "The plan behind the API key with its limits and usage, and the daily usage series.",
      "item": [
        {
          "name": "Plan, limits and what is used",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/account",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "account"
              ]
            },
            "description": "`GET /v1/account` · operationId `getAccount`\n\nThe plan of the account that owns the API key, with its limits and how much of them is used. Takes no query\nparameters or body. `plan` is absent when the account has no plan (the response is then just `{\"ok\": true}`).\n\n`rps_limit` is the limit of JSON-RPC traffic on your endpoints; it is **not** the rate limit of this API."
          },
          "response": [
            {
              "name": "200 The plan of the account.",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/account",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "account"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"ok\": true,\n  \"plan\": {\n    \"slug\": \"pro\",\n    \"name\": \"Pro\",\n    \"included_credits\": 1000000,\n    \"credit_used\": 12000,\n    \"rps_limit\": 50,\n    \"rps_used\": 3,\n    \"webhook_address_slots\": 100,\n    \"address_slots_used\": 2,\n    \"payment_slots\": 20,\n    \"payment_slots_used\": 1,\n    \"payments_per_month\": 500,\n    \"payments_per_month_used\": 14,\n    \"price_monthly_cents\": 4900,\n    \"billing_period\": \"monthly\",\n    \"subscription_status\": \"active\",\n    \"started_at\": \"2026-08-01T00:00\",\n    \"expires_at\": \"2026-09-01T00:00\"\n  }\n}"
            }
          ]
        },
        {
          "name": "Requests and credits of the account by day",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/usage",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "usage"
              ],
              "query": [
                {
                  "key": "days",
                  "value": "30",
                  "description": "Window length in days. Any other value is rejected with 400, not replaced by the default. The query string is part of the signed path. One of: `7`, `30`, `90`. Default: `30`.",
                  "disabled": true
                }
              ]
            },
            "description": "`GET /v1/usage` · operationId `getUsage`\n\nRequests and credits of the whole account over the last 7, 30 or 90 days, with the top 20 methods and a webhook\nbreakdown. `series` has exactly one point per day, oldest first, ending today (UTC); days without usage are\nzeros. Webhook deliveries appear in `methods` as `webhook:address-watch`, `webhook:payment`, `webhook:block`\nand `webhook:tx-watch`, and are already part of the totals.\nPlan-period counters (`credit_used`, slots) are in `GET /account`."
          },
          "response": [
            {
              "name": "200 Usage of the account.",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/usage",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "usage"
                  ],
                  "query": [
                    {
                      "key": "days",
                      "value": "30",
                      "description": "Window length in days. Any other value is rejected with 400, not replaced by the default. The query string is part of the signed path. One of: `7`, `30`, `90`. Default: `30`.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"ok\": true,\n  \"usage\": {\n    \"days\": 7,\n    \"total_requests\": 0,\n    \"total_credits\": 0,\n    \"series\": [\n      {\n        \"date\": \"2026-01-01\",\n        \"requests\": 0,\n        \"credits\": 0\n      }\n    ],\n    \"methods\": [\n      {\n        \"method\": \"<method>\",\n        \"requests\": 0,\n        \"credits\": 0\n      }\n    ],\n    \"webhooks\": {\n      \"requests\": 0,\n      \"credits\": 0,\n      \"address_watch_requests\": 0,\n      \"address_watch_credits\": 0,\n      \"block_requests\": 0,\n      \"block_credits\": 0,\n      \"payment_requests\": 0,\n      \"payment_credits\": 0,\n      \"tx_watch_requests\": 0,\n      \"tx_watch_credits\": 0\n    }\n  }\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "Networks",
      "description": "Network catalog, credit prices, RPC methods, live status and payment tokens.",
      "item": [
        {
          "name": "Active networks and their environments",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/networks",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "networks"
              ]
            },
            "description": "`GET /v1/networks` · operationId `listNetworks`\n\nActive networks ordered by `sort`, with the slugs of their active environments. The same slugs are the\n`env_slug` values for creating an endpoint. `scan_environment_kinds` is the subset where on-chain events\n(Address Watch, Tx Watch, Payments, block webhooks) are available; it is an empty array when none. Takes no\nquery parameters or body."
          },
          "response": [
            {
              "name": "200 The networks.",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/networks",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "networks"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"ok\": true,\n  \"networks\": [\n    {\n      \"uuid\": \"00000000-0000-4000-8000-000000000000\",\n      \"name\": \"<name>\",\n      \"slug\": \"<slug>\",\n      \"sort\": 0,\n      \"environment_kinds\": [\n        \"<environment_kinds>\"\n      ],\n      \"scan_environment_kinds\": [\n        \"<scan_environment_kinds>\"\n      ]\n    }\n  ]\n}"
            }
          ]
        },
        {
          "name": "Credit prices of webhooks and blocks per environment",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/networks/{{slug}}/credits",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "networks",
                "{{slug}}",
                "credits"
              ]
            },
            "description": "`GET /v1/networks/{slug}/credits` · operationId `getNetworkCredits`\n\nWhat an Address Watch event, a payment, a Tx Watch delivery and a block webhook cost in credits, per\nenvironment of the network. `address_watch_credits` is charged once, with the first event of a transaction;\n`payment_credits` once, when the money of a payment is first seen; `tx_watch_credits` for the final delivery of a\nwatched hash (0 means free); `block_credits` is the price of one block webhook (the price of the network's\nget-block call). Test webhooks are not charged. An unknown or inactive network gives 404 `network.not_found`."
          },
          "response": [
            {
              "name": "200 Prices of the network.",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/networks/{{slug}}/credits",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "networks",
                    "{{slug}}",
                    "credits"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"ok\": true,\n  \"network_slug\": \"<network_slug>\",\n  \"network_name\": \"<network_name>\",\n  \"environments\": [\n    {\n      \"slug\": \"<slug>\",\n      \"name\": \"<name>\",\n      \"kind\": \"mainnet\",\n      \"address_watch_credits\": 0,\n      \"payment_credits\": 0,\n      \"block_credits\": 0,\n      \"tx_watch_credits\": 0\n    }\n  ]\n}"
            }
          ]
        },
        {
          "name": "RPC methods of a network and their price",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/networks/{{slug}}/methods",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "networks",
                "{{slug}}",
                "methods"
              ]
            },
            "description": "`GET /v1/networks/{slug}/methods` · operationId `getNetworkMethods`\n\nThe active RPC methods the network serves and what each costs in credits, ordered by `sort`. A method can\nappear several times with different `variant` values (for example `default` and `full`); the price depends on the\nvariant. For REST-style families `method` is a path such as `/v1/accounts/{address}`. An unknown or inactive\nnetwork gives 404 `network.not_found`."
          },
          "response": [
            {
              "name": "200 Methods of the network.",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/networks/{{slug}}/methods",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "networks",
                    "{{slug}}",
                    "methods"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"ok\": true,\n  \"network_slug\": \"<network_slug>\",\n  \"network_name\": \"<network_name>\",\n  \"protocol\": \"<protocol>\",\n  \"methods\": [\n    {\n      \"uuid\": \"00000000-0000-4000-8000-000000000000\",\n      \"method\": \"<method>\",\n      \"variant\": \"<variant>\",\n      \"credits\": 0,\n      \"http_methods\": [\n        \"<http_methods>\"\n      ],\n      \"sort\": 0,\n      \"description\": \"<description>\"\n    }\n  ]\n}"
            }
          ]
        },
        {
          "name": "Live status of all active networks",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/network-status",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "network-status"
              ]
            },
            "description": "`GET /v1/network-status` · operationId `getNetworkStatus`\n\nStatus, chain tip height and node latency of every active network, as last measured. The figures are of one\nenvironment per network (`environment_kind`). `status` is `ok`, `degraded`, `unknown` (no recent status) or\n`unsupported`. `latency_ms`, `block_height` and `environment_kind` are absent when there is no value. Cheap to\npoll, but remember the API limit of 600 requests per minute per account."
          },
          "response": [
            {
              "name": "200 Status of the networks.",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/network-status",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "network-status"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"ok\": true,\n  \"checked_at\": \"2026-01-01T00:00:00Z\",\n  \"networks\": [\n    {\n      \"slug\": \"<slug>\",\n      \"name\": \"<name>\",\n      \"status\": \"ok\",\n      \"latency_ms\": 0,\n      \"block_height\": 0,\n      \"environment_kinds\": [\n        \"<environment_kinds>\"\n      ],\n      \"environment_kind\": \"<environment_kind>\",\n      \"checked_at\": \"2026-01-01T00:00:00Z\"\n    }\n  ]\n}"
            }
          ]
        },
        {
          "name": "Tokens of a network accepted for payments",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/network-tokens?network_slug=",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "network-tokens"
              ],
              "query": [
                {
                  "key": "network_slug",
                  "value": "",
                  "description": "Network slug (for example `ethereum`); case-insensitive. Required.",
                  "disabled": false
                }
              ]
            },
            "description": "`GET /v1/network-tokens` · operationId `listNetworkTokens`\n\nTokens of a network that can be used for payments, by contract, with symbol and decimals. Use `contract` as\n`token_contract` in `POST /payments`. The **coin** of the network (ETH, TRX, BNB, ...) is not a token and is not\nlisted: a payment without `token_contract` is made in the coin. Only tokens enabled for payments are listed, each\nonce. A slug that matches no network gives an empty `items` array, not 404. Order: USDT, USDC, DAI and WETH first,\nthen by symbol."
          },
          "response": [
            {
              "name": "200 Tokens of the network (an empty array when none).",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/network-tokens?network_slug=",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "network-tokens"
                  ],
                  "query": [
                    {
                      "key": "network_slug",
                      "value": "",
                      "description": "Network slug (for example `ethereum`); case-insensitive. Required.",
                      "disabled": false
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"ok\": true,\n  \"items\": [\n    {\n      \"network_slug\": \"<network_slug>\",\n      \"contract\": \"<contract>\",\n      \"symbol\": \"<symbol>\",\n      \"decimals\": 0\n    }\n  ]\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "Address Watch",
      "description": "Watch on-chain addresses and read the events they produce. On TRON mainnet incoming TRX below 0.001 is spam and produces no event.",
      "item": [
        {
          "name": "Address slots and webhook state",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/address-watches/account",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "address-watches",
                "account"
              ]
            },
            "description": "`GET /v1/address-watches/account` · operationId `getAddressWatchAccount`\n\nAddress slots of the plan (how many there are and how many are taken) plus the webhook state. Read-only;\nchange the webhook with `PUT /webhooks`. `webhook_address_slots` 0 means Address Watch is not available on the plan."
          },
          "response": [
            {
              "name": "200 Slots of the account.",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/address-watches/account",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "address-watches",
                    "account"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"ok\": true,\n  \"account\": {\n    \"webhook_address_slots\": 0,\n    \"address_slots_used\": 0,\n    \"webhook_url\": \"<webhook_url>\",\n    \"webhook_enabled\": false\n  }\n}"
            }
          ]
        },
        {
          "name": "List watched addresses",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/address-watches",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "address-watches"
              ],
              "query": [
                {
                  "key": "network_slug",
                  "value": "",
                  "description": "Exact watch network key (trimmed, lowercased), for example `ethereum` or `ethereum-sepolia`.",
                  "disabled": true
                },
                {
                  "key": "address",
                  "value": "",
                  "description": "Case-insensitive substring of the address (not only a prefix), after the same normalization as on add.",
                  "disabled": true
                },
                {
                  "key": "page",
                  "value": "1",
                  "description": "Page number, 1 to 10000 (default 1). Default: `1`.",
                  "disabled": true
                },
                {
                  "key": "per_page",
                  "value": "20",
                  "description": "Page size, 1 to 100 (default 20). Default: `20`.",
                  "disabled": true
                }
              ]
            },
            "description": "`GET /v1/address-watches` · operationId `listAddressWatches`\n\nActive and stopped watches (deleted ones are not listed), newest first. A page, per_page or text value outside\nits bounds is rejected with 400 and an `errors` list naming the parameter."
          },
          "response": [
            {
              "name": "200 A page of watches.",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/address-watches",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "address-watches"
                  ],
                  "query": [
                    {
                      "key": "network_slug",
                      "value": "",
                      "description": "Exact watch network key (trimmed, lowercased), for example `ethereum` or `ethereum-sepolia`.",
                      "disabled": true
                    },
                    {
                      "key": "address",
                      "value": "",
                      "description": "Case-insensitive substring of the address (not only a prefix), after the same normalization as on add.",
                      "disabled": true
                    },
                    {
                      "key": "page",
                      "value": "1",
                      "description": "Page number, 1 to 10000 (default 1). Default: `1`.",
                      "disabled": true
                    },
                    {
                      "key": "per_page",
                      "value": "20",
                      "description": "Page size, 1 to 100 (default 20). Default: `20`.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"ok\": true,\n  \"items\": [\n    {\n      \"watch_id\": \"00000000-0000-4000-8000-000000000000\",\n      \"network_slug\": \"<network_slug>\",\n      \"address\": \"<address>\",\n      \"status\": \"active\",\n      \"created_at\": \"2026-01-01T00:00:00Z\"\n    }\n  ],\n  \"pagination\": {\n    \"page\": 0,\n    \"per_page\": 0,\n    \"total\": 0,\n    \"has_more\": false\n  }\n}"
            }
          ]
        },
        {
          "name": "Start watching an address",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"network_slug\": \"<network_slug>\",\n  \"address\": \"<address>\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{baseUrl}}/address-watches",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "address-watches"
              ]
            },
            "description": "`POST /v1/address-watches` · operationId `addAddressWatch`\n\nStarts watching an address on a network. Takes one address slot. A plan without address slots (Free) has a small\n**sandbox** of address slots (3 by default) that works on testnet networks only; on a main network it gets 403\n`watch.address_testnet_only` (\"Free: only testnet networks\"). Adding an address that is already watched is\nnot an error: the existing active watch is returned and no extra slot is taken. Adds and deletes are rate-limited\nper account (day, week and month budgets that grow with the number of slots): over the budget the call fails with\n429 `watch.quota`.\n\nErrors: 400 `watch.network_required`, `watch.address_required`, `watch.scan_not_enabled` (the network key cannot be\nwatched), `watch.no_plan`; 403 `watch.address_unavailable` (no address slots on the plan), `watch.address_testnet_only`\n(Free sandbox: only testnet networks), `watch.address_limit` (all slots are taken); 503 `watch.ingest_unavailable` (retry); 500 `watch.save_failed` (retry).\n\n### Body\n\n| Field | Type | Required | Description |\n|---|---|---|---|\n| `network_slug` | string | yes | Watch network key (trimmed, lowercased). Mainnet is the base network slug (`ethereum`); other environments are `{network}-{env}` (`ethereum-sepolia`). The environment must be available for watching, otherwise `watch.scan_not_enabled`. |\n| `address` | string | yes | Address to watch (trimmed). 0x... addresses are lowercased (32-byte addresses such as Aptos/Sui/Starknet are written with all 64 digits); other encodings (Tron T..., Bitcoin, Solana) keep their case. |"
          },
          "response": [
            {
              "name": "200 The created (or already active) watch.",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/address-watches",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "address-watches"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"ok\": true,\n  \"address\": {\n    \"watch_id\": \"00000000-0000-4000-8000-000000000000\",\n    \"network_slug\": \"<network_slug>\",\n    \"address\": \"<address>\",\n    \"status\": \"active\",\n    \"created_at\": \"2026-01-01T00:00:00Z\"\n  }\n}"
            }
          ]
        },
        {
          "name": "Stop watching an address",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/address-watches/{{watchId}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "address-watches",
                "{{watchId}}"
              ]
            },
            "description": "`DELETE /v1/address-watches/{watchId}` · operationId `deleteAddressWatch`\n\nStops watching an address and frees its slot at once; counts against the delete budget (429 `watch.quota` when\nexceeded). There is no request body. An unknown, foreign or malformed id returns 404 `watch.not_found`. Events\nalready recorded for the watch stay readable through `GET /address-watches/events`."
          },
          "response": [
            {
              "name": "200 The watch was removed.",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/address-watches/{{watchId}}",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "address-watches",
                    "{{watchId}}"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"ok\": true\n}"
            }
          ]
        },
        {
          "name": "Recent events of watched addresses",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/address-watches/events",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "address-watches",
                "events"
              ],
              "query": [
                {
                  "key": "watch_id",
                  "value": "",
                  "description": "Only events of this watch.",
                  "disabled": true
                },
                {
                  "key": "network_slug",
                  "value": "",
                  "description": "Exact watch network key (lowercased), for example `tron`.",
                  "disabled": true
                },
                {
                  "key": "address",
                  "value": "",
                  "description": "Case-insensitive prefix of the event address, after address normalization.",
                  "disabled": true
                },
                {
                  "key": "event_type",
                  "value": "payment",
                  "description": "Kind of event. Anything else returns 400 `watch.invalid_event_type`. One of: `payment`, `payout`, `other`.",
                  "disabled": true
                },
                {
                  "key": "tx_hash",
                  "value": "",
                  "description": "Case-insensitive prefix of the transaction hash.",
                  "disabled": true
                },
                {
                  "key": "before_id",
                  "value": "",
                  "description": "Cursor - the `id` of an event; only events older than it are returned. An id that matches no event returns an empty page.",
                  "disabled": true
                },
                {
                  "key": "page",
                  "value": "1",
                  "description": "Page number, 1 to 10000 (default 1). Default: `1`.",
                  "disabled": true
                },
                {
                  "key": "per_page",
                  "value": "50",
                  "description": "Page size, 1 to 100 (default 50). Default: `50`.",
                  "disabled": true
                }
              ]
            },
            "description": "`GET /v1/address-watches/events` · operationId `listAddressEvents`\n\nEvents of your watched addresses over the last day, newest first. The transaction details are flattened onto\neach event (no nested payload); the keys after `created_at` follow the Address Watch webhook event format\n(`schema_version` \"2\").\n\nThis is a recent log, not an archive; use a webhook or WebSocket for delivery. The `id` of an event is a UUID and\nis stable. To read the log page by page without gaps while new events arrive, pass the `id` of the last event you\nreceived as `before_id` instead of increasing `page`."
          },
          "response": [
            {
              "name": "200 A page of events.",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/address-watches/events",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "address-watches",
                    "events"
                  ],
                  "query": [
                    {
                      "key": "watch_id",
                      "value": "",
                      "description": "Only events of this watch.",
                      "disabled": true
                    },
                    {
                      "key": "network_slug",
                      "value": "",
                      "description": "Exact watch network key (lowercased), for example `tron`.",
                      "disabled": true
                    },
                    {
                      "key": "address",
                      "value": "",
                      "description": "Case-insensitive prefix of the event address, after address normalization.",
                      "disabled": true
                    },
                    {
                      "key": "event_type",
                      "value": "payment",
                      "description": "Kind of event. Anything else returns 400 `watch.invalid_event_type`. One of: `payment`, `payout`, `other`.",
                      "disabled": true
                    },
                    {
                      "key": "tx_hash",
                      "value": "",
                      "description": "Case-insensitive prefix of the transaction hash.",
                      "disabled": true
                    },
                    {
                      "key": "before_id",
                      "value": "",
                      "description": "Cursor - the `id` of an event; only events older than it are returned. An id that matches no event returns an empty page.",
                      "disabled": true
                    },
                    {
                      "key": "page",
                      "value": "1",
                      "description": "Page number, 1 to 10000 (default 1). Default: `1`.",
                      "disabled": true
                    },
                    {
                      "key": "per_page",
                      "value": "50",
                      "description": "Page size, 1 to 100 (default 50). Default: `50`.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"ok\": true,\n  \"items\": [\n    {\n      \"id\": \"00000000-0000-4000-8000-000000000000\",\n      \"watch_id\": \"00000000-0000-4000-8000-000000000000\",\n      \"network_slug\": \"<network_slug>\",\n      \"address\": \"<address>\",\n      \"tx_hash\": \"<tx_hash>\",\n      \"block_height\": 0,\n      \"created_at\": \"2026-01-01T00:00:00Z\",\n      \"schema_version\": \"2\",\n      \"network\": \"<network>\",\n      \"type\": \"payment\",\n      \"direction\": \"in\",\n      \"is_payment\": false,\n      \"from_address\": \"<from_address>\",\n      \"to_address\": \"<to_address>\",\n      \"token\": {\n        \"contract\": \"<contract>\",\n        \"standard\": \"<standard>\",\n        \"symbol\": \"<symbol>\",\n        \"decimals\": 0\n      },\n      \"currency\": \"<currency>\",\n      \"amount\": \"<amount>\",\n      \"amount_raw\": \"<amount_raw>\",\n      \"fee\": \"<fee>\",\n      \"fee_raw\": \"<fee_raw>\",\n      \"status\": \"check\",\n      \"method\": \"<method>\",\n      \"block_hash\": \"<block_hash>\",\n      \"block_time\": 0,\n      \"risk\": [\n        null\n      ],\n      \"confirmation_status\": \"pending\",\n      \"confirmations\": 0,\n      \"required_confirmations\": 0,\n      \"final_block\": 0,\n      \"confirmed\": false,\n      \"finalized_at\": \"2026-01-01T00:00:00Z\",\n      \"aml\": {\n        \"address\": \"<address>\",\n        \"risk_level\": \"low\",\n        \"score\": 0,\n        \"checked_at\": \"2026-01-01T00:00:00Z\"\n      }\n    }\n  ],\n  \"pagination\": {\n    \"page\": 0,\n    \"per_page\": 0,\n    \"total\": 0,\n    \"has_more\": false\n  }\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "Tx Watch",
      "description": "Follow a transaction hash until it is confirmed, failed or cancelled.",
      "item": [
        {
          "name": "List transaction watches",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/tx-watches",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "tx-watches"
              ],
              "query": [
                {
                  "key": "network_slug",
                  "value": "",
                  "description": "Exact watch network key (trimmed, lowercased), for example `ethereum`.",
                  "disabled": true
                },
                {
                  "key": "status",
                  "value": "pending",
                  "description": "Only watches in this status. Anything else returns 400 `watch.invalid_tx_status`. One of: `pending`, `check`, `stopped`, `confirmed`, `failed`, `cancelled`.",
                  "disabled": true
                },
                {
                  "key": "tx_hash",
                  "value": "",
                  "description": "Case-insensitive prefix of the transaction hash.",
                  "disabled": true
                },
                {
                  "key": "page",
                  "value": "1",
                  "description": "Page number, 1 to 10000 (default 1). Default: `1`.",
                  "disabled": true
                },
                {
                  "key": "per_page",
                  "value": "20",
                  "description": "Page size, 1 to 100 (default 20). Default: `20`.",
                  "disabled": true
                }
              ]
            },
            "description": "`GET /v1/tx-watches` · operationId `listTxWatches`\n\nYour tx watches, newest first: the open ones and the ones that ended in the last day. Also returns the slots of\nthe plan. Open watches (`pending`, `check`) have no time limit and each holds one slot; ended ones hold none.\n`slots_used` counts only open watches, so it is not the same as `pagination.total`."
          },
          "response": [
            {
              "name": "200 A page of tx watches with the plan slots.",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/tx-watches",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "tx-watches"
                  ],
                  "query": [
                    {
                      "key": "network_slug",
                      "value": "",
                      "description": "Exact watch network key (trimmed, lowercased), for example `ethereum`.",
                      "disabled": true
                    },
                    {
                      "key": "status",
                      "value": "pending",
                      "description": "Only watches in this status. Anything else returns 400 `watch.invalid_tx_status`. One of: `pending`, `check`, `stopped`, `confirmed`, `failed`, `cancelled`.",
                      "disabled": true
                    },
                    {
                      "key": "tx_hash",
                      "value": "",
                      "description": "Case-insensitive prefix of the transaction hash.",
                      "disabled": true
                    },
                    {
                      "key": "page",
                      "value": "1",
                      "description": "Page number, 1 to 10000 (default 1). Default: `1`.",
                      "disabled": true
                    },
                    {
                      "key": "per_page",
                      "value": "20",
                      "description": "Page size, 1 to 100 (default 20). Default: `20`.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"ok\": true,\n  \"items\": [\n    {\n      \"watch_id\": \"00000000-0000-4000-8000-000000000000\",\n      \"network_slug\": \"<network_slug>\",\n      \"tx_hash\": \"<tx_hash>\",\n      \"status\": \"pending\",\n      \"start_height\": 0,\n      \"confirm_at_height\": 0,\n      \"required_confirmations\": 0,\n      \"confirmations\": 0,\n      \"confirmed\": false,\n      \"final_block\": 0,\n      \"network_fee\": \"<network_fee>\",\n      \"checked_height\": 0,\n      \"created_at\": \"2026-01-01T00:00:00Z\"\n    }\n  ],\n  \"slots\": 0,\n  \"slots_used\": 0,\n  \"pagination\": {\n    \"page\": 0,\n    \"per_page\": 0,\n    \"total\": 0,\n    \"has_more\": false\n  }\n}"
            }
          ]
        },
        {
          "name": "Start watching a transaction hash",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"network_slug\": \"<network_slug>\",\n  \"tx_hash\": \"<tx_hash>\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{baseUrl}}/tx-watches",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "tx-watches"
              ]
            },
            "description": "`POST /v1/tx-watches` · operationId `addTxWatch`\n\nStarts watching a transaction hash on a network. Takes one tx slot until the watch ends. The hash may be added\nbefore it reaches the network: the watch starts as `pending`; a hash that never appears ends as `cancelled`. A hash\nthat is already watched is not an error: the open watch is returned and no extra slot is taken. A hash whose earlier\nwatch ended is watched again as a new watch (new `watch_id`).\n\nErrors: 400 `watch.tx_hash_required`, `watch.scan_not_enabled`, `watch.no_plan`; 403 `watch.tx_unavailable` (no tx\nwatch slots on the plan), `watch.tx_limit` (all slots are held by open watches); 503 `watch.ingest_unavailable`\n(the watch is not created, retry).\n\n### Body\n\n| Field | Type | Required | Description |\n|---|---|---|---|\n| `network_slug` | string | yes | Watch network key (trimmed, lowercased): `ethereum` on mainnet, `{network}-{env}` (`ethereum-sepolia`) elsewhere. Otherwise `watch.scan_not_enabled`. |\n| `tx_hash` | string | yes | Transaction hash to follow. It is trimmed and lowercased. |"
          },
          "response": [
            {
              "name": "200 The created (or already open) watch.",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/tx-watches",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "tx-watches"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"ok\": true,\n  \"item\": {\n    \"watch_id\": \"00000000-0000-4000-8000-000000000000\",\n    \"network_slug\": \"<network_slug>\",\n    \"tx_hash\": \"<tx_hash>\",\n    \"status\": \"pending\",\n    \"start_height\": 0,\n    \"confirm_at_height\": 0,\n    \"required_confirmations\": 0,\n    \"confirmations\": 0,\n    \"confirmed\": false,\n    \"final_block\": 0,\n    \"network_fee\": \"<network_fee>\",\n    \"checked_height\": 0,\n    \"created_at\": \"2026-01-01T00:00:00Z\"\n  }\n}"
            }
          ]
        },
        {
          "name": "Stop watching a transaction",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/tx-watches/{{watchId}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "tx-watches",
                "{{watchId}}"
              ]
            },
            "description": "`DELETE /v1/tx-watches/{watchId}` · operationId `deleteTxWatch`\n\nRemoves the watch. There is no request body. Deleting is idempotent: an unknown, foreign, malformed or already\nremoved id still returns `ok: true`. An ended watch can be deleted too. A deleted open watch frees its slot and no\ntx event is sent for it. 503 `watch.ingest_unavailable`: retry the delete."
          },
          "response": [
            {
              "name": "200 The watch is gone.",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/tx-watches/{{watchId}}",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "tx-watches",
                    "{{watchId}}"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"ok\": true\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "Webhooks",
      "description": "The HTTP webhook of the account, its signing secret, test delivery and delivery log.",
      "item": [
        {
          "name": "The webhook of the account",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/webhooks",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "webhooks"
              ]
            },
            "description": "`GET /v1/webhooks` · operationId `getWebhook`\n\nURL, enabled flag, networks per kind of event, egress IPs and the signing secret. Takes no query parameters or\nbody. When no webhook was ever saved the response still succeeds: `enabled` is false, every `events` list is empty\nwith `*_all` false, `url` and `secret` are absent.\n\n`secret` is returned on every read, not only once. Keep it on your server and treat it like an API key secret.\nDeliveries are described under `webhooks` in this document."
          },
          "response": [
            {
              "name": "200 The webhook.",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/webhooks",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "webhooks"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"ok\": true,\n  \"webhook\": {\n    \"url\": \"<url>\",\n    \"enabled\": false,\n    \"events\": {\n      \"payment\": [\n        \"<payment>\"\n      ],\n      \"payout\": [\n        \"<payout>\"\n      ],\n      \"block\": [\n        \"<block>\"\n      ],\n      \"payment_all\": false,\n      \"payout_all\": false,\n      \"block_all\": false\n    },\n    \"egress_ips\": [\n      \"<egress_ips>\"\n    ],\n    \"secret\": \"<secret>\",\n    \"has_address_active\": false\n  }\n}"
            }
          ]
        },
        {
          "name": "Save the webhook",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"url\": \"https://example.com/hooks/rpcnode\",\n  \"enabled\": true,\n  \"events\": {\n    \"payment\": true,\n    \"payout\": [\n      \"tron\"\n    ],\n    \"block\": [\n      \"tron-nile\"\n    ]\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{baseUrl}}/webhooks",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "webhooks"
              ]
            },
            "description": "`PUT /v1/webhooks` · operationId `setWebhook`\n\nSaves the URL, switches the webhook on or off, and chooses the networks per kind of event. `enabled` is\nrequired. `url` is **not kept** when omitted: leaving it out or sending an empty string clears the saved URL.\nThe secret is created on the first save and stays the same afterwards (rotate it with `POST /webhooks/secret`).\n\n`events` is optional: omit it to keep the saved lists. When sent it replaces all three lists, and a missing key\nmeans off. Only `payment`, `payout` and `block` are accepted. Enabled with no events ever saved and `events`\nomitted: payment and payout are turned on for every network, `block` stays off. If `events` has everything off\nwhile `enabled` is true, the webhook is saved with `enabled: false` - check `enabled` in the response.\n\nErrors: 403 `watch.webhook_unavailable` (the plan has no webhook slots and the sandbox is off); 403\n`watch.webhook_block_unavailable` (a plan without address slots, Free, cannot subscribe to `block` events: its\nsandbox webhook gets payment and address events of testnet networks); 400 `watch.no_plan`,\n`watch.webhook_url_required` (enabled with no valid URL), `watch.webhook_url_invalid` (not http:// or https://),\n`common.validation_failed` (bad `events`, with `errors[].field` such as `events.token`). Saving `enabled: false`\nwith no URL is always allowed.\n\n### Body\n\n| Field | Type | Required | Description |\n|---|---|---|---|\n| `url` | string |  | Webhook URL (`http://` or `https://`, no user name or password, host must not resolve to a private or local address). Omit or send `\"\"` to clear it. |\n| `enabled` | boolean | yes | True to deliver events to the URL. |\n| `events` | object |  | Networks per kind of event, as sent in a request. When sent it replaces all three lists; a missing key means off. |"
          },
          "response": [
            {
              "name": "200 The saved webhook (without `has_address_active`).",
              "originalRequest": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/webhooks",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "webhooks"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"ok\": true,\n  \"webhook\": {\n    \"url\": \"<url>\",\n    \"enabled\": false,\n    \"events\": {\n      \"payment\": [\n        \"<payment>\"\n      ],\n      \"payout\": [\n        \"<payout>\"\n      ],\n      \"block\": [\n        \"<block>\"\n      ],\n      \"payment_all\": false,\n      \"payout_all\": false,\n      \"block_all\": false\n    },\n    \"egress_ips\": [\n      \"<egress_ips>\"\n    ],\n    \"secret\": \"<secret>\",\n    \"has_address_active\": false\n  }\n}"
            }
          ]
        },
        {
          "name": "Issue a new signing secret",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/webhooks/secret",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "webhooks",
                "secret"
              ]
            },
            "description": "`POST /v1/webhooks/secret` · operationId `rotateWebhookSecret`\n\nIssues a new signing secret; the old one stops working at once, including for retries of deliveries that are\nstill waiting. Takes no body. The webhook must have been saved at least once, otherwise 400\n`watch.webhook_url_required`. Put the new secret on your server first, or accept both for a short while, then rotate."
          },
          "response": [
            {
              "name": "200 The webhook with the new `secret`.",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/webhooks/secret",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "webhooks",
                    "secret"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"ok\": true,\n  \"webhook\": {\n    \"url\": \"<url>\",\n    \"enabled\": false,\n    \"events\": {\n      \"payment\": [\n        \"<payment>\"\n      ],\n      \"payout\": [\n        \"<payout>\"\n      ],\n      \"block\": [\n        \"<block>\"\n      ],\n      \"payment_all\": false,\n      \"payout_all\": false,\n      \"block_all\": false\n    },\n    \"egress_ips\": [\n      \"<egress_ips>\"\n    ],\n    \"secret\": \"<secret>\",\n    \"has_address_active\": false\n  }\n}"
            }
          ]
        },
        {
          "name": "Send a test delivery",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/webhooks/test",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "webhooks",
                "test"
              ]
            },
            "description": "`POST /v1/webhooks/test` · operationId `sendTestWebhook`\n\nQueues a test delivery to the saved URL (the webhook may be switched off; a saved URL is enough). It is signed\nlike any other delivery and is not charged. The response is the delivery row (status `pending`); read\n`GET /webhooks/deliveries` to see whether your server answered 2xx. Takes no body.\n\nErrors: 400 `watch.webhook_url_required` (no URL saved), `watch.no_plan`; 403 `watch.webhook_unavailable`; 429\n`watch.webhook_test_too_often` (another test was queued less than 5 seconds ago)."
          },
          "response": [
            {
              "name": "200 The queued test delivery.",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/webhooks/test",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "webhooks",
                    "test"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"ok\": true,\n  \"delivery\": {\n    \"delivery_id\": \"<delivery_id>\",\n    \"kind\": \"payment\",\n    \"network\": \"<network>\",\n    \"block_height\": 0,\n    \"tx_hash\": \"<tx_hash>\",\n    \"address\": \"<address>\",\n    \"event\": \"<event>\",\n    \"status\": \"pending\",\n    \"attempts\": 0,\n    \"http_status\": 0,\n    \"error\": \"<error>\",\n    \"created_at\": \"<created_at>\",\n    \"sent_at\": \"<sent_at>\",\n    \"next_attempt_at\": \"<next_attempt_at>\"\n  }\n}"
            }
          ]
        },
        {
          "name": "Delivery log",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/webhooks/deliveries",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "webhooks",
                "deliveries"
              ],
              "query": [
                {
                  "key": "status",
                  "value": "",
                  "description": "Only deliveries in this status.",
                  "disabled": true
                },
                {
                  "key": "page",
                  "value": "1",
                  "description": "Page number, 1 to 10000 (default 1). Default: `1`.",
                  "disabled": true
                },
                {
                  "key": "per_page",
                  "value": "20",
                  "description": "Page size, 1 to 100 (default 20). Default: `20`.",
                  "disabled": true
                }
              ]
            },
            "description": "`GET /v1/webhooks/deliveries` · operationId `listWebhookDeliveries`\n\nRecent deliveries to your URL (the last day), newest first, with status, attempts and the last answer. A user\nwho never saved a webhook gets an empty list. An unknown `status` value matches nothing and gives an empty list,\nnot an error. For a block webhook this is the place that shows whether a block was delivered. Times are ISO-8601\ndate-times in UTC written without an offset."
          },
          "response": [
            {
              "name": "200 A page of deliveries.",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/webhooks/deliveries",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "webhooks",
                    "deliveries"
                  ],
                  "query": [
                    {
                      "key": "status",
                      "value": "",
                      "description": "Only deliveries in this status.",
                      "disabled": true
                    },
                    {
                      "key": "page",
                      "value": "1",
                      "description": "Page number, 1 to 10000 (default 1). Default: `1`.",
                      "disabled": true
                    },
                    {
                      "key": "per_page",
                      "value": "20",
                      "description": "Page size, 1 to 100 (default 20). Default: `20`.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"ok\": true,\n  \"deliveries\": [\n    {\n      \"delivery_id\": \"<delivery_id>\",\n      \"kind\": \"payment\",\n      \"network\": \"<network>\",\n      \"block_height\": 0,\n      \"tx_hash\": \"<tx_hash>\",\n      \"address\": \"<address>\",\n      \"event\": \"<event>\",\n      \"status\": \"pending\",\n      \"attempts\": 0,\n      \"http_status\": 0,\n      \"error\": \"<error>\",\n      \"created_at\": \"<created_at>\",\n      \"sent_at\": \"<sent_at>\",\n      \"next_attempt_at\": \"<next_attempt_at>\"\n    }\n  ],\n  \"pagination\": {\n    \"page\": 0,\n    \"per_page\": 0,\n    \"total\": 0,\n    \"has_more\": false\n  }\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "Realtime",
      "description": "Settings of the WebSocket transport (Pusher protocol) for the same events.",
      "item": [
        {
          "name": "Read the WebSocket subscription",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/realtime/subscription",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "realtime",
                "subscription"
              ]
            },
            "description": "`GET /v1/realtime/subscription` · operationId `getRealtimeSubscription`\n\nWhether the WebSocket transport is on and which networks it receives for each kind of event. A new account gets\n`enabled: false` and empty lists. The WebSocket is a Pusher-protocol connection on a separate realtime host (shown\nin the dashboard); the app key is the API key id and the four channels are private. See\nhttps://docs.rpcnode.dev/public-api/websockets"
          },
          "response": [
            {
              "name": "200 The subscription.",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/realtime/subscription",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "realtime",
                    "subscription"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"ok\": true,\n  \"subscription\": {\n    \"enabled\": false,\n    \"events\": {\n      \"payment\": [\n        \"<payment>\"\n      ],\n      \"payout\": [\n        \"<payout>\"\n      ],\n      \"block\": [\n        \"<block>\"\n      ],\n      \"payment_all\": false,\n      \"payout_all\": false,\n      \"block_all\": false\n    }\n  }\n}"
            }
          ]
        },
        {
          "name": "Switch the WebSocket on or off",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"enabled\": true\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{baseUrl}}/realtime/subscription",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "realtime",
                "subscription"
              ]
            },
            "description": "`PUT /v1/realtime/subscription` · operationId `setRealtimeSubscription`\n\nSwitches the WebSocket on or off and optionally replaces the network lists; returns the saved state. The\nWebSocket and the webhook are separate transports: turning one on does not turn the other on, and an event wanted\nby both is delivered (and charged) twice.\n\nOmit `events` to keep the saved lists (switching on with nothing chosen subscribes payments and payouts on all\nnetworks, blocks stay off). When `events` is sent it replaces all three lists; a missing key counts as false.\n`payment_order` events are delivered whenever the socket is enabled and do not depend on any list.\n\nErrors: 400 `common.validation_failed` with `errors[].field` `events.<name>` (a key other than `payment`, `payout`,\n`block`, or a value that is not true, false or an array of strings), `watch.no_plan`; 403\n`watch.webhook_unavailable` (enabling on a plan without webhooks).\n\n### Body\n\n| Field | Type | Required | Description |\n|---|---|---|---|\n| `enabled` | boolean | yes | Turn the WebSocket on or off. |\n| `events` | object |  | Networks per kind of event, as sent in a request. When sent it replaces all three lists; a missing key means off. |"
          },
          "response": [
            {
              "name": "200 The saved subscription.",
              "originalRequest": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/realtime/subscription",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "realtime",
                    "subscription"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"ok\": true,\n  \"subscription\": {\n    \"enabled\": false,\n    \"events\": {\n      \"payment\": [\n        \"<payment>\"\n      ],\n      \"payout\": [\n        \"<payout>\"\n      ],\n      \"block\": [\n        \"<block>\"\n      ],\n      \"payment_all\": false,\n      \"payout_all\": false,\n      \"block_all\": false\n    }\n  }\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "Payments",
      "description": "Accept crypto payments for your own orders.",
      "item": [
        {
          "name": "List payments",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/payments",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "payments"
              ],
              "query": [
                {
                  "key": "status",
                  "value": "",
                  "description": "Only payments in this status.",
                  "disabled": true
                },
                {
                  "key": "network_slug",
                  "value": "",
                  "description": "Only payments on this network (lowercased).",
                  "disabled": true
                },
                {
                  "key": "address",
                  "value": "",
                  "description": "Only payments to this exact address (0x... addresses are lowercased before the comparison).",
                  "disabled": true
                },
                {
                  "key": "page",
                  "value": "1",
                  "description": "Page number, 1 to 10000 (default 1). Default: `1`.",
                  "disabled": true
                },
                {
                  "key": "per_page",
                  "value": "20",
                  "description": "Page size, 1 to 100 (default 20). Default: `20`.",
                  "disabled": true
                }
              ]
            },
            "description": "`GET /v1/payments` · operationId `listPayments`\n\nThe payments of the account, newest first. A wrong parameter value returns 400 and names the parameter; an unknown `status` returns 400 `payment.invalid_status`."
          },
          "response": [
            {
              "name": "200 A page of payments.",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/payments",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "payments"
                  ],
                  "query": [
                    {
                      "key": "status",
                      "value": "",
                      "description": "Only payments in this status.",
                      "disabled": true
                    },
                    {
                      "key": "network_slug",
                      "value": "",
                      "description": "Only payments on this network (lowercased).",
                      "disabled": true
                    },
                    {
                      "key": "address",
                      "value": "",
                      "description": "Only payments to this exact address (0x... addresses are lowercased before the comparison).",
                      "disabled": true
                    },
                    {
                      "key": "page",
                      "value": "1",
                      "description": "Page number, 1 to 10000 (default 1). Default: `1`.",
                      "disabled": true
                    },
                    {
                      "key": "per_page",
                      "value": "20",
                      "description": "Page size, 1 to 100 (default 20). Default: `20`.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"ok\": true,\n  \"items\": [\n    {\n      \"payment_id\": \"00000000-0000-4000-8000-000000000000\",\n      \"order_id\": \"<order_id>\",\n      \"network_slug\": \"<network_slug>\",\n      \"address\": \"<address>\",\n      \"amount\": \"<amount>\",\n      \"amount_raw\": \"<amount_raw>\",\n      \"decimals\": 0,\n      \"token_contract\": \"<token_contract>\",\n      \"token_symbol\": \"<token_symbol>\",\n      \"status\": \"pending\",\n      \"tx_hash\": \"<tx_hash>\",\n      \"min_block_height\": 0,\n      \"block_height\": 0,\n      \"confirmations\": 0,\n      \"required_confirmations\": 0,\n      \"final_block\": 0,\n      \"received_amount_raw\": \"<received_amount_raw>\",\n      \"network_fee\": \"<network_fee>\",\n      \"network_fee_raw\": \"<network_fee_raw>\",\n      \"network_fee_symbol\": \"<network_fee_symbol>\",\n      \"fail_reason\": \"expired\",\n      \"expires_at\": \"2026-01-01T00:00:00Z\",\n      \"created_at\": \"2026-01-01T00:00:00Z\",\n      \"updated_at\": \"2026-01-01T00:00:00Z\",\n      \"aml\": {\n        \"score\": 0,\n        \"risk_level\": \"<risk_level>\",\n        \"details\": [\n          \"<details>\"\n        ],\n        \"exposures\": [\n          {\n            \"entity\": \"<entity>\",\n            \"risk_type\": \"<risk_type>\",\n            \"exposure_type\": \"<exposure_type>\",\n            \"hop_num\": 0,\n            \"volume\": 0,\n            \"percent\": 0,\n            \"hops\": [\n              null\n            ]\n          }\n        ],\n        \"hacking_event\": \"<hacking_event>\",\n        \"address_label\": \"<address_label>\",\n        \"report_url\": \"<report_url>\",\n        \"error\": \"<error>\",\n        \"checked_at\": \"2026-01-01T00:00:00Z\",\n        \"provider\": \"sandbox\",\n        \"sample\": false\n      }\n    }\n  ],\n  \"pagination\": {\n    \"page\": 0,\n    \"per_page\": 0,\n    \"total\": 0,\n    \"has_more\": false\n  }\n}"
            }
          ]
        },
        {
          "name": "Create a payment",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"order_id\": \"ord_123\",\n  \"network_slug\": \"tron\",\n  \"address\": \"TToLVWCw5pxV241Rdt3StsUZRTb15QRzRG\",\n  \"amount\": \"30\",\n  \"token_contract\": \"TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t\",\n  \"ttl_seconds\": 1800\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{baseUrl}}/payments",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "payments"
              ]
            },
            "description": "`POST /v1/payments` · operationId `createPayment`\n\nCreates a payment for an order: an address, an amount and a lifetime. The payment starts as `pending`; every\nstatus change is then sent as a `payment_order` event by webhook or WebSocket.\n\n**Token.** A token is chosen only by `token_contract` (take it from `GET /network-tokens`); without it the payment\nis in the coin of the network. `token_symbol` is not accepted (400 `network_token.symbol_not_accepted`, or\n`network_token.symbol_is_contract` when it looks like a contract), `decimals` and `network_token_id` do not exist\nin this API: they are rejected like any unknown field.\n\n**Amount.** `amount` is a string in whole units (`\"1.5\"`: digits and one dot, no sign, no exponent), `amount_raw`\nis in the smallest units (decimal digits, or `0x` and hex digits). Numbers are rejected (`\"amount\": 1.5` gives 400\n\"amount must be a string\"). If both are sent, `amount_raw` is used. `amount` may have at most as many fractional\ndigits as the token has decimals.\n\n**Free sandbox.** A plan without payments (Free) may keep a few open payments (3 by default) on **testnet networks\nonly**; they do not count against the monthly limit of a paid plan. On a main network the call fails with 403\n`payment.testnet_only` (\"Free: only testnet networks\"); where the sandbox is switched off the error stays\n`payment.not_available`. A sandbox payment also takes one sandbox address slot. AML does not call the paid\nprovider: after the confirmations the payment goes `check` - `aml_check` - `paid` as usual, and `aml` is a\n**sample** of the real answer, marked `\"provider\": \"sandbox\"` and `\"sample\": true` (always low risk, empty lists).\n\n**Lifetime.** `ttl_seconds` (1 to 2592000) or `expires_at` (ISO-8601 with an offset, in the future); if both are\nsent, `ttl_seconds` wins; with neither the payment lives 3600 seconds.\n\n**Idempotent per `order_id`**: repeating the call with the same network, address, token and amount returns the\nexisting payment with 200, in whatever state it is (an expired payment is not created again - use a new\n`order_id`). Other parameters for the same `order_id` give 409 `payment.order_exists`.\n\nError codes (400): `payment.network_required`, `payment.address_required`, `payment.order_id_required`,\n`payment.order_id_too_long`, `payment.amount_required`, `payment.amount_invalid`, `payment.amount_raw_invalid`,\n`payment.amount_too_large`, `payment.amount_not_positive`, `payment.amount_raw_not_positive`,\n`payment.too_many_fraction_digits`, `payment.ttl_invalid`, `payment.expires_invalid`, `payment.expires_in_past`,\n`payment.scan_not_enabled`, `network_token.not_supported`, `network_token.disabled`,\n`network_token.network_not_found`. Plan limits (403): `payment.not_available`, `payment.slot_limit`,\n`payment.monthly_limit`, `payment.testnet_only`, `watch.address_unavailable`, `watch.address_testnet_only`,\n`watch.address_limit`. 503 `payment.ingest_unavailable` /\n`watch.ingest_unavailable` (not created, repeat the same request); 500 `payment.create_failed`.\n\n### Body\n\n| Field | Type | Required | Description |\n|---|---|---|---|\n| `order_id` | string | yes | Your order number (trimmed). Unique per account. |\n| `network_slug` | string | yes | Network slug (lowercased). The network must be enabled for payments, otherwise `payment.scan_not_enabled`. |\n| `address` | string | yes | Receiving address (trimmed; 0x... addresses are lowercased). Not validated against the chain format. |\n| `amount` | string |  | Amount in whole units, for example `\"12.5\"` - a string (digits and a dot, no sign, no exponent), with no more fractional digits than the token decimals. Required unless `amount_raw` is sent. |\n| `amount_raw` | string |  | Amount in the smallest units - decimal digits, or `0x` and hex digits. Takes priority over `amount`. Required unless `amount` is sent. At most 77 digits, greater than zero. |\n| `token_contract` | string |  | Contract of the token, from `GET /network-tokens`. Omit for the coin of the network. |\n| `ttl_seconds` | integer |  | Lifetime in seconds. Wins over `expires_at`. Default lifetime without either field is 3600. |\n| `expires_at` | string |  | Expiry time with an offset, for example `2026-10-20T12:00:00Z`. Must be in the future. |"
          },
          "response": [
            {
              "name": "200 The created (or existing) payment. HTTP 200, not 201.",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/payments",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "payments"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"ok\": true,\n  \"payment\": {\n    \"payment_id\": \"5f0c1e0e-8c1b-4f6e-9a55-3d2d0f6a7b11\",\n    \"order_id\": \"ord_123\",\n    \"network_slug\": \"tron\",\n    \"address\": \"TToLVWCw5pxV241Rdt3StsUZRTb15QRzRG\",\n    \"amount\": \"30\",\n    \"amount_raw\": \"30000000\",\n    \"decimals\": 6,\n    \"token_contract\": \"TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t\",\n    \"token_symbol\": \"USDT\",\n    \"status\": \"pending\",\n    \"min_block_height\": 85558636,\n    \"confirmations\": 0,\n    \"required_confirmations\": 19,\n    \"expires_at\": \"2026-10-19T13:00:00Z\",\n    \"created_at\": \"2026-10-19T12:00:00Z\",\n    \"updated_at\": \"2026-10-19T12:00:00Z\"\n  }\n}"
            }
          ]
        },
        {
          "name": "Get a payment by your order id",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/payments/orders/{{orderId}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "payments",
                "orders",
                "{{orderId}}"
              ]
            },
            "description": "`GET /v1/payments/orders/{orderId}` · operationId `getPaymentByOrder`\n\nOne payment by your own `order_id`. 404 `payment.not_found` when there is no payment for this order on your account."
          },
          "response": [
            {
              "name": "200 The payment.",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/payments/orders/{{orderId}}",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "payments",
                    "orders",
                    "{{orderId}}"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"ok\": true,\n  \"payment\": {\n    \"payment_id\": \"00000000-0000-4000-8000-000000000000\",\n    \"order_id\": \"<order_id>\",\n    \"network_slug\": \"<network_slug>\",\n    \"address\": \"<address>\",\n    \"amount\": \"<amount>\",\n    \"amount_raw\": \"<amount_raw>\",\n    \"decimals\": 0,\n    \"token_contract\": \"<token_contract>\",\n    \"token_symbol\": \"<token_symbol>\",\n    \"status\": \"pending\",\n    \"tx_hash\": \"<tx_hash>\",\n    \"min_block_height\": 0,\n    \"block_height\": 0,\n    \"confirmations\": 0,\n    \"required_confirmations\": 0,\n    \"final_block\": 0,\n    \"received_amount_raw\": \"<received_amount_raw>\",\n    \"network_fee\": \"<network_fee>\",\n    \"network_fee_raw\": \"<network_fee_raw>\",\n    \"network_fee_symbol\": \"<network_fee_symbol>\",\n    \"fail_reason\": \"expired\",\n    \"expires_at\": \"2026-01-01T00:00:00Z\",\n    \"created_at\": \"2026-01-01T00:00:00Z\",\n    \"updated_at\": \"2026-01-01T00:00:00Z\",\n    \"aml\": {\n      \"score\": 0,\n      \"risk_level\": \"<risk_level>\",\n      \"details\": [\n        \"<details>\"\n      ],\n      \"exposures\": [\n        {\n          \"entity\": \"<entity>\",\n          \"risk_type\": \"<risk_type>\",\n          \"exposure_type\": \"<exposure_type>\",\n          \"hop_num\": 0,\n          \"volume\": 0,\n          \"percent\": 0,\n          \"hops\": [\n            {\n              \"hop\": null,\n              \"addresses\": null\n            }\n          ]\n        }\n      ],\n      \"hacking_event\": \"<hacking_event>\",\n      \"address_label\": \"<address_label>\",\n      \"report_url\": \"<report_url>\",\n      \"error\": \"<error>\",\n      \"checked_at\": \"2026-01-01T00:00:00Z\",\n      \"provider\": \"sandbox\",\n      \"sample\": false\n    }\n  }\n}"
            }
          ]
        },
        {
          "name": "Get a payment",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/payments/{{paymentId}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "payments",
                "{{paymentId}}"
              ]
            },
            "description": "`GET /v1/payments/{paymentId}` · operationId `getPayment`\n\nOne payment by its `payment_id`. A `payment_id` that is not a UUID or does not belong to your account returns 404 `payment.not_found`."
          },
          "response": [
            {
              "name": "200 The payment.",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/payments/{{paymentId}}",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "payments",
                    "{{paymentId}}"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"ok\": true,\n  \"payment\": {\n    \"payment_id\": \"00000000-0000-4000-8000-000000000000\",\n    \"order_id\": \"<order_id>\",\n    \"network_slug\": \"<network_slug>\",\n    \"address\": \"<address>\",\n    \"amount\": \"<amount>\",\n    \"amount_raw\": \"<amount_raw>\",\n    \"decimals\": 0,\n    \"token_contract\": \"<token_contract>\",\n    \"token_symbol\": \"<token_symbol>\",\n    \"status\": \"pending\",\n    \"tx_hash\": \"<tx_hash>\",\n    \"min_block_height\": 0,\n    \"block_height\": 0,\n    \"confirmations\": 0,\n    \"required_confirmations\": 0,\n    \"final_block\": 0,\n    \"received_amount_raw\": \"<received_amount_raw>\",\n    \"network_fee\": \"<network_fee>\",\n    \"network_fee_raw\": \"<network_fee_raw>\",\n    \"network_fee_symbol\": \"<network_fee_symbol>\",\n    \"fail_reason\": \"expired\",\n    \"expires_at\": \"2026-01-01T00:00:00Z\",\n    \"created_at\": \"2026-01-01T00:00:00Z\",\n    \"updated_at\": \"2026-01-01T00:00:00Z\",\n    \"aml\": {\n      \"score\": 0,\n      \"risk_level\": \"<risk_level>\",\n      \"details\": [\n        \"<details>\"\n      ],\n      \"exposures\": [\n        {\n          \"entity\": \"<entity>\",\n          \"risk_type\": \"<risk_type>\",\n          \"exposure_type\": \"<exposure_type>\",\n          \"hop_num\": 0,\n          \"volume\": 0,\n          \"percent\": 0,\n          \"hops\": [\n            {\n              \"hop\": null,\n              \"addresses\": null\n            }\n          ]\n        }\n      ],\n      \"hacking_event\": \"<hacking_event>\",\n      \"address_label\": \"<address_label>\",\n      \"report_url\": \"<report_url>\",\n      \"error\": \"<error>\",\n      \"checked_at\": \"2026-01-01T00:00:00Z\",\n      \"provider\": \"sandbox\",\n      \"sample\": false\n    }\n  }\n}"
            }
          ]
        },
        {
          "name": "Cancel a pending payment",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/payments/{{paymentId}}/cancel",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "payments",
                "{{paymentId}}",
                "cancel"
              ]
            },
            "description": "`POST /v1/payments/{paymentId}/cancel` · operationId `cancelPayment`\n\nCancels a payment that is still `pending`. Takes no body. Any other status gives 409 `payment.not_pending` (a\npayment that already saw money cannot be cancelled). Cancelling is asynchronous: the response shows the payment as\nit is now, so it may still read `pending` for a moment; the `cancelled` event follows by webhook or WebSocket.\nAfter cancel the payment slot is released. 503 `payment.cancel_enqueue_failed`: not accepted, try again."
          },
          "response": [
            {
              "name": "200 The payment as it is now.",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/payments/{{paymentId}}/cancel",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "payments",
                    "{{paymentId}}",
                    "cancel"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"ok\": true,\n  \"payment\": {\n    \"payment_id\": \"00000000-0000-4000-8000-000000000000\",\n    \"order_id\": \"<order_id>\",\n    \"network_slug\": \"<network_slug>\",\n    \"address\": \"<address>\",\n    \"amount\": \"<amount>\",\n    \"amount_raw\": \"<amount_raw>\",\n    \"decimals\": 0,\n    \"token_contract\": \"<token_contract>\",\n    \"token_symbol\": \"<token_symbol>\",\n    \"status\": \"pending\",\n    \"tx_hash\": \"<tx_hash>\",\n    \"min_block_height\": 0,\n    \"block_height\": 0,\n    \"confirmations\": 0,\n    \"required_confirmations\": 0,\n    \"final_block\": 0,\n    \"received_amount_raw\": \"<received_amount_raw>\",\n    \"network_fee\": \"<network_fee>\",\n    \"network_fee_raw\": \"<network_fee_raw>\",\n    \"network_fee_symbol\": \"<network_fee_symbol>\",\n    \"fail_reason\": \"expired\",\n    \"expires_at\": \"2026-01-01T00:00:00Z\",\n    \"created_at\": \"2026-01-01T00:00:00Z\",\n    \"updated_at\": \"2026-01-01T00:00:00Z\",\n    \"aml\": {\n      \"score\": 0,\n      \"risk_level\": \"<risk_level>\",\n      \"details\": [\n        \"<details>\"\n      ],\n      \"exposures\": [\n        {\n          \"entity\": \"<entity>\",\n          \"risk_type\": \"<risk_type>\",\n          \"exposure_type\": \"<exposure_type>\",\n          \"hop_num\": 0,\n          \"volume\": 0,\n          \"percent\": 0,\n          \"hops\": [\n            {\n              \"hop\": null,\n              \"addresses\": null\n            }\n          ]\n        }\n      ],\n      \"hacking_event\": \"<hacking_event>\",\n      \"address_label\": \"<address_label>\",\n      \"report_url\": \"<report_url>\",\n      \"error\": \"<error>\",\n      \"checked_at\": \"2026-01-01T00:00:00Z\",\n      \"provider\": \"sandbox\",\n      \"sample\": false\n    }\n  }\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "AML",
      "description": "Risk checks of an address or a transfer. Every answered check takes plan credits.",
      "item": [
        {
          "name": "Price of an AML check and the networks that are checked",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/aml",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "aml"
              ]
            },
            "description": "`GET /v1/aml` · operationId `getAmlInfo`\n\nWhat one check costs in plan credits (`credits_per_check`, 0 when checks are free), what the plan has left\n(`credits_remaining`; absent when it could not be told) and the networks an address or a transfer can be checked in.\nThe credits are the ones that pay for requests, so checks and requests draw from one pool."
          },
          "response": [
            {
              "name": "200 The price, the credits left and the networks.",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/aml",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "aml"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"ok\": false,\n  \"credits_per_check\": 0,\n  \"credits_remaining\": 0,\n  \"networks\": [\n    \"<networks>\"\n  ]\n}"
            }
          ]
        },
        {
          "name": "Risk of an address",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"network\": \"ethereum\",\n  \"address\": \"<address>\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{baseUrl}}/aml/address",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "aml",
                "address"
              ]
            },
            "description": "`POST /v1/aml/address` · operationId `checkAmlAddress`\n\nChecks an address with the AML provider. A check that was answered takes `credits_per_check` credits from the plan,\nalso when the answer comes from memory (the same address is kept for an hour, `cached: true`). Nothing is taken when\nthe network is not covered (422 `aml.network_not_covered`), the address is not valid (422 `aml.invalid`) or the\nprovider did not answer (503 `aml.unavailable`). When the plan has fewer credits than a check costs the provider is\nnot asked: 402 `aml.not_enough_credits`, with `credits_per_check` and `credits_remaining` in the answer.\n\n### Body\n\n| Field | Type | Required | Description |\n|---|---|---|---|\n| `network` | string | yes | A slug from `GET /aml`. |\n| `address` | string | yes |  |"
          },
          "response": [
            {
              "name": "200 The risk of the address and what the check took.",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/aml/address",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "aml",
                    "address"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"ok\": false,\n  \"result\": {\n    \"risk\": \"low\",\n    \"score\": 0,\n    \"labels\": [\n      \"<labels>\"\n    ],\n    \"cached\": false\n  },\n  \"credits_charged\": 0,\n  \"credits_remaining\": 0,\n  \"credits_per_check\": 0,\n  \"error_code\": \"<error_code>\",\n  \"error\": \"<error>\"\n}"
            }
          ]
        },
        {
          "name": "Risk of a transfer",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"network\": \"ethereum\",\n  \"tx_hash\": \"<tx_hash>\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{baseUrl}}/aml/transaction",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "aml",
                "transaction"
              ]
            },
            "description": "`POST /v1/aml/transaction` · operationId `checkAmlTransaction`\n\nChecks a transaction hash. `direction` is `deposit` (the transfer came to the address, the default) or `withdraw`.\nCredits and errors are the same as for `POST /aml/address`.\n\n### Body\n\n| Field | Type | Required | Description |\n|---|---|---|---|\n| `network` | string | yes |  |\n| `tx_hash` | string | yes |  |\n| `direction` | string |  |  One of: `deposit`, `withdraw`. |"
          },
          "response": [
            {
              "name": "200 The risk of the transfer and what the check took.",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/aml/transaction",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "aml",
                    "transaction"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"ok\": false,\n  \"result\": {\n    \"risk\": \"low\",\n    \"score\": 0,\n    \"labels\": [\n      \"<labels>\"\n    ],\n    \"cached\": false\n  },\n  \"credits_charged\": 0,\n  \"credits_remaining\": 0,\n  \"credits_per_check\": 0,\n  \"error_code\": \"<error_code>\",\n  \"error\": \"<error>\"\n}"
            }
          ]
        },
        {
          "name": "The checks of the account",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/aml/checks",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "aml",
                "checks"
              ],
              "query": [
                {
                  "key": "page",
                  "value": "1",
                  "description": "Default: `1`.",
                  "disabled": true
                },
                {
                  "key": "per_page",
                  "value": "20",
                  "description": "Default: `20`.",
                  "disabled": true
                }
              ]
            },
            "description": "`GET /v1/aml/checks` · operationId `listAmlChecks`\n\nThe checks the account asked for, newest first. A check the provider did not answer has `failed: true` and took no credits."
          },
          "response": [
            {
              "name": "200 A page of checks.",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/aml/checks",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "aml",
                    "checks"
                  ],
                  "query": [
                    {
                      "key": "page",
                      "value": "1",
                      "description": "Default: `1`.",
                      "disabled": true
                    },
                    {
                      "key": "per_page",
                      "value": "20",
                      "description": "Default: `20`.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"ok\": false,\n  \"items\": [\n    {\n      \"id\": 0,\n      \"network\": \"<network>\",\n      \"address\": \"<address>\",\n      \"tx_hash\": \"<tx_hash>\",\n      \"direction\": \"<direction>\",\n      \"risk\": \"low\",\n      \"score\": 0,\n      \"labels\": [\n        \"<labels>\"\n      ],\n      \"failed\": false,\n      \"checked_at\": \"2026-01-01T00:00:00Z\"\n    }\n  ],\n  \"pagination\": {\n    \"page\": 0,\n    \"per_page\": 0,\n    \"total\": 0,\n    \"has_more\": false\n  }\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "Endpoints",
      "description": "JSON-RPC endpoints (UUID URLs) of the account.",
      "item": [
        {
          "name": "List RPC endpoints",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/endpoints",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "endpoints"
              ],
              "query": [
                {
                  "key": "page",
                  "value": "1",
                  "description": "Page number, 1 to 10000 (default 1). Default: `1`.",
                  "disabled": true
                },
                {
                  "key": "per_page",
                  "value": "30",
                  "description": "Page size, 1 to 100 (default 30). Default: `30`.",
                  "disabled": true
                }
              ]
            },
            "description": "`GET /v1/endpoints` · operationId `listEndpoints`\n\nThe JSON-RPC endpoints of the account. Out-of-range or non-numeric `page` / `per_page` are rejected with 400, not clamped."
          },
          "response": [
            {
              "name": "200 A page of endpoints.",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/endpoints",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "endpoints"
                  ],
                  "query": [
                    {
                      "key": "page",
                      "value": "1",
                      "description": "Page number, 1 to 10000 (default 1). Default: `1`.",
                      "disabled": true
                    },
                    {
                      "key": "per_page",
                      "value": "30",
                      "description": "Page size, 1 to 100 (default 30). Default: `30`.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"ok\": true,\n  \"endpoints\": [\n    {\n      \"uuid\": \"00000000-0000-4000-8000-000000000000\",\n      \"name\": \"<name>\",\n      \"status\": \"active\",\n      \"network_name\": \"<network_name>\",\n      \"network_slug\": \"<network_slug>\",\n      \"env_slug\": \"<env_slug>\",\n      \"url\": \"<url>\",\n      \"rps_limit\": 0,\n      \"created_at\": \"2026-01-01T00:00:00Z\",\n      \"version\": \"<version>\",\n      \"block_height\": 0,\n      \"allowed_ips\": [\n        \"<allowed_ips>\"\n      ],\n      \"allowed_origins\": [\n        \"<allowed_origins>\"\n      ]\n    }\n  ],\n  \"pagination\": {\n    \"page\": 0,\n    \"per_page\": 0,\n    \"total\": 0,\n    \"has_more\": false\n  }\n}"
            }
          ]
        },
        {
          "name": "Create an RPC endpoint",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"Prod Ethereum\",\n  \"network_slug\": \"ethereum\",\n  \"env_slug\": \"mainnet\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{baseUrl}}/endpoints",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "endpoints"
              ]
            },
            "description": "`POST /v1/endpoints` · operationId `createEndpoint`\n\nCreates a JSON-RPC endpoint on a network environment; counts against the endpoints limit of your plan. Take\n`network_slug` and `env_slug` from `GET /endpoints/available-networks`. No other fields are accepted\n(`network_id` and `network_environment_id` do not exist and are rejected as unknown fields). Success is HTTP 200.\nThere is no DELETE: pause an endpoint with `PATCH /endpoints/{uuid}/status`.\n\nErrors: 400 `endpoint.name_required`, `endpoint.name_too_long`, `endpoint.network_required`,\n`endpoint.env_slug_required`, `endpoint.no_plan`; 403 `endpoint.network_not_allowed` (not on your plan),\n`endpoint.limit_reached`; 404 `endpoint.network_not_found`, `endpoint.environment_not_found`; 503\n`endpoint.no_upstream` (the environment is temporarily unavailable); 500 `endpoint.gateway_sync_failed`,\n`endpoint.host_prefix_exhausted`.\n\n### Body\n\n| Field | Type | Required | Description |\n|---|---|---|---|\n| `name` | string | yes | Display name (surrounding spaces are trimmed). |\n| `network_slug` | string | yes | Network slug from `GET /endpoints/available-networks`, for example `ethereum`. |\n| `env_slug` | string | yes | Environment slug from `networks[].environment_kinds`, for example `mainnet` (case-insensitive). |"
          },
          "response": [
            {
              "name": "200 The created endpoint.",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/endpoints",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "endpoints"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"ok\": true,\n  \"endpoint\": {\n    \"uuid\": \"00000000-0000-4000-8000-000000000000\",\n    \"name\": \"<name>\",\n    \"status\": \"active\",\n    \"network_name\": \"<network_name>\",\n    \"network_slug\": \"<network_slug>\",\n    \"env_slug\": \"<env_slug>\",\n    \"url\": \"<url>\",\n    \"rps_limit\": 0,\n    \"created_at\": \"2026-01-01T00:00:00Z\",\n    \"version\": \"<version>\",\n    \"block_height\": 0,\n    \"allowed_ips\": [\n      \"<allowed_ips>\"\n    ],\n    \"allowed_origins\": [\n      \"<allowed_origins>\"\n    ]\n  }\n}"
            }
          ]
        },
        {
          "name": "Networks an endpoint can be created on",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/endpoints/available-networks",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "endpoints",
                "available-networks"
              ]
            },
            "description": "`GET /v1/endpoints/available-networks` · operationId `listAvailableNetworks`\n\nNetworks (and their environment slugs) an endpoint can be created on under your plan. Use `networks[].slug` as\n`network_slug` and one of `networks[].environment_kinds` as `env_slug` in `POST /endpoints`. The list is already\nfiltered by your plan."
          },
          "response": [
            {
              "name": "200 Available networks.",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/endpoints/available-networks",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "endpoints",
                    "available-networks"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"ok\": true,\n  \"networks\": [\n    {\n      \"slug\": \"<slug>\",\n      \"name\": \"<name>\",\n      \"environment_kinds\": [\n        \"<environment_kinds>\"\n      ]\n    }\n  ],\n  \"network_limit\": 0,\n  \"allowed_network_slugs\": [\n    \"<allowed_network_slugs>\"\n  ]\n}"
            }
          ]
        },
        {
          "name": "Usage of one endpoint",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/endpoints/{{uuid}}/usage",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "endpoints",
                "{{uuid}}",
                "usage"
              ],
              "query": [
                {
                  "key": "days",
                  "value": "30",
                  "description": "Window length in days. Any other value is rejected with 400, not replaced by the default. The query string is part of the signed path. One of: `7`, `30`, `90`. Default: `30`.",
                  "disabled": true
                }
              ]
            },
            "description": "`GET /v1/endpoints/{uuid}/usage` · operationId `getEndpointUsage`\n\nRequests and credits of one endpoint for the last 7, 30 or 90 calendar days, with the top 20 methods and webhook\ntotals. An unknown or malformed uuid, or an endpoint of another account, gives 404 `endpoint.not_found`. For the\naccount total across all endpoints use `GET /usage`."
          },
          "response": [
            {
              "name": "200 Usage of the endpoint.",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/endpoints/{{uuid}}/usage",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "endpoints",
                    "{{uuid}}",
                    "usage"
                  ],
                  "query": [
                    {
                      "key": "days",
                      "value": "30",
                      "description": "Window length in days. Any other value is rejected with 400, not replaced by the default. The query string is part of the signed path. One of: `7`, `30`, `90`. Default: `30`.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"ok\": true,\n  \"usage\": {\n    \"days\": 7,\n    \"total_requests\": 0,\n    \"total_credits\": 0,\n    \"series\": [\n      {\n        \"date\": \"2026-01-01\",\n        \"requests\": 0,\n        \"credits\": 0\n      }\n    ],\n    \"methods\": [\n      {\n        \"method\": \"<method>\",\n        \"requests\": 0,\n        \"credits\": 0\n      }\n    ],\n    \"webhooks\": {\n      \"requests\": 0,\n      \"credits\": 0,\n      \"address_watch_requests\": 0,\n      \"address_watch_credits\": 0,\n      \"block_requests\": 0,\n      \"block_credits\": 0,\n      \"payment_requests\": 0,\n      \"payment_credits\": 0,\n      \"tx_watch_requests\": 0,\n      \"tx_watch_credits\": 0\n    }\n  }\n}"
            }
          ]
        },
        {
          "name": "Switch an endpoint on or off",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"status\": \"paused\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{baseUrl}}/endpoints/{{uuid}}/status",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "endpoints",
                "{{uuid}}",
                "status"
              ]
            },
            "description": "`PATCH /v1/endpoints/{uuid}/status` · operationId `updateEndpointStatus`\n\nSets the endpoint status to `active` or `paused` (case-insensitive); `paused` stops JSON-RPC traffic. A missing\nor other value gives 400 `endpoint.invalid_status`. An unknown uuid gives 404 `endpoint.not_found` (checked\nbefore the body).\n\n### Body\n\n| Field | Type | Required | Description |\n|---|---|---|---|\n| `status` | string | yes | Case-insensitive; `paused` stops JSON-RPC traffic. One of: `active`, `paused`. |"
          },
          "response": [
            {
              "name": "200 The updated endpoint.",
              "originalRequest": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/endpoints/{{uuid}}/status",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "endpoints",
                    "{{uuid}}",
                    "status"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"ok\": true,\n  \"endpoint\": {\n    \"uuid\": \"00000000-0000-4000-8000-000000000000\",\n    \"name\": \"<name>\",\n    \"status\": \"active\",\n    \"network_name\": \"<network_name>\",\n    \"network_slug\": \"<network_slug>\",\n    \"env_slug\": \"<env_slug>\",\n    \"url\": \"<url>\",\n    \"rps_limit\": 0,\n    \"created_at\": \"2026-01-01T00:00:00Z\",\n    \"version\": \"<version>\",\n    \"block_height\": 0,\n    \"allowed_ips\": [\n      \"<allowed_ips>\"\n    ],\n    \"allowed_origins\": [\n      \"<allowed_origins>\"\n    ]\n  }\n}"
            }
          ]
        },
        {
          "name": "Replace the IP allowlist of an endpoint",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"allowed_ips\": [\n    \"203.0.113.10\",\n    \"2001:db8::1\"\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{baseUrl}}/endpoints/{{uuid}}/allowed-ips",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "endpoints",
                "{{uuid}}",
                "allowed-ips"
              ]
            },
            "description": "`PATCH /v1/endpoints/{uuid}/allowed-ips` · operationId `updateEndpointAllowedIps`\n\nReplaces the client IP allowlist of the endpoint; an empty array clears the restriction (allow all). The list\nreplaces the previous one. Blank entries are skipped, duplicates are removed, and addresses are returned in canonical\nform (an IPv6 address may come back written out in full). Errors: 400 `endpoint.too_many_ips` (more than 50),\n`endpoint.invalid_ip` (not an IP literal; CIDR ranges and hostnames are not accepted); 404 `endpoint.not_found`\n(checked before the body).\n\n### Body\n\n| Field | Type | Required | Description |\n|---|---|---|---|\n| `allowed_ips` | array of string | yes | Full list of IPv4 / IPv6 literal addresses (max 50). The key is required; `[]` clears the list. CIDR ranges and hostnames are not accepted. |"
          },
          "response": [
            {
              "name": "200 The updated endpoint.",
              "originalRequest": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/endpoints/{{uuid}}/allowed-ips",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "endpoints",
                    "{{uuid}}",
                    "allowed-ips"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"ok\": true,\n  \"endpoint\": {\n    \"uuid\": \"00000000-0000-4000-8000-000000000000\",\n    \"name\": \"<name>\",\n    \"status\": \"active\",\n    \"network_name\": \"<network_name>\",\n    \"network_slug\": \"<network_slug>\",\n    \"env_slug\": \"<env_slug>\",\n    \"url\": \"<url>\",\n    \"rps_limit\": 0,\n    \"created_at\": \"2026-01-01T00:00:00Z\",\n    \"version\": \"<version>\",\n    \"block_height\": 0,\n    \"allowed_ips\": [\n      \"<allowed_ips>\"\n    ],\n    \"allowed_origins\": [\n      \"<allowed_origins>\"\n    ]\n  }\n}"
            }
          ]
        },
        {
          "name": "Replace the allowed browser origins of an endpoint",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"allowed_origins\": [\n    \"https://app.example.com\",\n    \"https://*.example.com\"\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{baseUrl}}/endpoints/{{uuid}}/allowed-origins",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "endpoints",
                "{{uuid}}",
                "allowed-origins"
              ]
            },
            "description": "`PUT /v1/endpoints/{uuid}/allowed-origins` · operationId `updateEndpointAllowedOrigins`\n\nReplaces the list of browser origins that may call the endpoint; an empty array clears the restriction (allow all).\nThe list applies only to requests that carry an `Origin` header (browsers): server-to-server calls and curl have none and\nare never limited. A browser request from an origin outside a non-empty list gets HTTP 403 (a WebSocket is closed with\n1008); allowed origins get `Access-Control-Allow-Origin` and the gateway answers their `OPTIONS` preflight. The list replaces\nthe previous one. Blank entries are skipped, duplicates are removed, and entries are returned in canonical form (scheme and\nhost in lower case, no trailing slash, default port left out). Errors: 400 `endpoint.too_many_origins` (more than 20),\n`endpoint.invalid_origin` (not `scheme://host[:port]`, for example a path or a scheme other than http / https); 404\n`endpoint.not_found` (checked before the body). `PATCH` with the same body does the same.\n\n### Body\n\n| Field | Type | Required | Description |\n|---|---|---|---|\n| `allowed_origins` | array of string | yes | Full list of origins (max 20): scheme (`http` or `https`), host and optional port, for example `https://app.example.com`, or `https://*.example.com` for every subdomain (not the bare domain). No path. The key is required; `[]` clears the list. |"
          },
          "response": [
            {
              "name": "200 The updated endpoint.",
              "originalRequest": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/endpoints/{{uuid}}/allowed-origins",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "endpoints",
                    "{{uuid}}",
                    "allowed-origins"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"ok\": true,\n  \"endpoint\": {\n    \"uuid\": \"00000000-0000-4000-8000-000000000000\",\n    \"name\": \"<name>\",\n    \"status\": \"active\",\n    \"network_name\": \"<network_name>\",\n    \"network_slug\": \"<network_slug>\",\n    \"env_slug\": \"<env_slug>\",\n    \"url\": \"<url>\",\n    \"rps_limit\": 0,\n    \"created_at\": \"2026-01-01T00:00:00Z\",\n    \"version\": \"<version>\",\n    \"block_height\": 0,\n    \"allowed_ips\": [\n      \"<allowed_ips>\"\n    ],\n    \"allowed_origins\": [\n      \"<allowed_origins>\"\n    ]\n  }\n}"
            }
          ]
        }
      ]
    }
  ],
  "event": [
    {
      "listen": "prerequest",
      "script": {
        "type": "text/javascript",
        "exec": [
          "// Signs every request of the RpcNode Public API: X-Api-Key, X-Timestamp, X-Signature (https://docs.rpcnode.dev/public-api/authentication).",
          "// The canonical string: {timestamp}\\n{METHOD}\\n{path?query}\\n{sha256_hex(body)}; the path is the request target without the host (/v1/...).",
          "const apiKey = pm.variables.get('apiKey');",
          "const apiSecret = pm.variables.get('apiSecret');",
          "if (!apiKey || !apiSecret) {",
          "  throw new Error('RpcNode: set apiKey (the key UUID) and apiSecret (sk_live_...) in the \"RpcNode Public API\" environment and select it.');",
          "}",
          "const url = pm.variables.replaceIn(pm.request.url.toString());",
          "// the target as it goes on the wire: Postman percent-encodes spaces, quotes, braces and non-ASCII characters when it sends, and the server signs what it receives",
          "const target = (url.replace(/^[a-z][a-z0-9+.-]*:\\/\\/[^/?#]+/i, '') || '/').replace(/[\\u0000-\\u0020\\u007f-\\u{10ffff}\"<>`{}]/gu, (c) => encodeURIComponent(c));",
          "const body = pm.request.body && pm.request.body.mode === 'raw' ? pm.variables.replaceIn(pm.request.body.raw || '') : '';",
          "const timestamp = String(Math.floor(Date.now() / 1000));",
          "const canonical = [timestamp, pm.request.method.toUpperCase(), target, CryptoJS.SHA256(body).toString(CryptoJS.enc.Hex)].join('\\n');",
          "const signature = CryptoJS.HmacSHA256(canonical, apiSecret).toString(CryptoJS.enc.Hex);",
          "pm.request.headers.upsert({ key: 'X-Api-Key', value: apiKey });",
          "pm.request.headers.upsert({ key: 'X-Timestamp', value: timestamp });",
          "pm.request.headers.upsert({ key: 'X-Signature', value: signature });"
        ]
      }
    },
    {
      "listen": "test",
      "script": {
        "type": "text/javascript",
        "exec": [
          "// A failure of the API is {\"ok\": false, \"error_code\": ...}: shown as a failed test with its code.",
          "pm.test('ok', () => {",
          "  const json = pm.response.json();",
          "  pm.expect(json.ok, json.error_code ? `${json.error_code}: ${json.error}` : 'no ok in the answer').to.equal(true);",
          "});"
        ]
      }
    }
  ],
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.rpcnode.dev/v1",
      "type": "string",
      "description": "The Public API with /v1. A local backend: http://127.0.0.1:3003/v1."
    },
    {
      "key": "orderId",
      "value": "",
      "description": "Your own order number, exactly as sent on create. Required.",
      "type": "string"
    },
    {
      "key": "paymentId",
      "value": "",
      "description": "The `payment_id` of the payment (a UUID). Required.",
      "type": "string"
    },
    {
      "key": "slug",
      "value": "",
      "description": "Network slug, for example `ethereum`. Required.",
      "type": "string"
    },
    {
      "key": "uuid",
      "value": "",
      "description": "The `uuid` of the endpoint from list or create (not a numeric id). Required.",
      "type": "string"
    },
    {
      "key": "watchId",
      "value": "",
      "description": "The `watch_id` returned by add or list (a UUID). Required.",
      "type": "string"
    }
  ]
}
