LogoLogo
Back to AppHelp Center
  • Getting Started
    • Welcome
  • OrdinalsBot API
    • Overview
    • Libraries
    • Template-App
    • Signet
    • Testnet
    • Fractal
    • Getting Prices
      • Getting Prices (Legacy)
    • Create a Direct Inscription Order
    • Create a Managed Inscription Order
    • Get Order Status
    • Create a Collection
    • Create a Collection Order
    • Create Text Inscription Order
    • Search Inscriptions
    • Check Rare Sats Inventory
    • Referral Scheme
    • Transaction Accelerator
    • Burning Assets
    • Webhooks
    • Order States
    • Order Types
  • Runes
    • Etch
    • Mint
    • Launchpad
      • Create
      • Mint
      • Get Launchpad
    • Airdrop
  • Token Pay
    • What is TokenPay?
    • API Docs
      • API reference
        • Order
        • Create payment psbt
        • Create burn rune psbt
        • Validate burn rune tx
        • Create burn inscription psbt
        • Utils
          • Checktx
          • Submittx
          • Finalize psbt
        • User
          • Withdrawal
          • Order
            • Rune
          • Account
            • Withdraw
            • Balance
      • Specification
  • Marketplace
    • User Guide: Pre-Inscribed Launchpad API
    • API Docs
    • Editions Launchpad
  • Launchpad API
    • Create Marketplace
    • Create a new Launchpad
    • Retrieve Launch PSBT
    • Confirm Launch
    • Check Allocation
    • Check for Padding Outputs
    • Setup Padding Outputs
    • Create buy offer
    • Confirm buy offer
    • Get Launch Info
  • Sat Scanner API
    • Find Special Ranges
    • Find Special Ranges UTXO
    • Supported Satributes
  • Sat Extractor
    • Extract
  • BRC20 / BRC2.0PROG
    • OPI API
    • Bitcoin Remix
  • SNS API
    • SNS API
  • Mempool API
    • Mempool API
  • TAP PROTOCOL
    • Tap Reader API
  • UTXO
    • Split
  • User Guide
    • Inscribe your first Ordinal
    • Receiving Payments
  • Knowledge Base
    • Ordinals
      • What is an Ordinal?
      • Satoshi Rarity
      • What are BRC-20 Tokens?
      • Image Optimisation
      • Pixel Art
    • Bitcoin
      • Unspent Transaction Output (UTXO)
  • Official Links
    • Twitter
    • Discord
Powered by GitBook
On this page
  • Get BRC20 Ticker Info
  • Get BRC20 Wallet Balance
  • Get BRC20 Index Block Height
  1. BRC20 / BRC2.0PROG

OPI API

OPI API endpoints are available to use with an API Key or from allow-listed domains.

PreviousExtractNextBitcoin Remix

Last updated 1 year ago

Mainnet:

Testnet:

You can refer to official OPI documentation for all available endpoints.

Get BRC20 Ticker Info

GET https://api.ordinalsbot.com/opi/v1/brc20/ticker_info

Query Parameters

Name
Type
Description

ticker*

String

Ticker to get information for

Headers

Name
Type
Description

x-api-key*

String

API Key

{
    "error": null,
    "result": {
        "id": "10228",
        "original_tick": "TRIO",
        "tick": "trio",
        "max_supply": "21000000000000000000000000",
        "decimals": 18,
        "limit_per_mint": "10000000000000000000000",
        "remaining_supply": "0",
        "burned_supply": "0",
        "is_self_mint": false,
        "deploy_inscription_id": "c409d95ec5d858dcac9ef2e7b6bb57752b2e213f4e5443a252bdcc74625ec674i0",
        "block_height": 788143
    }
}

Get BRC20 Wallet Balance

GET https://api.ordinalsbot.com/opi/v1/brc20/get_current_balance_of_wallet

Query Parameters

Name
Type
Description

address*

String

Bitcoin address to check balance

ticker

String

Ticker to get balance

Headers

Name
Type
Description

x-api-key*

String

API Key

{
    "error": null,
    "result": [
        {
            "overall_balance": "550000000000000000000",
            "available_balance": "50000000000000000000",
            "block_height": 840857,
            "tick": "trio"
        }
    ]
}

Get BRC20 Index Block Height

GET https://api.ordinalsbot.com/opi/v1/brc20/block_height

Headers

Name
Type
Description

x-api-key*

String

API Key

838346
{
    status: 'error',
    error: 'error reason'
}
https://api.ordinalsbot.com/opi
https://testnet-api.ordinalsbot.com/opi
OPI/modules/brc20_api/api.js at main · bestinslot-xyz/OPIGitHub
Logo