{
  "openapi": "3.0.0",
  "info": {
    "title": "Dogecoin Blockbook JSON-RPC API",
    "description": "Get access to balances, transactions, and UTXOs for addresses or xpubs via JSON-RPC. Adds 10 new methods.",
    "version": "1.0.0",
    "contact": {
      "email": "support@quicknode.com",
      "url": "https://support.quicknode.com/hc/en-us"
    }
  },
  "servers": [
    {
      "url": "https://{quicknode_endpoint}",
      "description": "Your Quicknode endpoint",
      "variables": {
        "quicknode_endpoint": {
          "default": "your-endpoint.quiknode.pro",
          "description": "Your Quicknode endpoint URL"
        }
      }
    }
  ],
  "tags": [
    {
      "name": "JSON-RPC",
      "description": "See request body examples for the available methods you can call on this add-on"
    }
  ],
  "paths": {
    "/rpc": {
      "post": {
        "summary": "JSON-RPC methods for https://blockbook-json-rpc.quicknode.com/rpc",
        "description": "Available methods:\n• bb_getBlock: bb_getBlock(block_hash_or_height) Returns the block data with transaction objects.\n• bb_getTickersList: Returns a list of available currency rate tickers (secondary currencies) for the specified date, along with an actual data timestamp.\n• bb_getTx: bb_getTx(txHash) Returns transaction object for txHash.\n• bb_getBlockHash: Returns the hash of the block at the given height.\n• bb_getTxSpecific: Returns transaction data in the exact format as returned by backend.\n• bb_getTickers: Returns currency rate for the specified currency and date. If the currency is not available for that specific timestamp, the next closest rate will be returned. All responses contain an actual rate timestamp.\n• bb_getAddress: bb_getAddress(address, options_object)Returns balances and transactions of an address. The returned transactions are sorted by block height, newest blocks first.\n• bb_getXPUB: bb_getXPUB(xpub_or_descriptor, options_object)Returns balances and transactions of an xpub or output descriptor.\n• bb_getUTXOs: bb_getUTXOs(address_or_xpub_or_descriptor, options_object)Returns array of unspent transaction outputs of address or xpub. By default, the list contains both confirmed and unconfirmed transactions. The option { confirmed: true } disables return of unconfirmed transactions.\n• bb_getBalanceHistory: Returns a balance history for the specified XPUB or address.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "jsonrpc": {
                        "type": "string",
                        "enum": [
                          "2.0"
                        ]
                      },
                      "method": {
                        "type": "string",
                        "enum": [
                          "bb_getBlock"
                        ]
                      },
                      "id": {
                        "type": "integer",
                        "example": 1
                      },
                      "params": {
                        "type": "array",
                        "description": "Positional parameters",
                        "items": {
                          "description": "Parameter value (can be string, number, boolean, object, etc.)"
                        },
                        "example": [
                          "FILL_ME_ARG",
                          {
                            "page": 1
                          }
                        ]
                      }
                    },
                    "required": [
                      "jsonrpc",
                      "method",
                      "id",
                      "params"
                    ]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "jsonrpc": {
                        "type": "string",
                        "enum": [
                          "2.0"
                        ]
                      },
                      "method": {
                        "type": "string",
                        "enum": [
                          "bb_getTickersList"
                        ]
                      },
                      "id": {
                        "type": "integer",
                        "example": 1
                      },
                      "params": {
                        "type": "array",
                        "description": "Positional parameters",
                        "items": {
                          "description": "Parameter value (can be string, number, boolean, object, etc.)"
                        },
                        "example": [
                          {
                            "timestamp": 1574346615
                          }
                        ]
                      }
                    },
                    "required": [
                      "jsonrpc",
                      "method",
                      "id",
                      "params"
                    ]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "jsonrpc": {
                        "type": "string",
                        "enum": [
                          "2.0"
                        ]
                      },
                      "method": {
                        "type": "string",
                        "enum": [
                          "bb_getTx"
                        ]
                      },
                      "id": {
                        "type": "integer",
                        "example": 1
                      },
                      "params": {
                        "type": "array",
                        "description": "Positional parameters",
                        "items": {
                          "description": "Parameter value (can be string, number, boolean, object, etc.)"
                        },
                        "example": [
                          "FILL_ME_ARG"
                        ]
                      }
                    },
                    "required": [
                      "jsonrpc",
                      "method",
                      "id",
                      "params"
                    ]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "jsonrpc": {
                        "type": "string",
                        "enum": [
                          "2.0"
                        ]
                      },
                      "method": {
                        "type": "string",
                        "enum": [
                          "bb_getBlockHash"
                        ]
                      },
                      "id": {
                        "type": "integer",
                        "example": 1
                      },
                      "params": {
                        "type": "array",
                        "description": "Positional parameters",
                        "items": {
                          "description": "Parameter value (can be string, number, boolean, object, etc.)"
                        },
                        "example": [
                          "816884"
                        ]
                      }
                    },
                    "required": [
                      "jsonrpc",
                      "method",
                      "id",
                      "params"
                    ]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "jsonrpc": {
                        "type": "string",
                        "enum": [
                          "2.0"
                        ]
                      },
                      "method": {
                        "type": "string",
                        "enum": [
                          "bb_getTxSpecific"
                        ]
                      },
                      "id": {
                        "type": "integer",
                        "example": 1
                      },
                      "params": {
                        "type": "array",
                        "description": "Positional parameters",
                        "items": {
                          "description": "Parameter value (can be string, number, boolean, object, etc.)"
                        },
                        "example": [
                          "FILL_ME_ARG"
                        ]
                      }
                    },
                    "required": [
                      "jsonrpc",
                      "method",
                      "id",
                      "params"
                    ]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "jsonrpc": {
                        "type": "string",
                        "enum": [
                          "2.0"
                        ]
                      },
                      "method": {
                        "type": "string",
                        "enum": [
                          "bb_getTickers"
                        ]
                      },
                      "id": {
                        "type": "integer",
                        "example": 1
                      },
                      "params": {
                        "type": "array",
                        "description": "Positional parameters",
                        "items": {
                          "description": "Parameter value (can be string, number, boolean, object, etc.)"
                        },
                        "example": [
                          {
                            "timestamp": 1574346615
                          }
                        ]
                      }
                    },
                    "required": [
                      "jsonrpc",
                      "method",
                      "id",
                      "params"
                    ]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "jsonrpc": {
                        "type": "string",
                        "enum": [
                          "2.0"
                        ]
                      },
                      "method": {
                        "type": "string",
                        "enum": [
                          "bb_getAddress"
                        ]
                      },
                      "id": {
                        "type": "integer",
                        "example": 1
                      },
                      "params": {
                        "type": "array",
                        "description": "Positional parameters",
                        "items": {
                          "description": "Parameter value (can be string, number, boolean, object, etc.)"
                        },
                        "example": [
                          "FILL_ME_ARG",
                          {
                            "page": 1,
                            "size": 1000,
                            "fromHeight": 0,
                            "details": "txids"
                          }
                        ]
                      }
                    },
                    "required": [
                      "jsonrpc",
                      "method",
                      "id",
                      "params"
                    ]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "jsonrpc": {
                        "type": "string",
                        "enum": [
                          "2.0"
                        ]
                      },
                      "method": {
                        "type": "string",
                        "enum": [
                          "bb_getXPUB"
                        ]
                      },
                      "id": {
                        "type": "integer",
                        "example": 1
                      },
                      "params": {
                        "type": "array",
                        "description": "Positional parameters",
                        "items": {
                          "description": "Parameter value (can be string, number, boolean, object, etc.)"
                        },
                        "example": [
                          "FILL_ME_ARG",
                          {
                            "page": 1,
                            "size": 1000,
                            "fromHeight": 0,
                            "details": "txids"
                          }
                        ]
                      }
                    },
                    "required": [
                      "jsonrpc",
                      "method",
                      "id",
                      "params"
                    ]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "jsonrpc": {
                        "type": "string",
                        "enum": [
                          "2.0"
                        ]
                      },
                      "method": {
                        "type": "string",
                        "enum": [
                          "bb_getUTXOs"
                        ]
                      },
                      "id": {
                        "type": "integer",
                        "example": 1
                      },
                      "params": {
                        "type": "array",
                        "description": "Positional parameters",
                        "items": {
                          "description": "Parameter value (can be string, number, boolean, object, etc.)"
                        },
                        "example": [
                          "FILL_ME_ARG",
                          {
                            "confirmed": true
                          }
                        ]
                      }
                    },
                    "required": [
                      "jsonrpc",
                      "method",
                      "id",
                      "params"
                    ]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "jsonrpc": {
                        "type": "string",
                        "enum": [
                          "2.0"
                        ]
                      },
                      "method": {
                        "type": "string",
                        "enum": [
                          "bb_getBalanceHistory"
                        ]
                      },
                      "id": {
                        "type": "integer",
                        "example": 1
                      },
                      "params": {
                        "type": "array",
                        "description": "Positional parameters",
                        "items": {
                          "description": "Parameter value (can be string, number, boolean, object, etc.)"
                        },
                        "example": [
                          "FILL_ME_ARG",
                          {
                            "from": "1683684000",
                            "to": "1700042400",
                            "fiatcurrency": "usd",
                            "groupBy": 3600
                          }
                        ]
                      }
                    },
                    "required": [
                      "jsonrpc",
                      "method",
                      "id",
                      "params"
                    ]
                  }
                ],
                "discriminator": {
                  "propertyName": "method"
                }
              },
              "examples": {
                "bb_getBlock": {
                  "summary": "bb_getBlock(block_hash_or_height) Returns the block data with transaction objects.",
                  "value": {
                    "jsonrpc": "2.0",
                    "method": "bb_getBlock",
                    "id": 1,
                    "params": [
                      "FILL_ME_ARG",
                      {
                        "page": 1
                      }
                    ]
                  }
                },
                "bb_getTickersList": {
                  "summary": "Returns a list of available currency rate tickers (secondary currencies) for the specified date, along with an actual data timestamp.",
                  "value": {
                    "jsonrpc": "2.0",
                    "method": "bb_getTickersList",
                    "id": 1,
                    "params": [
                      {
                        "timestamp": 1574346615
                      }
                    ]
                  }
                },
                "bb_getTx": {
                  "summary": "bb_getTx(txHash) Returns transaction object for txHash.",
                  "value": {
                    "jsonrpc": "2.0",
                    "method": "bb_getTx",
                    "id": 1,
                    "params": [
                      "FILL_ME_ARG"
                    ]
                  }
                },
                "bb_getBlockHash": {
                  "summary": "Returns the hash of the block at the given height.",
                  "value": {
                    "jsonrpc": "2.0",
                    "method": "bb_getBlockHash",
                    "id": 1,
                    "params": [
                      "816884"
                    ]
                  }
                },
                "bb_getTxSpecific": {
                  "summary": "Returns transaction data in the exact format as returned by backend.",
                  "value": {
                    "jsonrpc": "2.0",
                    "method": "bb_getTxSpecific",
                    "id": 1,
                    "params": [
                      "FILL_ME_ARG"
                    ]
                  }
                },
                "bb_getTickers": {
                  "summary": "Returns currency rate for the specified currency and date. If the currency is not available for that specific timestamp, the next closest rate will be returned. All responses contain an actual rate timestamp.",
                  "value": {
                    "jsonrpc": "2.0",
                    "method": "bb_getTickers",
                    "id": 1,
                    "params": [
                      {
                        "timestamp": 1574346615
                      }
                    ]
                  }
                },
                "bb_getAddress": {
                  "summary": "bb_getAddress(address, options_object)Returns balances and transactions of an address. The returned transactions are sorted by block height, newest blocks first.",
                  "value": {
                    "jsonrpc": "2.0",
                    "method": "bb_getAddress",
                    "id": 1,
                    "params": [
                      "FILL_ME_ARG",
                      {
                        "page": 1,
                        "size": 1000,
                        "fromHeight": 0,
                        "details": "txids"
                      }
                    ]
                  }
                },
                "bb_getXPUB": {
                  "summary": "bb_getXPUB(xpub_or_descriptor, options_object)Returns balances and transactions of an xpub or output descriptor.",
                  "value": {
                    "jsonrpc": "2.0",
                    "method": "bb_getXPUB",
                    "id": 1,
                    "params": [
                      "FILL_ME_ARG",
                      {
                        "page": 1,
                        "size": 1000,
                        "fromHeight": 0,
                        "details": "txids"
                      }
                    ]
                  }
                },
                "bb_getUTXOs": {
                  "summary": "bb_getUTXOs(address_or_xpub_or_descriptor, options_object)Returns array of unspent transaction outputs of address or xpub. By default, the list contains both confirmed and unconfirmed transactions. The option { confirmed: true } disables return of unconfirmed transactions.",
                  "value": {
                    "jsonrpc": "2.0",
                    "method": "bb_getUTXOs",
                    "id": 1,
                    "params": [
                      "FILL_ME_ARG",
                      {
                        "confirmed": true
                      }
                    ]
                  }
                },
                "bb_getBalanceHistory": {
                  "summary": "Returns a balance history for the specified XPUB or address.",
                  "value": {
                    "jsonrpc": "2.0",
                    "method": "bb_getBalanceHistory",
                    "id": 1,
                    "params": [
                      "FILL_ME_ARG",
                      {
                        "from": "1683684000",
                        "to": "1700042400",
                        "fiatcurrency": "usd",
                        "groupBy": 3600
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "JSON-RPC response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "jsonrpc": {
                      "type": "string",
                      "enum": [
                        "2.0"
                      ]
                    },
                    "id": {
                      "type": "integer"
                    },
                    "result": {
                      "description": "Method result"
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "integer"
                        },
                        "message": {
                          "type": "string"
                        },
                        "data": {
                          "description": "Additional error data"
                        }
                      }
                    }
                  },
                  "required": [
                    "jsonrpc",
                    "id"
                  ]
                }
              }
            }
          }
        },
        "externalDocs": {
          "url": "https://www.quicknode.com/docs/doge/bb_getblock",
          "description": "Documentation: bb_getBlock: https://www.quicknode.com/docs/doge/bb_getblock, bb_getTickersList: https://www.quicknode.com/docs/doge/bb_gettickerslist, bb_getTx: https://www.quicknode.com/docs/doge/bb_gettx, bb_getBlockHash: https://www.quicknode.com/docs/doge/bb_getblockhash, bb_getTxSpecific: https://www.quicknode.com/docs/doge/bb_gettxspecific, bb_getTickers: https://www.quicknode.com/docs/doge/bb_gettickers, bb_getAddress: https://www.quicknode.com/docs/doge/bb_getaddress, bb_getXPUB: https://www.quicknode.com/docs/doge/bb_getxpub, bb_getUTXOs: https://www.quicknode.com/docs/doge/bb_getutxos, bb_getBalanceHistory: https://www.quicknode.com/docs/doge/bb_getbalancehistory"
        },
        "tags": [
          "JSON-RPC"
        ]
      }
    }
  },
  "externalDocs": {
    "description": "Support Documentation",
    "url": "https://support.quicknode.com/hc/en-us"
  }
}