# API Changelog Source: https://docs.bestinslot.xyz/api-reference/api-changelog **Retired.** These endpoints are no longer served. Run [OPI](https://github.com/bestinslot-xyz/OPI) instead — see the [introduction](/docs/introduction). Kept for historical reference. ## 20/Jul/2026 * The hosted Ordinals API has been **retired**. Endpoints under `api.bestinslot.xyz`, `testnet.api.bestinslot.xyz` and `signet_api.bestinslot.xyz` are no longer served, and new API keys are not being issued. * Users should self-host [OPI (Open Protocol Indexer)](https://github.com/bestinslot-xyz/OPI), which indexes BRC-20, Bitmap and SNS and exposes a REST API per module. See the [introduction](/docs/introduction). ## 25/Mar/2025 * Removed all offset and count limits from dedicated servers. * Endpoint `/v3/collection/holders` now returns the original wallet address if the inscription is locked using `Ordinal Lockers`. * Added optional `runes_filter_only_wallet` parameter to `/v3/runes/wallet_activity` and `/v3/wallet/global_activity` * Added dedicated only mempool endpoints: * `/v3/mempool/all_runic_utxos` * `/v3/mempool/all_ordinal_utxos` * `/v3/mempool/all_cardinal_utxos` * `/v3/mempool/all_runes_events` * Added optional `send_urls` parameter to `/v3/runes/all_id_name_pairs` * Added `/v3/runes/historical_total_supply` endpoint * Added `vol_3h_in_btc` and `vol_30d_in_btc` to `/v3/collection/collections` response * Added optional `collection_slug` parameter to `/v3/wallet/inscriptions` * Added `/v3/wallet/collections` endpoint * Added `/v3/inscription/render_refresh` endpoint * Increased count limit on `/v3/brc20/tickers` and `/v3/runes/tickers` to `300`. * Added optional `granularity` parameter to `/v3/runes/historical_prices` ## 01/Oct/2024 * Added Mempool & UTXO related APIs. [Mempool](/api-reference/mempool) ## 27/Sep/2024 * Added `output_value`, `genesis_ts`, `genesis_block_hash` to `wallet/inscriptions` and `wallet/inscriptions_batch` * Added `genesis_block_hash` to `inscription/batch_info` * Added more granular sale\_count to `runes/sales_info.` Also, total\_sale\_info field on `runes/tickers` and runes/ticker\_info also includes this more granular sale\_count information. * Added `icon_content_url` and `icon_render_url` to `runes/wallet_activity` * Converted `balances` from `int array` to `string array` for better precision on: * `runes/wallet_valid_outputs` * `runes/wallet_valid_outputs_single_rune` * `runes/output_info` * `runes/batch_output_info` * `runes/valid_outputs` * Added new enterprise only endpoint: `runes/all_id_name_pairs` * Added new dedicated only endpoint: `runes/historical_prices` ## 02/Jul/2024 * Added Unisat floor prices to collection and bitmap endpoints (`collection/market_info`, `collection/collections`, `bitmap/market_info`) * Added OKX listings to brc20 endpoints (`brc20/tickers`, `brc20/market_info`, `brc20/validtxnotes`, `brc20/validtxnotes_wallet`, `brc20/listings`) * Added batch version of `wallet/inscriptions` at `wallet/inscriptions_batch` for PRO users. ## 17/Jun/2024 * Enabled testnet4 API at `https://testnet.api.bestinslot.xyz` * Added tBTC faucet at `/v3/wallet/testnet_faucet` ## 12/Jun/2024 * Added runes icon information to `runes/tickers` and `runes/ticker_info`. New fields are: `icon_inscr_id, icon_delegate_id, icon_content_url, icon_render_url` * Added global activity endpoint (combined view of ordinals, brc20 and runes) to dedicated servers: `/v3/wallet/global_activity` ## 30/May/2024 * Added optional `rune_id`, `rune_name`, `rune_number` filter to `runes/wallet_activity` endpoint. ## 23/May/2024 * Added `brc20/wallet_activity` endpoint * Added `rune_number` as optional input on all endpoints that accepts `rune_id` as input * Improved performance on runes balances related endpoints * Added `total_volume` sorting to `runes/tickers` * Added `avg_unit_price_in_sats`, `min_listed_unit_price_in_sats`, `listed_supply`, `listed_supply_ratio`, `marketcap` and `total_sale_info` fields to `runes/ticker_info` for PRO API Keys * Added `runes/ticker_cnt` endpoint * Increased limit for `runes/holders` to 5000 for PRO API Keys ## 30/Apr/2024 * Updated price calculation algorithm used in runes to use the median unit price. * Added listing information to runes endpoints: * Added `min_listed_unit_price_in_sats` and `min_listed_unit_price_unisat` to `runes/wallet_balances` * Added `min_listed_unit_price_in_sats`, `min_listed_unit_price_unisat`, `listed_supply` and `listed_supply_ratio` to `runes/tickers` * Added `min_price`, `min_unit_price`, `unisat_price`, `unisat_unit_price` to `runes/valid_outputs` * Added `min_price` and `unisat_price` to `runes/wallet_valid_outputs` * Added new endpoints: `runes/market_info`, `runes/listings`, `runes/wallet_valid_outputs_single_rune` ## 25/Apr/2024 * Added signet support via endpoint: `https://signet_api.bestinslot.xyz` ## 24/Apr/2024 * Added Magic Eden support to Runes sales indexing. (Since sales are indexed directly from the chain, we actually support almost all current and future marketplaces already, this support is only for distinguishing which sale happened on which marketplace) Currently supporting: * Unisat * OKX * Ordinals Wallet * Magic Eden ## 23/Apr/2024 * Added decimals to all related runes endpoints: * `runes/wallet_balances`, `runes/wallet_valid_outputs`, `runes/holders`, `runes/output_info`, `runes/batch_output_info`, `runes/valid_outputs`, `runes/activity`, `runes/wallet_activity`, `runes/events_on_tx`, `runes/activity_on_block` ## 22/Apr/2024 * Added on-chain sale information to runes endpoints. These changes are only available on PRO API-Keys * `runes/tickers` added `avg_unit_price_in_sats`, `marketcap`, 3h-6h-9h-12h-1d-3d-7d-30d-total `volumes`, `sale count` and `sale amount` (total sold amount). Also added `avg_unit_price_in_sats` and `marketcap` orderings. * `runes/wallet_balances` added `avg_unit_price_in_sats` * Added `runes/sales_info` endpoint. * Added sale\_info field to `runes/activity`, `runes/wallet_activity`, `runes/events_on_tx` and `runes/activity_on_block`. If the event is a sale event, this will not be null and it'll be an object including `sale_price, sold_to_pkscript, sold_to_wallet_addr, marketplace` properties. * Added `decimals` to `runes/wallet_balances` * `avg_unit_price_in_sats` - Calculated by taking the average unit price of sales in last 6 hrs. If there are not enough sale in last 6 hrs, it'll look at latest several sales, if there is not enough sale on the ticker, it'll return null. Note that this is scaled by decimals to make ordering more meaningful. ## 15/Apr/2024 * Updated runes backend to ord 0.18.1 * Added new **auto\_upgrade**(turbo) field to rune information endpoints. `runes/tickers`, `runes/ticker_info` * Enabled runes API on `mainnet`. ## 11/Apr/2024 * Added `/v3/runes/testnet_faucet` where users with API-Key can request testnet rune 10 times per 24 hours. * The returned rune has decimals: 8 * The mint amount is 1.0 (1\_0000\_0000) * If the faucet drains, it'll stop working so any tBTC contribution to `tb1pxph9qxtvszufzt4qfk4ftxxkg3jrwdypdjkqxj9zwtcl0kwu8qkqu7df8n` is appreciated. ## 05/Apr/2024 * Added Testnet Runes support ## 29/Mar/2024 * Updated inscription suite to ord v0.16.0 * Added delegate and parent ids support. * Added rendered urls for recursive inscriptions. Rendering is done asynchronously so some new recursive inscriptions may not have rendered images yet. * On collection information endpoints: `icon_render_url` field is added for recursive inscription icons of some collections. Also, if collection\_icon is an inscription id and that inscription has an inscribed delegate, `icon_render_url` and `icon_url` will use delegate inscription information. `collection/info, collection/collections` * On inscription information endpoints: `parent_ids`, `render_url` and `delegate` fields are added. `delegate` field has `delegate_id`, `render_url`, `mime_type`, `content_url` and `bis_url` subfields. If the inscription doesn't have `delegate_id` set, then `delegate` field will be `null`. If the inscription does have `delegate_id` set but this id hasn't been inscribed yet, then only `delegate_id` subfield will have value, others will be `null`. collection/inscriptions, wallet/inscriptions, inscription/single\_info\_id, inscription/batch\_info, inscription/new\_inscriptions\_in\_block ## 29/Mar/2024 * Updated whole metaprotocol suite to OPI v0.4.0 * Added original\_ticker, is\_self\_mint and burned\_supply to ticker info endpoints: `brc20/tickers, brc20/ticker_info` * Added original\_ticker, parent\_id and is\_self\_mint to event endpoints: `brc20/single_info, brc20/batch_info, brc20/activity_on_block` ## 12/Mar/2024 * Added `bitmap_number` to `inscription/single_info_id, inscription/batch_info, inscription/new_inscriptions_in_block and wallet/inscriptions`. ## 08/Jan/2024 * Added `byte_size` to `inscription/single_info_id, inscription/batch_info, inscription/new_inscriptions_in_block`. * Added `listed_count, floor_price, floor_price_ordswap, floor_price_magiceden, floor_price_ordinalswallet, floor_price_gammaio, floor_price_ordynals, floor_price_ordinalsmarket, floor_price_okx, vol_24h_in_btc, vol_7d_in_btc, sale_cnt_7d, vol_total_in_btc, sale_cnt_total, marketcap` to **pro tier** `collection/collections`. * Added `brc20/event_from_txid` endpoint. * Added optional `wallet` filter to `brc20/activity`. ## 04/Jan/2024 * Updated metaprotocol backend to OPI v0.2.0 which uses ord 0.14.0 with vindicated charm added. ## 20/Dec/2023 * Added OrdinalNovus to Sale Marketplace Identifier. * Increased page size of `wallet/inscriptions`, `brc20/validtxnotes` and `brc20/validtxnotes_wallet` to 2000. * Moved `brc20/validtxnotes` and `brc20/validtxnotes_wallet` to Basic API category. * Added optional `cursed_only` filter to `wallet/inscriptions`. ## 19/Dec/2023 * Updated to ord v0.12.3 * BRC20 and Bitmap backend now uses [OPI](https://github.com/bestinslot-xyz/OPI). * Added `brc20/batch_info` endpoint. * Added new fields to response of `brc20/tickers`. ## 09/Nov/2023 * Added `inscription/activity_on_block` enterprise endpoint. ## 08/Nov/2023 * Improved performance of brc20 balance\_on\_block endpoints. * Increased query limit of `batch_balance_on_block` to 100. ## 07/Nov/2023 * Upgraded API backend to ord 0.9.0 * Opened testnet API ## 01/Nov/2023 * Added sub1k and sub10k meta-collections. * Added `brc20/batch_balance_on_block` enterprise endpoint. * Added `owner_wallet_addr` to all listing endpoints. ## 27/Oct/2023 * Added `/v3/brc20/all_validtxnotes` and `/v3/brc20/all_balances` enterprise endpoints. * Added `bitmap` endpoints. ## 01/Sep/2023 * Added new Magic Eden Batch Sale type to our sale-indexer and marketplace-indexer. All missing sales have been indexed. * Added `inscription/new_inscriptions_in_block` Enterprise endpoint. * Added `ticker` to the response of `brc20/validtxnotes_wallet`. * Added `satpoint` to the responses of `brc20/validtxnotes` and `brc20/validtxnotes_wallet` * Added optional `ticker` filter to `brc20/wallet_balances` * Added `old_satpoint` and `new_satpoint` to the response of `brc20/activity_on_block` * Added `sale_amount` (how many tokens have been sold) to the response of `brc20/sales_info` * Added optional `last_new_satpoint` parameter to `brc20/activity` too. It works the same as `collection/activity` * Fixed `collection/holders` response for an empty collection. Now the endpoint returns an empty array. ## 23/Aug/2023 * added brc20/activity\_on\_block and brc20/balance\_on\_block Enterprise endpoints. ## 22/Aug/2023 * added brc20/validtxnotes\_wallet to get valid brc-20 tx notes of a given wallet address * added inscription/global\_info which returns total count of inscriptions, count of different mime types, and some global volume information * added inscription/batch\_info which returns information about multiple inscriptions (up to 100) using their number or id or location (utxo) * added nonbrc20\_inscription\_count to wallet/metadata ## 11/Aug/2023 * added okx listings to API * collection/market\_info * collection/listings * wallet/listings * inscription/single\_info\_id * added brc20/activity\_on\_block endpoint * added brc20/balance\_on\_block endpoint * optimised indexer and queries ## 04/Aug/2023 * added exclude\_brc20 to wallet/inscriptions * added wallet/metadata endpoint * added sats/activity endpoint * increased count limit on wallet/inscriptions to 500 * added optional paging to collection/holders * return only listed items on collection/listings & wallet/listings & brc20/listings * made api-key mandatory, apply for a free/trial key to test our API * enabled auto transition to free-tier when a key got expired * fixed a problem about unisat/okx sale marketplace identification ## 24/Jul/2023 * collection/sales\_info and brc20/sales\_info now supports setting a marketplace to get statistics for only selected marketplace * collection/activity wallet/activity and inscription/activity now returns marketplace\_type on sale events * collection/inscriptions and wallet/inscriptions now returns genesis\_height too * brc20/tickers now uses an optional minting\_status parameter to filter tickers based on their minting status # BIP-322 Source: https://docs.bestinslot.xyz/api-reference/bip-322 Endpoints related to BIP-322 Protocol **Retired.** These endpoints are no longer served. Run [OPI](https://github.com/bestinslot-xyz/OPI) instead — see the [introduction](/docs/introduction). Kept for historical reference. Endpoints' API-Key-Tier availabilities are written for each endpoint. ## BIP-322 Verify Signature *Included in: Basic, Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/bip322/verify` Returns if the given signature is valid for given address. Sample query: [https://api.bestinslot.xyz/v3/bip322/verify?address=bc1puhgw5ftrcnzfkkzrmzw8cuwmejjzaf5y2ql06cdrn002095dw8fs803glh\&signature\_b64=AUEde3at2iDQWz5VrXMxeOv8uIwTOlONPoRsO8wmA4iXz5ssIHLXxDP3fjVkb/yp0pxjgwamKq1oe15fSV6wAOzUAQ==\&message\_b64=bGlzdGVuaW5nIHRvIHN0YXJzIGJ5IHRoZSB4eA==](https://api.bestinslot.xyz/v3/bip322/verify?address=bc1puhgw5ftrcnzfkkzrmzw8cuwmejjzaf5y2ql06cdrn002095dw8fs803glh\&signature_b64=AUEde3at2iDQWz5VrXMxeOv8uIwTOlONPoRsO8wmA4iXz5ssIHLXxDP3fjVkb/yp0pxjgwamKq1oe15fSV6wAOzUAQ==\&message_b64=bGlzdGVuaW5nIHRvIHN0YXJzIGJ5IHRoZSB4eA==) #### Query Parameters | Name | Type | Description | | ---------------- | ------ | -------------------------------------- | | address\* | string | signer address | | signature\_b64\* | string | base64 encoded string of the signature | | message\_b64\* | string | base64 encoded string of the message | ```json theme={null} { "data": true, "block_height": 799062 } ``` # Bitmap Source: https://docs.bestinslot.xyz/api-reference/bitmap Endpoints related to Bitmap. **Retired.** These endpoints are no longer served. Run [OPI](https://github.com/bestinslot-xyz/OPI) instead — see the [introduction](/docs/introduction). Kept for historical reference. Endpoints' API-Key-Tier availabilities are written for each endpoint. **To use on testnet4/signet, use your current api-key and send the request to `https://testnet.api.bestinslot.xyz` / `https://signet_api.bestinslot.xyz`** ## Get Bitmap Holders *Included in: Basic, Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/bitmap/holders` Returns an array with holder information. Each entry has a wallet address and collected inscription ids. Sample query: [https://api.bestinslot.xyz/v3/bitmap/holders?sort\_by=wallet\_addr\&order=asc\&offset=0\&count=100](https://api.bestinslot.xyz/v3/bitmap/holders?sort_by=wallet_addr\&order=asc\&offset=0\&count=100) #### Query Parameters | Name | Type | Description | | -------- | ------ | ------------------------------- | | sort\_by | string | (optional) "wallet\_addr" | | order | string | (optional) "asc", "desc" | | offset\* | int | (optional) 0 \<= offset | | count\* | int | (optional) 20 \<= count \<= 100 | ```json theme={null} { "data": [ { "wallet": "12ufzRLA89ZyLPTe6HCUnVGRtdNfr8tYXp", "inscription_ids": [ "5e7989591908aa5e1874545518b4b2d9ccfbde83f40a94340cc5fbd5d923b981i0", "b5eced1df647a5a55c2753d44dfb8976a5a7c6c0035f68c76c6a96bb60e14700i0", "689616aeeb568d3e93fae34563b2134b81fa46ebc58b32b45b26332b945f8569i0", "c7117a8e524b657b3f37b9d42d7fce5d62a920307e569448131cd3ab9cb2cb43i0", "d9875cf906b853a3204270bbc8f53a8054716ba3ffdc2da4d2a87e77631c473di0" ] }, ... ], "block_height": 795035 } ``` ## Get Bitmap Inscriptions *Included in: Basic, Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/bitmap/inscriptions` Returns ordered list of bitmap inscriptions. Sample query: [https://api.bestinslot.xyz/v3/bitmap/inscriptions?sort\_by=inscr\_num\&order=asc\&offset=100\&count=100](https://api.bestinslot.xyz/v3/bitmap/inscriptions?sort_by=inscr_num\&order=asc\&offset=100\&count=100) last\_sale\_price is only available on Pro Tier. #### Query Parameters | Name | Type | Description | | ---------- | ------ | -------------------- | | sort\_by\* | string | inscr\_num | | order\* | string | asc, desc | | offset\* | int | 0 \<= offset | | count\* | int | 20 \<= count \<= 100 | ```json theme={null} { "data": [ { "bitmap_number": 0, "inscription_id": "86539aff946c437af8088955827b7e6ff48fc6192836d4071b697b5359b7a732i0", "inscription_number": 10423123, "owner_wallet_addr": "bc1p7hf8x2q2zal4v64c2h34qheyz4zk8zgnv767ygkkrd5dhg9zackq4rmvhd", "last_transfer_block_height": 792435, "genesis_height": 792435, "last_sale_price": null, "content_url": "https://bis-ord-content.fra1.cdn.digitaloceanspaces.com/ordinals/86539aff946c437af8088955827b7e6ff48fc6192836d4071b697b5359b7a732i0", "bis_url": "https://bestinslot.xyz/ordinals/inscription/86539aff946c437af8088955827b7e6ff48fc6192836d4071b697b5359b7a732i0" }, ... ], "block_height": 799055 } ``` ## Get Bitmap Sales Information *Included in: Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/bitmap/sales_info` Returns sales and volume information about bitmaps. Sample query: [https://api.bestinslot.xyz/v3/bitmap/sales\_infomarketplace\_type=magiceden](https://api.bestinslot.xyz/v3/bitmap/sales_infomarketplace_type=magiceden) #### Query Parameters | Name | Type | Description | | ----------------- | ------ | ----------------------------------------------------------------------------------------------------------- | | marketplace\_type | string | Optional parameter to filter only by a given marketplace. You can find the allowed types on Constants Page. | ```json theme={null} { "data": { "vol_3h": "5582294", "vol_6h": "21472011", "vol_9h": "34006304", "vol_12h": "36548463", "vol_1d": "51050633", "vol_3d": "91950108", "vol_7d": "165391876", "vol_30d": "755204897", "vol_total": "9207676876", "sale_count": 137473, "marketplace": "all" }, "block_height": 814057 } ``` ## Get Bitmap Market Information *Included in: Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/bitmap/market_info` Returns market information like marketcap, listed count, floor price about bitmaps. Sample query: [https://api.bestinslot.xyz/v3/bitmap/market\_info](https://api.bestinslot.xyz/v3/bitmap/market_info) ```json theme={null} { "data": { "listed_count": 31279, "floor_price": 73344, "floor_price_ordswap": null, "floor_price_magiceden": 79560, "floor_price_ordinalswallet": 73344, "floor_price_gammaio": null, "floor_price_ordynals": null, "floor_price_unisat": 75375, "floor_price_ordinalsmarket": 15000000, "floor_price_okx": 76000, "supply": 849818, "marketcap": 62329051392 }, "block_height": 849817 } ``` ## Get Bitmap Listings *Included in: Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/bitmap/listings` Returns ordered list of listings of bitmaps. Sample query: [https://api.bestinslot.xyz/v3/bitmap/listings?sort\_by=min\_price\&order=asc\&offset=0\&count=100](https://api.bestinslot.xyz/v3/bitmap/listings?sort_by=min_price\&order=asc\&offset=0\&count=100) #### Query Parameters | Name | Type | Description | | ---------- | ------ | ----------------------------------------------------------------------------------------------------------------------------------------------------- | | sort\_by\* | string | min\_price, ordswap\_price, magiceden\_price, ordinalswallet\_price, gammaio\_price, odynals\_price, unisat\_price, ordinalsmarket\_price, okx\_price | | order\* | string | asc, desc | | offset\* | int | 0 \<= offset \<= 5k | | count\* | int | 20 \<= count \<= 100 | ```json theme={null} { "data": [ { "inscription_id": "013dcd2c02ff459aa240a9e3a09d6e0203c9332a3ad691be7297bcb62d635cb4i0", "min_price": 30000, "ordswap_price": null, "magiceden_price": null, "ordinalswallet_price": 30000, "gammaio_price": null, "nostr_price": null, "odynals_price": null, "unisat_price": null, "ordinalsmarket_price": null, "okx_price": null, "owner_wallet_addr": "bc1p28m2g5rvyjjc2a625thtsv7snv4gpqv9ens5vz5kftx2smhzjn5qawq0fy" }, ... ], "block_height": 803265 } ``` ## Get Bitmap Activity *Included in: Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/bitmap/activity` Returns ordered list of inscribes, sales and transfers of bitmaps. Use last\_new\_satpoint to continue fetching the activity from where you've left off. new\_satpoint uniquely addresses a single inscription transfer, so by setting order to asc, and last\_new\_satpoint to the latest new\_satpoint value that you've received, you can retrieve the new activities. Sample query: [https://api.bestinslot.xyz/v3/bitmap/activity?activity\_filter=7\&sort\_by=ts\&order=asc\&offset=0\&count=100\&last\_new\_satpoint=cc9f10dda7c6e03637ed8205f33067f6d0b20520bb082f500ea33edd5a10ebc5:2:0](https://api.bestinslot.xyz/v3/bitmap/activity?activity_filter=7\&sort_by=ts\&order=asc\&offset=0\&count=100\&last_new_satpoint=cc9f10dda7c6e03637ed8205f33067f6d0b20520bb082f500ea33edd5a10ebc5:2:0) #### Query Parameters | Name | Type | Description | | | ------------------- | ------ | ---------------------------------------------------------------------------------------------- | ------ | | sort\_by\* | string | ts | | | order\* | string | asc, desc | | | offset\* | int | 0 \<= offset \<= 5k | | | count\* | int | 20 \<= count \<= 100 | | | activity\_filter\* | int | 1 -> inscribed 2 -> transferred 4 -> sold combine with or operator (e.g. sold & transferred: 2 | 4 = 6) | | last\_new\_satpoint | string | (optional) use this with offset 0 to continue from a known transfer | | ```json theme={null} { "data": [ { "inscription_id": "10490d6e63cdced2810011dcbb0952e26ca7a7bc609167487b76f567306dbfd5i0", "from_wallet": "bc1pn4zg6zwk256tlhgkxlj2jn6khnrtuynafw9cz6lrp6wvgmywkmusn6m8xd", "to_wallet": "bc1p4kdgatpw9sdawnjzt206yyu33uhxnfpnv476td8m0tt8rznnvxkqk49rvh", "block_height": 814057, "sale_price": 21242, "new_satpoint": "31226b1ea0acc7a46ff7b1a86745e88dab759deaf50836b62d044d5f17801bad:1:0", "ts": "2023-10-27T11:47:28.000Z", "marketplace_type": "magiceden", "tx_id": "31226b1ea0acc7a46ff7b1a86745e88dab759deaf50836b62d044d5f17801bad" }, ... ], "block_height": 795035 } ``` # BRC-20 Source: https://docs.bestinslot.xyz/api-reference/brc-20 Endpoints related to BRC-20 Protocol. **Retired.** These endpoints are no longer served. Run [OPI](https://github.com/bestinslot-xyz/OPI) instead — see the [introduction](/docs/introduction). Kept for historical reference. Endpoints' API-Key-Tier availabilities are written for each endpoint. **To use on testnet4/signet, use your current api-key and send the request to `https://testnet.api.bestinslot.xyz` / `https://signet_api.bestinslot.xyz`** ## BRC-20 Balances of Wallet *Included in: Basic, Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/brc20/wallet_balances` Returns BRC-20 token balances of a bitcoin wallet. Sample query: [https://api.bestinslot.xyz/v3/brc20/wallet\_balances?address=bc1pgmtxez2cnp3wk5q52wjcakrkqqfxukgmannrtttm4kq64q53qw7qw44juz](https://api.bestinslot.xyz/v3/brc20/wallet_balances?address=bc1pgmtxez2cnp3wk5q52wjcakrkqqfxukgmannrtttm4kq64q53qw7qw44juz) min\_listed\_unit\_price is only available on Pro Tier. #### Query Parameters | Name | Type | Description | | --------- | ------ | ---------------------------------------------------------- | | address\* | string | bitcoin wallet address | | ticker | string | (optional) Filter reponse to only show the selected ticker | ```json theme={null} { "data": [ { "ticker": "oxbt", "overall_balance": "5000.0000000000000000", "available_balance": "0.000000000000000000000000000000000000", "transferrable_balance": "5000.0000000000000000", "image_url": null, "min_listed_unit_price": 335.94 }, { "ticker": "mnga", "overall_balance": "50000.000000000000", "available_balance": "0.000000000000000000000000000000000000", "transferrable_balance": "50000.000000000000", "image_url": null, "min_listed_unit_price": 0.4072 }, { "ticker": "btoc", "overall_balance": "500.0000000000000000", "available_balance": "0.000000000000000000000000000000000000", "transferrable_balance": "500.0000000000000000", "image_url": null, "min_listed_unit_price": 144.556 } ], "block_height": 795037 } ``` ## Get BRC-20 Tickers *Included in: Basic, Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/brc20/tickers` Returns ordered list of brc-20 tickers with detailed information about them. Sample query: [https://api.bestinslot.xyz/v3/brc20/tickers?sort\_by=remaining\_supply\&order=asc\&offset=0\&count=100\&minting\_status=not\_complete](https://api.bestinslot.xyz/v3/brc20/tickers?sort_by=remaining_supply\&order=asc\&offset=0\&count=100\&minting_status=not_complete) min\_listed\_unit\_price, listed\_supply, marketcap and total\_sale\_info is only available on Pro Tier. #### Query Parameters | Name | Type | Description | | --------------- | ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | sort\_by\* | string | deploy\_ts, max\_supply, burned\_supply, minted\_supply, remaining\_supply, holder\_count, tx\_count, mint\_progress PRO TIER: min\_listed\_unit\_price, min\_listed\_unit\_price\_ordinalswallet, min\_listed\_unit\_price\_unisat, min\_listed\_unit\_price\_okx, listed\_supply, listed\_supply\_ratio, marketcap | | order\* | string | asc, desc | | offset\* | int | 0 \<= offset | | count\* | int | 20 \<= count \<= 300 | | minting\_status | string | (optional) set to "not\_complete" for searching only the tickers with minting\_progress\<100 set to "completed" for searching only the tickers with minting\_progress=100 do not set to search within all tickers | ```json theme={null} { "data": [ { "ticker": "ordi", "original_ticker": "ordi", "image_url": "https://bis-brc20.fra1.cdn.digitaloceanspaces.com/big_icons/ORDI.png", "decimals": 18, "limit_per_mint": 1000, "max_supply": 21000000, "minted_supply": 21000000, "burned_supply": 0, "remaining_supply": 0, "mint_progress": 100, "holder_count": 21425, "tx_count": 139415, "deploy_ts": "2023-03-08T04:16:31.000Z", "deploy_incr_number": 348020, "deploy_inscr_id": "b61b0172d95e266c18aea0c624db987e971a5d6d4ebc2aaed85da4642d635735i0", "is_self_mint": false, "min_listed_unit_price": 66821.445, "min_listed_unit_price_ordinalswallet": 71000, "min_listed_unit_price_unisat": 66821.445, "min_listed_unit_price_okx": 68999.9909090909, "listed_supply": 37504.693454911176, "listed_supply_ratio": 0.0017859377835671988, "marketcap": 1403250345000.0002, "total_sale_info": { "sale_count": 41894, "sale_amount": 6714108, "vol_3h": 0, "vol_6h": 0, "vol_9h": 0, "vol_12h": 0, "vol_1d": 0, "vol_3d": 26836090, "vol_7d": 51723223, "vol_30d": 1443558529, "vol_total": 246425756972 } }, ... ], "block_height": 795037 } ``` ## Get BRC-20 Minting Ticker Count *Included in: Basic, Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/brc20/ticker_cnt` Returns the count of brc-20 tickers which haven't finished minting and total brc-20 ticker count. Sample query: [https://api.bestinslot.xyz/v3/brc20/minting\_ticker\_cnt](https://api.bestinslot.xyz/v3/brc20/minting_ticker_cnt) ```json theme={null} { "data": { "minting_ticker_cnt": 29039, "ticker_cnt": 36899 }, "block_height": 798400 } ``` ## Get BRC-20 Ticker Information *Included in: Basic, Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/brc20/ticker_info` Returns detailed information about a specific BRC-20 ticker. Sample query: [https://api.bestinslot.xyz/v3/brc20/ticker\_info?ticker=ORDI](https://api.bestinslot.xyz/v3/brc20/ticker_info?ticker=ORDI) #### Query Parameters | Name | Type | Description | | -------- | ------ | ------------- | | ticker\* | string | BRC-20 ticker | ```json theme={null} { "data": { "ticker": "ordi", "original_ticker": "ordi", "image_url": "https://bis-brc20.fra1.digitaloceanspaces.com/icons/ordi.png", "limit_per_mint": 1000, "max_supply": 21000000, "minted_supply": 21000000, "burned_supply": 0, "mint_progress": 100, "holder_count": 12396, "tx_count": 57265, "deploy_ts": "2023-03-08T04:16:31.000Z", "deploy_incr_number": 348020, "deploy_inscr_id": "b61b0172d95e266c18aea0c624db987e971a5d6d4ebc2aaed85da4642d635735i0", "is_self_mint": false }, "block_height": 795038 } ``` ## Get BRC-20 Valid Transfer Notes *Included in: Basic, Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/brc20/validtxnotes` Returns ordered list of brc-20 valid transfer notes of a given ticker with detailed information about them. Sample query: [https://api.bestinslot.xyz/v3/brc20/validtxnotes?ticker=ordi\&sort\_by=min\_unit\_price\&order=asc\&offset=0\&count=100](https://api.bestinslot.xyz/v3/brc20/validtxnotes?ticker=ordi\&sort_by=min_unit_price\&order=asc\&offset=0\&count=100) #### Query Parameters | Name | Type | Description | | ---------- | ------ | ---------------------------------------------------------- | | sort\_by\* | string | inscr\_num, min\_price, min\_unit\_price, transfer\_amount | | order\* | string | asc, desc | | offset\* | int | 0 \<= offset | | count\* | int | 20 \<= count \<= 2000 | | ticker\* | string | BRC-20 ticker | ```json theme={null} { "data": [ { "inscription_id": "b82f206d2d1bd7e5a2752f969acf63ac3664b2016872a4cbcc1d81a06da0bb34i0", "inscription_number": 27576503, "transfer_amount": "1000.0000000000000000", "is_valid": true, "is_used": false, "satpoint": "b82f206d2d1bd7e5a2752f969acf63ac3664b2016872a4cbcc1d81a06da0bb34:0:0", "min_price": 15575400, "min_unit_price": "15575.4000000000000000", "ordinalswallet_price": null, "ordinalswallet_unit_price": null, "okx_price": null, "okx_unit_price": null, "unisat_price": 15575400, "unisat_unit_price": "15575.4000000000000000" }, ... ], "block_height": 798387 } ``` ## Get BRC-20 Valid Transfer Notes of a Wallet *Included in: Basic, Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/brc20/validtxnotes_wallet` Returns ordered list of brc-20 valid transfer notes of a given BTC wallet with detailed information about them. Sample query: [https://api.bestinslot.xyz/v3/brc20/validtxnotes\_wallet?address=bc1pgmtxez2cnp3wk5q52wjcakrkqqfxukgmannrtttm4kq64q53qw7qw44juz\&sort\_by=min\_unit\_price\&order=asc\&offset=0\&count=100](https://api.bestinslot.xyz/v3/brc20/validtxnotes_wallet?address=bc1pgmtxez2cnp3wk5q52wjcakrkqqfxukgmannrtttm4kq64q53qw7qw44juz\&sort_by=min_unit_price\&order=asc\&offset=0\&count=100) #### Query Parameters | Name | Type | Description | | ---------- | ------ | ---------------------------------------------------------- | | sort\_by\* | string | inscr\_num, min\_price, min\_unit\_price, transfer\_amount | | order\* | string | asc, desc | | offset\* | int | 0 \<= offset | | count\* | int | 20 \<= count \<= 2000 | | address\* | string | bitcoin wallet address | ```json theme={null} { "data": [ { "inscription_id": "c229a89b9f2e9fb6fd5ef124e6dcf4394163b5ff518f1c5d5ad62eaa02a61c56i0", "inscription_number": 10509196, "ticker": "giga", "transfer_amount": "1900000.000000000000", "is_valid": true, "is_used": false, "satpoint": "c229a89b9f2e9fb6fd5ef124e6dcf4394163b5ff518f1c5d5ad62eaa02a61c56:0:0", "min_price": 326880, "min_unit_price": "0.17204200000000000000", "ordinalswallet_price": null, "ordinalswallet_unit_price": null, "okx_price": null, "okx_unit_price": null, "unisat_price": 326880, "unisat_unit_price": "0.17204200000000000000" }, ... ], "block_height": 798387 } ``` ## BRC-20 Validity Check *Included in: Basic, Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/brc20/single_info` Returns validity details about a specific inscription. Sample query: [https://api.bestinslot.xyz/v3/brc20/single\_info?inscription\_id=859905a264deaab7ce88832ad73684ddc45cf9e0022e2700b8ac549f14199279i0](https://api.bestinslot.xyz/v3/brc20/single_info?inscription_id=859905a264deaab7ce88832ad73684ddc45cf9e0022e2700b8ac549f14199279i0) #### Query Parameters | Name | Type | Description | | ----------------- | ------ | -------------- | | inscription\_id\* | string | inscription id | ```json theme={null} { "data": { "transfer_info": { "is_valid": true, "ticker": "ordi", "original_ticker": "ordi", "amount": "100.0000000000000000", "is_used": true }, "mint_info": { "is_valid": false, "ticker": null, "original_ticker": null, "amount": null, "mint_wallet": null, "parent_id": null }, "deploy_info": { "is_valid": false, "ticker": null, "original_ticker": null, "max_supply": null, "decimals": null, "limit_per_mint": null, "is_self_mint": null } }, "block_height": 795034 } ``` ## BRC-20 Batch Validity Check *Included in: Basic, Pro, Dedicated* **`POST`** `https://api.bestinslot.xyz/v3/brc20/batch_info` Returns validity details about a specific inscription. Sample query: \ url: \ `https://api.bestinslot.xyz/v3/brc20/batch_info` data: \ `{ "queries": [ "859905a264deaab7ce88832ad73684ddc45cf9e0022e2700b8ac549f14199279i0", "62a2e184ae03ef3ca20a92b628b45b644147fad3e0b1de096f511d41bfcb32bai0", "b61b0172d95e266c18aea0c624db987e971a5d6d4ebc2aaed85da4642d635735i0" ] }` headers: \ `{ "Content-Type":"application/json", "x-api-key":"...." }` #### Request Body | Name | Type | Description | | --------- | ----- | ----------------------------------------------- | | queries\* | Array | Array of inscription id strings Max length: 100 | ```json theme={null} { "data": [ { "inscription_id": "859905a264deaab7ce88832ad73684ddc45cf9e0022e2700b8ac549f14199279i0", "transfer_info": { "is_valid": true, "ticker": "ordi", "original_ticker": "ordi", "amount": "100.000000000000000000", "is_used": true }, "mint_info": { "is_valid": false, "ticker": null, "original_ticker": null, "amount": null, "mint_wallet": null, "parent_id": null }, "deploy_info": { "is_valid": false, "ticker": null, "original_ticker": null, "max_supply": null, "decimals": null, "limit_per_mint": null, "is_self_mint": null } }, { "inscription_id": "62a2e184ae03ef3ca20a92b628b45b644147fad3e0b1de096f511d41bfcb32bai0", "transfer_info": { "is_valid": false, "ticker": null, "original_ticker": null, "amount": null, "is_used": null }, "mint_info": { "is_valid": false, "ticker": null, "original_ticker": null, "amount": null, "mint_wallet": null, "parent_id": null }, "deploy_info": { "is_valid": true, "ticker": "zeee", "original_ticker": "zeee", "max_supply": "0.000000000000000001", "decimals": "18", "limit_per_mint": "1", "is_self_mint": false } }, { "inscription_id": "b61b0172d95e266c18aea0c624db987e971a5d6d4ebc2aaed85da4642d635735i0", "transfer_info": { "is_valid": false, "ticker": null, "original_ticker": null, "amount": null, "is_used": null }, "mint_info": { "is_valid": false, "ticker": null, "original_ticker": null, "amount": null, "mint_wallet": null, "parent_id": null }, "deploy_info": { "is_valid": true, "ticker": "ordi", "original_ticker": "ordi", "max_supply": "21000000.000000000000000000", "decimals": "18", "limit_per_mint": "1000000000000000000000", "is_self_mint": false } } ], "block_height": 821920 } ``` ## Get BRC-20 Ticker Holders *Included in: Basic, Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/brc20/holders` Returns ordered list of brc-20 holders and their balances. Sample query: [https://api.bestinslot.xyz/v3/brc20/holders?ticker=ordi\&sort\_by=balance\&order=desc\&offset=10000\&count=500](https://api.bestinslot.xyz/v3/brc20/holders?ticker=ordi\&sort_by=balance\&order=desc\&offset=10000\&count=500) #### Query Parameters | Name | Type | Description | | ---------- | ------ | -------------------- | | sort\_by\* | string | balance | | order\* | string | asc, desc | | offset\* | int | 0 \<= offset | | count\* | int | 20 \<= count \<= 500 | | ticker\* | string | BRC-20 ticker | ```json theme={null} { "data": [ { "pkscript": "51207fee8ce58498d8f5228a1f848d9a5d3cf0a8918dbe54935c858875ed23814523", "wallet": "bc1p0lhgeevynrv02g52r7zgmxja8nc23yvdhe2fxhy93p676gupg53sw46fy3", "overall_balance": "10.0000000000000000" }, ... ], "block_height": 795034 } ``` ## Get BRC-20 Event from TxId *Included in: Basic, Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/brc20/event_from_txid` Returns BRC-20 events in a given bitcoin txid. Sample query: [https://api.bestinslot.xyz/v3/brc20/event\_from\_txid?txid=21b7b3bf48b04af8102a560acdbf3993411a96caa9327b6c07423096ec2e17da](https://api.bestinslot.xyz/v3/brc20/event_from_txid?txid=21b7b3bf48b04af8102a560acdbf3993411a96caa9327b6c07423096ec2e17da) price and marketplace\_type information is only available in PRO Tier. #### Query Parameters | Name | Type | Description | | ------ | ------ | ------------ | | txid\* | string | Bitcoin txid | ```json theme={null} { "data": [ { "inscription_id": "6d4a1438ab43f941db9671fe8c4e5566984e14f0545f97143fa4df397295b755i0", "event_type": "transfer-transfer", "event": { "tick": "𝛑", "amount": "31415926535000000000000000000", "using_tx_id": "60998008", "spent_wallet": "bc1q7jyhzrgmaw26sggejpc5fe0ghecc53lu06u28c", "source_wallet": "bc1qgzdxs7vtzj3xywa9g50kdjkhsxqlu8ce6h6c63", "spent_pkScript": "0014f489710d1beb95a82119907144e5e8be718a47fc", "source_pkScript": "0014409a68798b14a2623ba5451f66cad78181fe1f19", "price": 530300, "marketplace_type": "okx" } } ], "block_height": 824865 } ``` ## Get BRC-20 Sales Information *Included in: Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/brc20/sales_info` Returns sales and volume information about a specific brc-20 ticker. Sample query: [https://api.bestinslot.xyz/v3/brc20/sales\_info?ticker=ordi\&marketplace\_type=magiceden](https://api.bestinslot.xyz/v3/brc20/sales_info?ticker=ordi\&marketplace_type=magiceden) #### Query Parameters | Name | Type | Description | | ----------------- | ------ | ----------------------------------------------------------------------------------------------------------- | | ticker\* | string | BRC-20 ticker | | marketplace\_type | string | Optional parameter to filter only by a given marketplace. You can find the allowed types on Constants Page. | ```json theme={null} { "data": { "marketplace": "all", "vol_3h": 0, "vol_6h": 4855500, "vol_9h": 5266074, "vol_12h": 5266074, "vol_1d": 112874701, "vol_3d": 171112507, "vol_7d": 230695357, "vol_30d": 777270095, "vol_total": 139743502715, "sale_count": 23843, // how many sales have happened "sale_amount": 5120986 // the total amount of tokens sold }, "block_height": 805713 } ``` ## Get BRC-20 Market Information *Included in: Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/brc20/market_info` Returns market information like marketcap, listed count, floor price about a specific BRC-20 ticker. Sample query: [https://api.bestinslot.xyz/v3/brc20/market\_info?ticker=ordi](https://api.bestinslot.xyz/v3/brc20/market_info?ticker=ordi) #### Query Parameters | Name | Type | Description | | -------- | ------ | ------------- | | ticker\* | string | BRC-20 ticker | ```json theme={null} { "data": { "marketcap": 1403250345000.0002, "min_listed_unit_price": 66821.445, "min_listed_unit_price_ordinalswallet": 71000, "min_listed_unit_price_unisat": 66821.445, "min_listed_unit_price_okx": 68999.9909090909, "listed_supply": 37504.693454911176, "listed_supply_ratio": 0.0017859377835671988 }, "block_height": 849817 } ``` ## Get BRC-20 Listings *Included in: Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/brc20/listings` Returns ordered list of listings of a specific BRC-20 ticker. Sample query: [https://api.bestinslot.xyz/v3/brc20/listings?ticker=ordi\&sort\_by=min\_unit\_price\&order=desc\&offset=0\&count=100](https://api.bestinslot.xyz/v3/brc20/listings?ticker=ordi\&sort_by=min_unit_price\&order=desc\&offset=0\&count=100) #### Query Parameters | Name | Type | Description | | ---------- | ------ | -------------------------------------------------------------------------------------------------------------------------------------------------- | | sort\_by\* | string | min\_price, min\_unit\_price, ordinalswallet\_price, ordinalswallet\_unit\_price, unisat\_price, unisat\_unit\_price, okx\_price, okx\_unit\_price | | order\* | string | asc, desc | | offset\* | int | 0 \<= offset \<= 5k | | count\* | int | 20 \<= count \<= 100 | | ticker\* | string | BRC-20 ticker | ```json theme={null} { "data": [ { "inscription_id": "6d6bdc8a1c36f80144ce250745840ab10e1308a4b8cc9a769d3719095e1242e7i0", "transfer_amount": "1.00000000000000000000", "min_price": 300000000, "min_unit_price": "300000000.00000000000000000000", "ordinalswallet_price": 300000000, "ordinalswallet_unit_price": "300000000.00000000000000000000", "unisat_price": null, "unisat_unit_price": null, "okx_price": null, "okx_unit_price": null, "owner_wallet_addr": "bc1p96u7df3xhr6x5h8ch9dld5le73k820awhhu6fpnn0r3k6xprz6tqtw2h2u" }, ... ], "block_height": 795034 } ``` ## Get BRC-20 Activity *Included in: Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/brc20/activity` Returns ordered list of inscribes, sales and transfers of a specific BRC-20 ticker. Use last\_new\_satpoint to continue fetching the activity from where you've left off. new\_satpoint uniquely addresses a single inscription transfer, so by setting order to asc, and last\_new\_satpoint to the latest new\_satpoint value that you've received, you can retrieve the new activities. Sample query: [https://api.bestinslot.xyz/v3/brc20/activity?ticker=ordi\&activity\_filter=7\&sort\_by=ts\&order=desc\&offset=1000\&count=100\&last\_new\_satpoint=a47f806f7fa622a44bc77bc886c8e0646cc61878d412285aa4a297cf2a5ce296:0:0](https://api.bestinslot.xyz/v3/brc20/activity?ticker=ordi\&activity_filter=7\&sort_by=ts\&order=desc\&offset=1000\&count=100\&last_new_satpoint=a47f806f7fa622a44bc77bc886c8e0646cc61878d412285aa4a297cf2a5ce296:0:0) #### Query Parameters | Name | Type | Description | | | ------------------- | ------ | ----------------------------------------------------------------------------------------- | ------ | | sort\_by\* | string | ts, unit\_price, amount, sale\_price | | | order\* | string | asc, desc | | | offset\* | int | 0 \<= offset \<= 5k | | | count\* | int | 20 \<= count \<= 100 | | | ticker\* | string | BRC-20 ticker | | | activity\_filter\* | int | 1 -> mints 2 -> transfers 4 -> sales combine with or operator (e.g. sold & transferred: 2 | 4 = 6) | | last\_new\_satpoint | string | (optional) use this with offset 0 to continue from a known transfer | | | wallet | string | (optional) bitcoin wallet filter | | ```json theme={null} { "data": [ { "_tx_id": 15271002, "inscription_id": "5f236832ad63e35d005f93e14ce93741836732599efc921ab074e079b36ea418i0", "amount": "100.0000000000000000", "sale_price": -1, "unit_price": "-0.01000000000000000000", "activity_type": 1, "from_wallet": "bc1q3sda3q9hd82qzm8j9wfff0afmdkvsh8qafmrfh", "to_wallet": "1P3XJT34R9bVntfQXVoZDwA6z4oxjaaiTU", "block_height": 795034, "ts": "2023-06-19T09:30:18.000Z", "new_satpoint": "a47f806f7fa622a44bc77bc886c8e0646cc61878d412285aa4a297cf2a5ce296:0:0", "tx_id": "a47f806f7fa622a44bc77bc886c8e0646cc61878d412285aa4a297cf2a5ce296" }, ... ], "block_height": 795035 } ``` ## Get BRC-20 Wallet Activity *Included in: Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/brc20/wallet_activity` Returns ordered list of deploy-inscribe, mint-inscribe, transfer-inscribe and transfer-transfer of a given bitcoin wallet. Sample query: [https://api.bestinslot.xyz/v3/brc20/wallet\_activity?order=asc\&offset=0\&count=2000\&wallet\_addr=bc1pxaneaf3w4d27hl2y93fuft2xk6m4u3wc4rafevc6slgd7f5tq2dqyfgy06](https://api.bestinslot.xyz/v3/brc20/wallet_activity?order=asc\&offset=0\&count=2000\&wallet_addr=bc1pxaneaf3w4d27hl2y93fuft2xk6m4u3wc4rafevc6slgd7f5tq2dqyfgy06) #### Query Parameters | Name | Type | Description | | -------------- | ------ | -------------------------------- | | order\* | string | asc, desc (ordered by timestamp) | | offset\* | int | 0 \<= offset \<= 5k | | count\* | int | 20 \<= count \<= 2000 | | wallet\_addr\* | string | bitcoin wallet address | ```json theme={null} { "data": [ { "ticker": "ordi", "event_type": "deploy-inscribe", "to_wallet": "bc1pxaneaf3w4d27hl2y93fuft2xk6m4u3wc4rafevc6slgd7f5tq2dqyfgy06", "block_height": 779832, "ts": "2023-03-08T04:16:31.000Z", "inscription_id": "b61b0172d95e266c18aea0c624db987e971a5d6d4ebc2aaed85da4642d635735i0", "sale_price": null, "unit_price": null, "amount": null }, ... ], "block_height": 844736 } ``` ## Get BRC-20 Activity on Block *Included in: Enterprise, Dedicated with Enterprise Endpoints* **`GET`** `https://api.bestinslot.xyz/v3/brc20/activity_on_block` Returns ordered list of mint note and transfer note inscribes, and transfer note transfers in a given block height. block\_height at the response is not the queried block height. It is the final indexed block height of our indexer. Sample query: [https://api.bestinslot.xyz/v3/brc20/activity\_on\_block?block\_height=802396](https://api.bestinslot.xyz/v3/brc20/activity_on_block?block_height=802396) #### Query Parameters | Name | Type | Description | | --------------- | ---- | --------------------------------------------------------------------------- | | block\_height\* | int | block height, must be smaller than or equal to current bitcoin block height | ```json theme={null} { "data": [ { "id": 28093931, "inscription_id": "6d5ba7f257f634ee7ec3220263dc3c5c6df13e6d5f3f61957250ceed1c43666ai0", "old_pkscript": "0014870dba15d6b5a0563b6df472359a7ef75d21f26c", "old_wallet": "bc1qsuxm59wkkks9vwmd73ertxn77awjrunv8x0nv6", "old_satpoint": "6d5ba7f257f634ee7ec3220263dc3c5c6df13e6d5f3f61957250ceed1c43666a:0:0", "new_pkscript": "0014ad42179475826f3cae94c1c3bae2797c6933a53a", "new_wallet": "bc1q44pp09r4sfhnet55c8pm4cne035n8ff6t0lhgz", "new_satpoint": "da30e16bda726bee66f94d2872a90350c29b08bca01ad8070e4ccb06112a0b8a:1:0", "tick": "rdex", "original_tick": "rdex", "amount": "10000000000000000000000", "activity_type": "transfer-transfer" }, { "id": 28093932, "inscription_id": "8e9b5a1c8c18d420a37bcc95599883daaadd351990e2156318c6d61d2669d773i0", "old_pkscript": "", "old_wallet": "", "old_satpoint": "", "new_pkscript": "a914d9f616912c258bbaff7c0f02e3915bdebf39533e87", "new_wallet": "3MZVMg8qC42cBhfczWWRr9jds1rP2kqmJ8", "new_satpoint": "8e9b5a1c8c18d420a37bcc95599883daaadd351990e2156318c6d61d2669d773:0:0", "tick": "bank", "original_tick": "bank", "amount": "880079000000000000000000", "activity_type": "transfer-inscribe" }, ... ], "block_height": 804496 } ``` ## Get BRC-20 Balance on Block *Included in: Enterprise, Dedicated with Enterprise Endpoints* **`GET`** `https://api.bestinslot.xyz/v3/brc20/balance_on_block` Returns BRC-20 balances of a given wallet (address or pkscript(scriptPubKey)) at the **beginning of** the given block height. block\_height at the response is not the queried block height. It is the final indexed block height of our indexer. Sample query: [https://api.bestinslot.xyz/v3/brc20/balance\_on\_block?block\_height=802397\&pkscript=0014cd6cccc69331a96ea0fe0fa5d1d184a811979a8b](https://api.bestinslot.xyz/v3/brc20/balance_on_block?block_height=802397\&pkscript=0014cd6cccc69331a96ea0fe0fa5d1d184a811979a8b) #### Query Parameters | Name | Type | Description | | --------------- | ------ | ------------------------------------------------------------------------------------ | | block\_height\* | int | block height, must not be bigger than (current bitcoin block height + 1) | | pkscript | string | scriptPubKey of the wallet. Only one of the wallet/pkscipt parameters should be set! | | wallet | string | address of the wallet. Only one of the wallet/pkscipt parameters should be set! | ```json theme={null} { "data": [ { "tick": "bili", "balance": "1000000000000000000" }, { "tick": "𝜋", "balance": "3141592653589793238" }, { "tick": "🌞", "balance": "5000000000000000000" }, { "tick": "🦎", "balance": "10000000000000000000" }, { "tick": "rcsv", "balance": "20000000000000000000" }, { "tick": "🦓", "balance": "21000000000000000000" }, { "tick": "cncl", "balance": "48000000000000000000" }, { "tick": "🌚", "balance": "50000000000000000000" }, { "tick": "🤑", "balance": "100000000000000000000" }, { "tick": "🜚", "balance": "267000000000000000000" }, ... ], "block_height": 804496 } ``` ## Get BRC-20 Balance on Block Batch *Included in: Enterprise, Dedicated with Enterprise Endpoints* **`POST`** `https://api.bestinslot.xyz/v3/brc20/batch_balance_on_block` Returns BRC-20 ticker balance of several given wallet (address or pkscript(scriptPubKey)) at the **beginning of** the given block height. Query limit is **100** per request. block\_height at the response is not the queried block height. It is the final indexed block height of our indexer. if the queried block hasn't been indexed yet, it'll return `{error: "block not indexed yet"}` in response. Sample query: \ url: \ `https://api.bestinslot.xyz/v3/brc20/batch_balance_on_block` data: \ `{"queries":[{"pkscript":"0014cd6cccc69331a96ea0fe0fa5d1d184a811979a8b","block_height":802397,"ticker":"pepe"},{"pkscript":"512037679ea62eab55ebfd442c53c4ad46b6b75e45d8a8fa9cb31a87d0df268b029a","block_height":802397,"ticker":"meme"}]}` headers: \ `{ "Content-Type":"application/json", "x-api-key":"...." }` #### Request Body | Name | Type | Description | | --------- | ---------- | ----------------------------------------------------------------------------------------------------------------------- | | queries\* | JSON Array | List of (block\_height, ticker, (wallet\|pkscript)) objects. (only one of wallet / pkscript is required for each query) | ```json theme={null} { "data": [ { "block_height": 802397, "tick": "pepe", "balance": "11500000000000000000000", "pkscript": "0014cd6cccc69331a96ea0fe0fa5d1d184a811979a8b" }, { "block_height": 802397, "tick": "meme", "balance": "1000000000000000000", "pkscript": "512037679ea62eab55ebfd442c53c4ad46b6b75e45d8a8fa9cb31a87d0df268b029a" } ], "block_height": 814812 } ``` ## Get BRC-20 All Valid Tx Notes *Included in: Enterprise, Dedicated with Enterprise Endpoints* **`GET`** `https://api.bestinslot.xyz/v3/brc20/all_validtxnotes` Returns **All** valid BRC-20 tx notes. Sample query: [https://api.bestinslot.xyz/v3/brc20/all\_validtxnotes](https://api.bestinslot.xyz/v3/brc20/all_validtxnotes) ```json theme={null} { "data": [ { "inscription_id": "1c0c902e49a9730671069c0b273ecf880c9d173a6716ef358d7323703902d71di0", "ticker": "drac", "amount": "21040000000000000000000", "source_pkscript": "5120df3a840ed1ea279110180fd09853e5b15a162c53309162dae0b8aa10b7b2919a" }, ... ], "block_height": 814029 } ``` ## Get BRC-20 All Balances *Included in: Enterprise, Dedicated with Enterprise Endpoints* **`GET`** `https://api.bestinslot.xyz/v3/brc20/all_balances` Returns **All** BRC-20 balances of all wallets. Sample query: [https://api.bestinslot.xyz/v3/brc20/all\_balances](https://api.bestinslot.xyz/v3/brc20/all_balances) ```json theme={null} { "data": [ { "wallet": "bc1qqqpx5690calxc5q2x83mhyftk6zmtvlprvdujz", "pkscript": "001400026a68afc77e6c500a31e3bb912bb685b5b3e1", "tick": "btcs", "overall_balance": "10.0000000000000000", "available_balance": "10.0000000000000000" }, ... ], "block_height": 814029 } ``` # Collections Source: https://docs.bestinslot.xyz/api-reference/collections Endpoints related to Ordinals Collections. **Retired.** These endpoints are no longer served. Run [OPI](https://github.com/bestinslot-xyz/OPI) instead — see the [introduction](/docs/introduction). Kept for historical reference. Endpoints' API-Key-Tier availabilities are written for each endpoint. **NOTE:** sub1k and sub10k meta-collection information can be retrieved by using these as slug. **To use on testnet4/signet, use your current api-key and send the request to `https://testnet.api.bestinslot.xyz` / `https://signet_api.bestinslot.xyz`** ## Get collections *Included in: Basic, Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/collection/collections` Returns ordered list of collections with detailed information about them. Sample query: [https://api.bestinslot.xyz/v3/collection/collections?sort\_by=median\_number\&order=asc\&offset=100\&count=100](https://api.bestinslot.xyz/v3/collection/collections?sort_by=median_number\&order=asc\&offset=100\&count=100) inscription\_icon\_id may be a URL for some collections listed\_count, floor\_price, floor\_price\_ordswap, floor\_price\_magiceden, floor\_price\_ordinalswallet, floor\_price\_gammaio, floor\_price\_ordynals, floor\_price\_ordinalsmarket, floor\_price\_okx, vol\_24h\_in\_btc, vol\_7d\_in\_btc, sale\_cnt\_7d, vol\_total\_in\_btc, sale\_cnt\_total, marketcap is only available on Pro Tier. #### Query Parameters | Name | Type | Description | | ---------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | sort\_by\* | string | supply, min\_number, median\_number, max\_number PRO TIER: listed\_count, floor\_price, floor\_price\_ordswap, floor\_price\_magiceden, floor\_price\_ordinalswallet, floor\_price\_gammaio, floor\_price\_ordynals, floor\_price\_ordinalsmarket, floor\_price\_unisat, floor\_price\_okx, vol\_24h\_in\_btc, vol\_7d\_in\_btc, sale\_cnt\_7d, vol\_total\_in\_btc, sale\_cnt\_total, marketcap | | order\* | string | asc, desc | | offset\* | int | 0 \<= offset | | count\* | int | 20 \<= count \<= 100 | ```json theme={null} { "data": [ { "name": "Quantum Cats", "slug": "quantum_cats", "inscription_icon_id": "https://creator-hub-prod.s3.us-east-2.amazonaws.com/ord-taproot_wizards_presents_pfp_1706542390359.png", "icon_url": "https://creator-hub-prod.s3.us-east-2.amazonaws.com/ord-taproot_wizards_presents_pfp_1706542390359.png", "icon_render_url": null, "bis_url": "https://bestinslot.xyz/ordinals/collection/quantum_cats", "supply": "3333", "min_number": 53785860, "median_number": 53788086, "max_number": 53790617, "listed_count": 132, "floor_price": 12136980, "floor_price_ordswap": null, "floor_price_magiceden": 12136980, "floor_price_ordinalswallet": null, "floor_price_gammaio": null, "floor_price_ordynals": null, "floor_price_unisat": null, "floor_price_ordinalsmarket": 199000000, "floor_price_okx": 20000000, "vol_3h_in_btc": 0.20895894, "vol_24h_in_btc": 0.20895894, "vol_7d_in_btc": 16.14854946, "vol_30d_in_btc": 92.46122358, "sale_cnt_7d": 139, "vol_total_in_btc": 1683.87253749, "sale_cnt_total": 6352, "marketcap": 40452554340 }, ... ], "block_height": 889392 } ``` ## Get Collection Information *Included in: Basic, Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/collection/info` Returns detailed information about a specific collection. Sample query: [https://api.bestinslot.xyz/v3/collection/info?slug=degods](https://api.bestinslot.xyz/v3/collection/info?slug=degods) inscription\_icon\_id may be a link for some collections #### Query Parameters | Name | Type | Description | | ------ | ------ | --------------- | | slug\* | string | Collection slug | ```json theme={null} { "data": { "name": "Strokes by zond", "twitter_link": "https://twitter.com/imgdotart", "discord_link": "https://discord.gg/nzQvtTfGJY", "website_link": "", "description": "", "supply": "16", "inscription_icon_id": "facd59ddb3d1822b6433eb297a1c4e11d46b75bb98559e3167f4f12e367da28ei0", "min_number": 131639, "median_number": 131647, "max_number": 131654, "icon_url": "https://bis-ord-content.fra1.cdn.digitaloceanspaces.com/ordinals/facd59ddb3d1822b6433eb297a1c4e11d46b75bb98559e3167f4f12e367da28ei0", "icon_render_url": "https://bis-ord-renders.fra1.cdn.digitaloceanspaces.com/renders/facd59ddb3d1822b6433eb297a1c4e11d46b75bb98559e3167f4f12e367da28ei0.png", "bis_url": "https://bestinslot.xyz/ordinals/collection/strokes-by-zond" }, "block_height": 836797 } ``` ## Get Collection Holders *Included in: Basic, Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/collection/holders` Returns an array with holder information. Each entry has a wallet address and collected inscription ids. Sample query: [https://api.bestinslot.xyz/v3/collection/holders?slug=degods\\](https://api.bestinslot.xyz/v3/collection/holders?slug=degods\\) [https://api.bestinslot.xyz/v3/collection/holders?slug=degods\&sort\_by=wallet\_addr\&order=asc\&offset=0\&count=100](https://api.bestinslot.xyz/v3/collection/holders?slug=degods\&sort_by=wallet_addr\&order=asc\&offset=0\&count=100) #### Query Parameters | Name | Type | Description | | -------- | ------ | ------------------------------- | | slug\* | string | Collection slug | | sort\_by | string | (optional) "wallet\_addr" | | order | string | (optional) "asc", "desc" | | offset | int | (optional) 0 \<= offset | | count | int | (optional) 20 \<= count \<= 100 | ```json theme={null} { "data": [ { "wallet": "bc1phw8w74ghl05k2h8lfxsmf45cygw4h6jhl7etm8qn5jjctpgyaxusl94w8s", "inscription_ids": [ "22c8afa20c013499e278318e30e4745fbaa7b613e8b9a954d6d3661322c66816i0", "48c922a1d013c7d179c291f39dd0f2b3bc2c194a0bc464fdd16f52f11da4ad1ei0", "c8548df15991a6bd2dfb89cc421f0d4256cebf197768ec4c8183276e125237fbi0", "885c64b7d183330186cb20cd4bfeba4209e8f3c17939a0188634ddd7ebe34455i0", "2a285972320858c90c7ae2477c55ec106f9cc50caa9a4fa6d456cbfbaf2fac6di0", "faacc3092fd920711515f40997ea273a4c08967d6d2e7404ab73e2064d2ccd88i0" ] }, ... ], "block_height": 795035 } ``` ## Get Collection Inscriptions *Included in: Basic, Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/collection/inscriptions` Returns ordered list of inscriptions of a specific collection. Sample query: [https://api.bestinslot.xyz/v3/collection/inscriptions?slug=bitcoin-frogs\&sort\_by=inscr\_num\&order=asc\&offset=100\&count=100](https://api.bestinslot.xyz/v3/collection/inscriptions?slug=bitcoin-frogs\&sort_by=inscr_num\&order=asc\&offset=100\&count=100) last\_sale\_price is only available on Pro Tier. #### Query Parameters | Name | Type | Description | | ---------- | ------ | -------------------- | | sort\_by\* | string | inscr\_num | | order\* | string | asc, desc | | offset\* | int | 0 \<= offset | | count\* | int | 20 \<= count \<= 100 | | slug\* | string | collection slug | ```json theme={null} { "data": [ { "name": "Runestone", "inscription_id": "5f3dafcdd142358b332e0939d37174b76472735df8df29325901d2c7d18a152ci19", "inscription_number": 64362443, "metadata": { "name": "Runestone" }, "owner_wallet_addr": "12dSsr8sFs21kpWaD2spSweFmyNzkZ8eRu", "mime_type": "model/gltf+json", "last_transfer_block_height": 834708, "parent_ids": [ "fdb2df5d2b16db1ebcbf09e2d23b3f4e417db44b58e712c99b61f26b52c7cbb5i0" ], "genesis_height": 834708, "last_sale_price": null, "content_url": "https://bis-ord-content.fra1.cdn.digitaloceanspaces.com/ordinals/5f3dafcdd142358b332e0939d37174b76472735df8df29325901d2c7d18a152ci19", "bis_url": "https://bestinslot.xyz/ordinals/inscription/5f3dafcdd142358b332e0939d37174b76472735df8df29325901d2c7d18a152ci19", "render_url": null, "delegate": { "delegate_id": "ed76bf35918948b8b78be0e6397ad4916d926dd3d65679a8b7e67d8699a672a0i0", "render_url": "https://bis-ord-renders.fra1.cdn.digitaloceanspaces.com/renders/ed76bf35918948b8b78be0e6397ad4916d926dd3d65679a8b7e67d8699a672a0i0.png", "mime_type": "model/gltf+json", "content_url": "https://bis-ord-content.fra1.cdn.digitaloceanspaces.com/ordinals/ed76bf35918948b8b78be0e6397ad4916d926dd3d65679a8b7e67d8699a672a0i0", "bis_url": "https://bestinslot.xyz/ordinals/inscription/ed76bf35918948b8b78be0e6397ad4916d926dd3d65679a8b7e67d8699a672a0i0" } }, ... ], "block_height": 799055 } ``` ## Get Collection Sales Information *Included in: Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/collection/sales_info` Returns sales and volume information about a specific collection. Sample query: [https://api.bestinslot.xyz/v3/collection/sales\_info?slug=bitcoin-frogs\&marketplace\_type=magiceden](https://api.bestinslot.xyz/v3/collection/sales_info?slug=bitcoin-frogs\&marketplace_type=magiceden) #### Query Parameters | Name | Type | Description | | ----------------- | ------ | ----------------------------------------------------------------------------------------------------------- | | slug\* | string | Collection slug | | marketplace\_type | string | Optional parameter to filter only by a given marketplace. You can find the allowed types on Constants Page. | ```json theme={null} { "data": { "vol_3h": "9970000", "vol_6h": "45228879", "vol_9h": "82738348", "vol_12h": "94525896", "vol_1d": "140485613", "vol_3d": "995189800", "vol_7d": "2282078504", "vol_30d": "20435090360", "vol_total": "49541749144", "sale_count": 12274, "marketplace": "all" }, "block_height": 795035 } ``` ## Get Collection Market Information *Included in: Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/collection/market_info` Returns market information like marketcap, listed count, floor price about a specific collection. Sample query: [https://api.bestinslot.xyz/v3/collection/market\_info?slug=omb](https://api.bestinslot.xyz/v3/collection/market_info?slug=omb) #### Query Parameters | Name | Type | Description | | ------ | ------ | --------------- | | slug\* | string | Collection slug | ```json theme={null} { "data": { "listed_count": 311, "floor_price": 20706000, "floor_price_ordswap": null, "floor_price_magiceden": 20706000, "floor_price_ordinalswallet": 300000000, "floor_price_gammaio": null, "floor_price_unisat": 100500000, "floor_price_ordynals": null, "floor_price_ordinalsmarket": null, "floor_price_okx": 57899999, "supply": "5243", "marketcap": 108561558000 }, "block_height": 849817 } ``` ## Get Collection Listings *Included in: Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/collection/listings` Returns ordered list of listings of a specific collection. Sample query: [https://api.bestinslot.xyz/v3/collection/listings?slug=bitcoin-frogs\&sort\_by=min\_price\&order=asc\&offset=0\&count=100](https://api.bestinslot.xyz/v3/collection/listings?slug=bitcoin-frogs\&sort_by=min_price\&order=asc\&offset=0\&count=100) #### Query Parameters | Name | Type | Description | | ---------- | ------ | ----------------------------------------------------------------------------------------------------------------------------------------------------- | | sort\_by\* | string | min\_price, ordswap\_price, magiceden\_price, ordinalswallet\_price, gammaio\_price, odynals\_price, unisat\_price, ordinalsmarket\_price, okx\_price | | order\* | string | asc, desc | | offset\* | int | 0 \<= offset \<= 5k | | count\* | int | 20 \<= count \<= 100 | | slug\* | string | collection slug | ```json theme={null} { "data": [ { "inscription_id": "02696786f173f05e55b457d12ef41bfcc905acd6ee5c0c61b80d8679a4ea91c9i0", "min_price": 4284000, "ordswap_price": null, "magiceden_price": 4284000, "ordinalswallet_price": null, "gammaio_price": null, "nostr_price": null, "odynals_price": null, "unisat_price": null, "ordinalsmarket_price": null, "okx_price": null, "owner_wallet_addr": "bc1pg95hedhcnrv9gu595n7ysy4apu6c0cz9vrs08dxd59p7kn5zyv0s6zdv0p" }, ... ], "block_height": 803265 } ``` ## Get Collection Activity *Included in: Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/collection/activity` Returns ordered list of inscribes, sales and transfers of a specific collection. Use last\_new\_satpoint to continue fetching the activity from where you've left off. new\_satpoint uniquely addresses a single inscription transfer, so by setting order to asc, and last\_new\_satpoint to the latest new\_satpoint value that you've received, you can retrieve the new activities. Sample query: [https://api.bestinslot.xyz/v3/collection/activity?slug=degods\&activity\_filter=7\&sort\_by=ts\&order=asc\&offset=0\&count=100\&last\_new\_satpoint=32b63c4844db4f704a8df0cf27fcf6ee966a716ea5410e598fe40734b1a7027f:1:0](https://api.bestinslot.xyz/v3/collection/activity?slug=degods\&activity_filter=7\&sort_by=ts\&order=asc\&offset=0\&count=100\&last_new_satpoint=32b63c4844db4f704a8df0cf27fcf6ee966a716ea5410e598fe40734b1a7027f:1:0) #### Query Parameters | Name | Type | Description | | | ------------------- | ------ | ---------------------------------------------------------------------------------------------- | ------ | | sort\_by\* | string | ts | | | order\* | string | asc, desc | | | offset\* | int | 0 \<= offset \<= 5k | | | count\* | int | 20 \<= count \<= 100 | | | slug\* | string | collection slug | | | activity\_filter\* | int | 1 -> inscribed 2 -> transferred 4 -> sold combine with or operator (e.g. sold & transferred: 2 | 4 = 6) | | last\_new\_satpoint | string | (optional) use this with offset 0 to continue from a known transfer | | ```json theme={null} { "data": [ { "inscription_id": "daf55547be8fd88f242ce24b3af11ec9f4d602b0c05b4b23967dfcd160ac719di0", "from_wallet": "bc1pm2grfjnvhrfjff965cs63gma5ze02v3572wks9mdl7kxjyt2q58q5es97l", "to_wallet": "bc1pdly22tta7wx56j9xhygzg5dwnd4a3xnj7qyt9ewrajn9hvmha9msfpm3sd", "block_height": 795034, "sale_price": -1, "new_satpoint": "5cd78b9bf19d80a1d525564ef7df775b65f0cc15e5f7bbafcb724c1b8995615c:0:0", "ts": "2023-06-19T09:30:18.000Z", "marketplace_type": "magiceden", "tx_id": "5cd78b9bf19d80a1d525564ef7df775b65f0cc15e5f7bbafcb724c1b8995615c" }, ... ], "block_height": 795035 } ``` # Constants Source: https://docs.bestinslot.xyz/api-reference/constants **Retired.** These endpoints are no longer served. Run [OPI](https://github.com/bestinslot-xyz/OPI) instead — see the [introduction](/docs/introduction). Kept for historical reference. ### marketplace\_type * magiceden * ordinals.market * gamma.io * ordinals\_wallet * ordswap * openordex * okx * unisat * ordinalnovus # Inscriptions Source: https://docs.bestinslot.xyz/api-reference/inscriptions Endpoints related to Inscription Details. **Retired.** These endpoints are no longer served. Run [OPI](https://github.com/bestinslot-xyz/OPI) instead — see the [introduction](/docs/introduction). Kept for historical reference. Endpoints' API-Key-Tier availabilities are written for each endpoint. **To use on testnet4/signet, use your current api-key and send the request to `https://testnet.api.bestinslot.xyz` / `https://signet_api.bestinslot.xyz`** ## Get Inscription Information *Included in: Basic, Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/inscription/single_info_id` Returns detailed information about a specific inscription. Sample query: [https://api.bestinslot.xyz/v3/inscription/single\_info\_id?inscription\_id=6d1cefe69ad686d6153bd1a6d34c6d55c6e3162cb2fac9b58a8d9d9e9fda13c6i0](https://api.bestinslot.xyz/v3/inscription/single_info_id?inscription_id=6d1cefe69ad686d6153bd1a6d34c6d55c6e3162cb2fac9b58a8d9d9e9fda13c6i0) last\_sale\_price, listing prices and collection\_floor\_price is only available on Pro Tier. #### Query Parameters | Name | Type | Description | | ----------------- | ------ | -------------- | | inscription\_id\* | string | inscription id | ```json theme={null} { "data": { "inscription_name": "Runestone", "inscription_id": "5f3dafcdd142358b332e0939d37174b76472735df8df29325901d2c7d18a152ci19", "inscription_number": 64362443, "metadata": { "name": "Runestone" }, "wallet": "12dSsr8sFs21kpWaD2spSweFmyNzkZ8eRu", "mime_type": "model/gltf+json", "media_length": 0, "genesis_ts": 1710447063, "genesis_height": 834708, "genesis_fee": 1345, "output_value": 546, "satpoint": "5f3dafcdd142358b332e0939d37174b76472735df8df29325901d2c7d18a152c:20:0", "last_sale_price": null, "collection_name": "Runestone", "collection_slug": "runestone", "last_transfer_block_height": 834708, "utxo": "5f3dafcdd142358b332e0939d37174b76472735df8df29325901d2c7d18a152c:20", "parent_ids": [ "fdb2df5d2b16db1ebcbf09e2d23b3f4e417db44b58e712c99b61f26b52c7cbb5i0" ], "collection_floor_price": 3950000, "min_price": null, "ordswap_price": null, "magiceden_price": null, "ordinalswallet_price": null, "gammaio_price": null, "nostr_price": null, "odynals_price": null, "unisat_price": null, "ordinalsmarket_price": null, "okx_price": null, "content_url": "https://bis-ord-content.fra1.cdn.digitaloceanspaces.com/ordinals/5f3dafcdd142358b332e0939d37174b76472735df8df29325901d2c7d18a152ci19", "bis_url": "https://bestinslot.xyz/ordinals/inscription/5f3dafcdd142358b332e0939d37174b76472735df8df29325901d2c7d18a152ci19", "render_url": null, "byte_size": 0, "bitmap_number": null, "delegate": { "delegate_id": "ed76bf35918948b8b78be0e6397ad4916d926dd3d65679a8b7e67d8699a672a0i0", "render_url": "https://bis-ord-renders.fra1.cdn.digitaloceanspaces.com/renders/ed76bf35918948b8b78be0e6397ad4916d926dd3d65679a8b7e67d8699a672a0i0.png", "mime_type": "model/gltf+json", "content_url": "https://bis-ord-content.fra1.cdn.digitaloceanspaces.com/ordinals/ed76bf35918948b8b78be0e6397ad4916d926dd3d65679a8b7e67d8699a672a0i0", "bis_url": "https://bestinslot.xyz/ordinals/inscription/ed76bf35918948b8b78be0e6397ad4916d926dd3d65679a8b7e67d8699a672a0i0" } }, "block_height": 836798 } ``` ## Get Batch Inscription Information *Included in: Basic, Pro, Dedicated* **`POST`** `https://api.bestinslot.xyz/v3/inscription/batch_info` Returns detailed information about several inscriptions (up to 100). Sample query:\ url: [https://api.bestinslot.xyz/v3/inscription/batch\_info\\](https://api.bestinslot.xyz/v3/inscription/batch_info\\) data: \{"queries":\["0", 1, "123", 17458374, -123, 32478238472934]}\ headers: \{ "Content-Type":"application/json", "x-api-key":"...." } last\_sale\_price, listing prices and collection\_floor\_price is only available on Pro Tier. #### Request Body | Name | Type | Description | | --------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------ | | queries\* | JSON Array | can be a list of inscription id, inscription number or location (txid:index), however all types must be the same. Max length is 100. | ```json theme={null} { "data": [ { "query": "5f3dafcdd142358b332e0939d37174b76472735df8df29325901d2c7d18a152ci1", "result": { "inscription_name": "Runestone", "inscription_id": "5f3dafcdd142358b332e0939d37174b76472735df8df29325901d2c7d18a152ci1", "inscription_number": 64362425, "metadata": { "name": "Runestone" }, "wallet": "113zRn6gi97iAriKbXTFtkgqSeVmAD32uA", "mime_type": "model/gltf+json", "media_length": 0, "genesis_ts": 1710447063, "genesis_height": 834708, "genesis_fee": 1345, "output_value": 546, "satpoint": "5f3dafcdd142358b332e0939d37174b76472735df8df29325901d2c7d18a152c:2:0", "last_sale_price": null, "collection_name": "Runestone", "collection_slug": "runestone", "last_transfer_block_height": 834708, "utxo": "5f3dafcdd142358b332e0939d37174b76472735df8df29325901d2c7d18a152c:2", "parent_ids": [ "fdb2df5d2b16db1ebcbf09e2d23b3f4e417db44b58e712c99b61f26b52c7cbb5i0" ], "genesis_block_hash": "00000000000000000000292964b4b00d1d414583bd18d1ebea7a8041d4409c6d", "collection_floor_price": 3950000, "min_price": null, "ordswap_price": null, "magiceden_price": null, "ordinalswallet_price": null, "gammaio_price": null, "nostr_price": null, "odynals_price": null, "unisat_price": null, "ordinalsmarket_price": null, "okx_price": null, "content_url": "https://bis-ord-content.fra1.cdn.digitaloceanspaces.com/ordinals/5f3dafcdd142358b332e0939d37174b76472735df8df29325901d2c7d18a152ci1", "bis_url": "https://bestinslot.xyz/ordinals/inscription/5f3dafcdd142358b332e0939d37174b76472735df8df29325901d2c7d18a152ci1", "render_url": null, "byte_size": 0, "bitmap_number": null, "delegate": { "delegate_id": "ed76bf35918948b8b78be0e6397ad4916d926dd3d65679a8b7e67d8699a672a0i0", "render_url": "https://bis-ord-renders.fra1.cdn.digitaloceanspaces.com/renders/ed76bf35918948b8b78be0e6397ad4916d926dd3d65679a8b7e67d8699a672a0i0.png", "mime_type": "model/gltf+json", "content_url": "https://bis-ord-content.fra1.cdn.digitaloceanspaces.com/ordinals/ed76bf35918948b8b78be0e6397ad4916d926dd3d65679a8b7e67d8699a672a0i0", "bis_url": "https://bestinslot.xyz/ordinals/inscription/ed76bf35918948b8b78be0e6397ad4916d926dd3d65679a8b7e67d8699a672a0i0" } } }, ... ], "block_height": 804350 } ``` ## Get Global Inscription Information *Included in: Basic, Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/inscription/global_info` Returns information about global inscriptions. Sample query: [https://api.bestinslot.xyz/v3/inscription/global\_info](https://api.bestinslot.xyz/v3/inscription/global_info) ```json theme={null} { "data": [ { "text_cnt": 24513963, "image_cnt": 1118329, "application_cnt": 299961, "video_cnt": 1932, "model_cnt": 469, "audio_cnt": 666, "max_inscription_number": 25935380 } ], "block_height": 804350 } ``` ## Request render refresh *Included in: Basic, Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/inscription/render_refresh` Requests render refresh for given inscription. Sample query: [https://api.bestinslot.xyz/v3/inscription/render\_refresh?inscription\_id=8e9cdfb606db7abd839fdbc5eb1678ee60c9d6b1b008790ed1052ddadac12877i71](https://api.bestinslot.xyz/v3/inscription/render_refresh?inscription_id=8e9cdfb606db7abd839fdbc5eb1678ee60c9d6b1b008790ed1052ddadac12877i71) returns `already-in-queue` or `added-to-queue`. #### Query Parameters | Name | Type | Description | | ----------------- | ------ | -------------- | | inscription\_id\* | string | inscription id | ```json theme={null} { "data": "added-to-queue", "block_height": 889397 } ``` ## Get Inscription Activity *Included in: Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/inscription/activity` Returns ordered list of inscribes, sales and transfers of a single inscription. Sample query: [https://api.bestinslot.xyz/v3/inscription/activity?inscription\_id=2f1d51c67998d981055e94dba30d3d1199aa9714049801d7cd35c72066c586abi0\&activity\_filter=7\&sort\_by=ts\&order=desc\&offset=0\&count=100](https://api.bestinslot.xyz/v3/inscription/activity?inscription_id=2f1d51c67998d981055e94dba30d3d1199aa9714049801d7cd35c72066c586abi0\&activity_filter=7\&sort_by=ts\&order=desc\&offset=0\&count=100) #### Query Parameters | Name | Type | Description | | | ------------------ | ------ | ---------------------------------------------------------------------------------------------- | ------ | | sort\_by\* | string | ts | | | order\* | string | asc, desc | | | offset\* | int | 0 \<= offset \<= 5k | | | count\* | int | 20 \<= count \<= 100 | | | inscription\_id\* | string | inscription id | | | activity\_filter\* | int | 1 -> inscribed 2 -> transferred 4 -> sold combine with or operator (e.g. sold & transferred: 2 | 4 = 6) | ```json theme={null} { "data": [ { "inscription_id": "daf55547be8fd88f242ce24b3af11ec9f4d602b0c05b4b23967dfcd160ac719di0", "from_wallet": "bc1pm2grfjnvhrfjff965cs63gma5ze02v3572wks9mdl7kxjyt2q58q5es97l", "to_wallet": "bc1pdly22tta7wx56j9xhygzg5dwnd4a3xnj7qyt9ewrajn9hvmha9msfpm3sd", "block_height": 795034, "sale_price": -1, "new_satpoint": "5cd78b9bf19d80a1d525564ef7df775b65f0cc15e5f7bbafcb724c1b8995615c:0:0", "ts": "2023-06-19T09:30:18.000Z", "marketplace_type": "magiceden", "tx_id": "5cd78b9bf19d80a1d525564ef7df775b65f0cc15e5f7bbafcb724c1b8995615c" }, ... ], "block_height": 795035 } ``` ## Get Inscriptions in Transaction *Included in: Basic, Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/inscription/in_transaction` Returns inscription ids that move in a given transaction. Sample query: [https://api.bestinslot.xyz/v3/inscription/in\_transaction?tx\_id=5c709dbe85c44935384a3d68d10f9212b1ee315bba422cb8b5944803b521a3db](https://api.bestinslot.xyz/v3/inscription/in_transaction?tx_id=5c709dbe85c44935384a3d68d10f9212b1ee315bba422cb8b5944803b521a3db) #### Query Parameters | Name | Type | Description | | -------- | ------ | ---------------------- | | tx\_id\* | string | Bitcoin Transaction Id | ```json theme={null} { "data": [ { "inscription_id": "7fd3aca38fd8acb22efe231ef5d5439e391c0394be3967ee07484cffc1b792fai0" }, { "inscription_id": "251c744ceb0ad4c6e1ee0d391cfa0451d958065e73605b543190cda62723f6f8i0" }, { "inscription_id": "b089b8df8392d0ac3b47b8e51fb008aa40442b6bb250ad2a1d8d60d88cc65585i0" }, { "inscription_id": "ec9570ada981607bd93a5a7e6fd99760faaa8fc87989aa6646fe8c9b2aab494ei0" }, { "inscription_id": "7c679ba4a2b8460fb60d62912e812206a031abeef19983564953c14bb4e091d5i0" }, { "inscription_id": "9c233d4b62e1fde06c1a238fcef26e398eaee5a9abf32a6de8eef12cd4e523dai0" } ], "block_height": 815901 } ``` ## Get Inscription Activity in Block *Included in: Enterprise, Dedicated with Enterprise Endpoints* **`GET`** `https://api.bestinslot.xyz/v3/inscription/activity_on_block` Returns the inscription activity on a given block\_height block\_height at the response is not the queried block height. It is the final indexed block height of our indexer. Sample query: \ [https://api.bestinslot.xyz/v3/inscription/activity\_on\_block?block\_height=802397](https://api.bestinslot.xyz/v3/inscription/activity_on_block?block_height=802397) [https://api.bestinslot.xyz/v3/inscription/activity\_on\_block?block\_height=802397\&sort\_by=ts\&order=asc\&activity\_filter=4](https://api.bestinslot.xyz/v3/inscription/activity_on_block?block_height=802397\&sort_by=ts\&order=asc\&activity_filter=4) #### Query Parameters | Name | Type | Description | | | ---------------- | ------ | ---------------------------------------------------------------------------------------------- | ------ | | block\_height\* | int | block height, must not be bigger than current bitcoin block height | | | order | string | asc, desc | | | sort\_by | string | ts | | | activity\_filter | int | 1 -> inscribed 2 -> transferred 4 -> sold combine with or operator (e.g. sold & transferred: 2 | 4 = 6) | ```json theme={null} { "data": [ { "inscription_id": "b4f3838eecc0600531264e3dfcffbe997c73d77c7aa6fb7e9afc7cc20fad2fa9i0", "from_wallet": "bc1pz5sdw9zqek9vhc52w7du4yskwk8rmcz0m7wmqhfv24gv5tdqqzcqpwvdt0", "to_wallet": "bc1pk6t7u08vtpx7r79m8hhxrhsd9s7xpqck9aa75hlgq3fm8ww83n9s8hex94", "block_height": 805002, "sale_price": 417950, "new_satpoint": "fab1dbe521900e73a87b2410c84559320cbdf7b21415fbfc57a1d5dfbed662de:1:0", "ts": "2023-08-27T04:12:43.000Z", "marketplace_type": "magiceden", "inscription_name": "Ordinal Insider #29", "inscription_number": 921122, "collection_name": "Ordinal Insiders", "collection_slug": "ordinal-insiders", "tx_id": "fab1dbe521900e73a87b2410c84559320cbdf7b21415fbfc57a1d5dfbed662de" }, ... ], "block_height": 815969 } ``` ## Get New Inscriptions in Block *Included in: Enterprise, Dedicated with Enterprise Endpoints* **`GET`** `https://api.bestinslot.xyz/v3/inscription/new_inscriptions_in_block` Returns the inscriptions that are inscribed in a given block\_height block\_height at the response is not the queried block height. It is the final indexed block height of our indexer. Sample query: [https://api.bestinslot.xyz/v3/inscription/new\_inscriptions\_in\_block?block\_height=802397](https://api.bestinslot.xyz/v3/inscription/new_inscriptions_in_block?block_height=802397) #### Query Parameters | Name | Type | Description | | --------------- | ---- | ------------------------------------------------------------------ | | block\_height\* | int | block height, must not be bigger than current bitcoin block height | ```json theme={null} { "data": [ { "inscription_name": "Runestone", "inscription_id": "5f3dafcdd142358b332e0939d37174b76472735df8df29325901d2c7d18a152ci0", "inscription_number": 64362424, "metadata": { "name": "Runestone" }, "wallet": "1111111111111111111114oLvT2", "mime_type": "model/gltf+json", "media_length": 0, "genesis_ts": 1710447063, "genesis_height": 834708, "genesis_fee": 1345, "output_value": 546, "satpoint": "5f3dafcdd142358b332e0939d37174b76472735df8df29325901d2c7d18a152c:1:0", "last_sale_price": null, "collection_name": "Runestone", "collection_slug": "runestone", "last_transfer_block_height": 834708, "parent_ids": [ "fdb2df5d2b16db1ebcbf09e2d23b3f4e417db44b58e712c99b61f26b52c7cbb5i0" ], "collection_floor_price": 3950000, "min_price": null, "ordswap_price": null, "magiceden_price": null, "ordinalswallet_price": null, "gammaio_price": null, "nostr_price": null, "odynals_price": null, "unisat_price": null, "ordinalsmarket_price": null, "okx_price": null, "content_url": "https://bis-ord-content.fra1.cdn.digitaloceanspaces.com/ordinals/5f3dafcdd142358b332e0939d37174b76472735df8df29325901d2c7d18a152ci0", "bis_url": "https://bestinslot.xyz/ordinals/inscription/5f3dafcdd142358b332e0939d37174b76472735df8df29325901d2c7d18a152ci0", "render_url": null, "byte_size": 0, "bitmap_number": null, "delegate": { "delegate_id": "ed76bf35918948b8b78be0e6397ad4916d926dd3d65679a8b7e67d8699a672a0i0", "render_url": "https://bis-ord-renders.fra1.cdn.digitaloceanspaces.com/renders/ed76bf35918948b8b78be0e6397ad4916d926dd3d65679a8b7e67d8699a672a0i0.png", "mime_type": "model/gltf+json", "content_url": "https://bis-ord-content.fra1.cdn.digitaloceanspaces.com/ordinals/ed76bf35918948b8b78be0e6397ad4916d926dd3d65679a8b7e67d8699a672a0i0", "bis_url": "https://bestinslot.xyz/ordinals/inscription/ed76bf35918948b8b78be0e6397ad4916d926dd3d65679a8b7e67d8699a672a0i0" } }, ... ], "block_height": 804496 } ``` # Mempool Source: https://docs.bestinslot.xyz/api-reference/mempool Endpoints related to Bitcoin Mempool & UTXOs. **Retired.** These endpoints are no longer served. Run [OPI](https://github.com/bestinslot-xyz/OPI) instead — see the [introduction](/docs/introduction). Kept for historical reference. Endpoints' API-Key-Tier availabilities are written for each endpoint. **To use on testnet4/signet, use your current api-key and send the request to `https://testnet.api.bestinslot.xyz` / `https://signet_api.bestinslot.xyz`** ## Get All UTXOs of Bitcoin Wallet *Included in: Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/mempool/all_utxos_of_wallet` Returns all UTXOs of a given wallet with inscription and runes information. Sample query: [https://api.bestinslot.xyz/v3/mempool/all\_utxos\_of\_wallet?wallet\_addr=bc1qvhl8k0xu0stk956tjqx6q5ujp6tdyh24v7eumn](https://api.bestinslot.xyz/v3/mempool/all_utxos_of_wallet?wallet_addr=bc1qvhl8k0xu0stk956tjqx6q5ujp6tdyh24v7eumn) Unconfirmed UTXOs block\_height is returned as null #### Query Parameters | Name | Type | Description | | -------------- | -------- | ---------------------- | | wallet\_addr\* | `string` | Bitcoin wallet address | ```json theme={null} { "data": [ { "txid": "f48fd528ecb4c32252a6b0ad4bcd07123ad0c583fb808f9bdd04a7c015c60446", "vout": 0, "block_height": 803100, "value": 9109, "address": "bc1qvhl8k0xu0stk956tjqx6q5ujp6tdyh24v7eumn", "script": "001465fe7b3cdc7c1762d34b900da053920e96d25d55", "script_type": "witness_v0_keyhash", "inscription_ids": [ "b3521d61a5cfdb80c4957cf7e4ce6c7f3e263b8baba05c787f003f17cacef97bi0" ], "satpoints": [ "f48fd528ecb4c32252a6b0ad4bcd07123ad0c583fb808f9bdd04a7c015c60446:0:0" ], "rune_ids": null, "amounts": null, "txfee": null, "vsize": null, "utxo": "f48fd528ecb4c32252a6b0ad4bcd07123ad0c583fb808f9bdd04a7c015c60446:0" }, { "txid": "c04e49f6393a571b95f711038746ea78ba673e0a0a2a71be7daccefe6143b154", "vout": 1, "block_height": null, "value": 546, "address": "bc1qvhl8k0xu0stk956tjqx6q5ujp6tdyh24v7eumn", "script": "001465fe7b3cdc7c1762d34b900da053920e96d25d55", "script_type": "witness_v0_keyhash", "inscription_ids": null, "satpoints": null, "rune_ids": [ "840000:3" ], "amounts": [ "209286845" ], "txfee": "1274", "vsize": 253, "utxo": "c04e49f6393a571b95f711038746ea78ba673e0a0a2a71be7daccefe6143b154:1" }, ... ], "block_height": 863641 } ``` ## Get Cardinal UTXOs of Bitcoin Wallet *Included in: Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/mempool/cardinal_utxos_of_wallet` Returns cardinal UTXOs of a given wallet. Sample query: [https://api.bestinslot.xyz/v3/mempool/cardinal\_utxos\_of\_wallet?wallet\_addr=bc1qvhl8k0xu0stk956tjqx6q5ujp6tdyh24v7eumn](https://api.bestinslot.xyz/v3/mempool/cardinal_utxos_of_wallet?wallet_addr=bc1qvhl8k0xu0stk956tjqx6q5ujp6tdyh24v7eumn) Unconfirmed UTXOs block\_height is returned as null #### Query Parameters | Name | Type | Description | | -------------- | -------- | ---------------------- | | wallet\_addr\* | `string` | Bitcoin wallet address | ```json theme={null} { "data": [ { "txid": "c04e49f6393a571b95f711038746ea78ba673e0a0a2a71be7daccefe6143b154", "vout": 3, "block_height": 863642, "value": 61150, "address": "bc1qvhl8k0xu0stk956tjqx6q5ujp6tdyh24v7eumn", "script": "001465fe7b3cdc7c1762d34b900da053920e96d25d55", "script_type": "witness_v0_keyhash", "inscription_ids": null, "satpoints": null, "rune_ids": null, "amounts": null, "txfee": null, "vsize": null, "utxo": "c04e49f6393a571b95f711038746ea78ba673e0a0a2a71be7daccefe6143b154:3" }, ... ], "block_height": 863642 } ``` ## Get Ordinal UTXOs of Bitcoin Wallet *Included in: Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/mempool/ordinal_utxos_of_wallet` Returns ordinal UTXOs of a given wallet with inscription. Sample query: [https://api.bestinslot.xyz/v3/mempool/ordinal\_utxos\_of\_wallet?wallet\_addr=bc1qvhl8k0xu0stk956tjqx6q5ujp6tdyh24v7eumn](https://api.bestinslot.xyz/v3/mempool/ordinal_utxos_of_wallet?wallet_addr=bc1qvhl8k0xu0stk956tjqx6q5ujp6tdyh24v7eumn) Unconfirmed UTXOs block\_height is returned as null #### Query Parameters | Name | Type | Description | | -------------- | -------- | ---------------------- | | wallet\_addr\* | `string` | Bitcoin wallet address | ```json theme={null} { "data": [ { "txid": "f48fd528ecb4c32252a6b0ad4bcd07123ad0c583fb808f9bdd04a7c015c60446", "vout": 0, "block_height": 803100, "value": 9109, "address": "bc1qvhl8k0xu0stk956tjqx6q5ujp6tdyh24v7eumn", "script": "001465fe7b3cdc7c1762d34b900da053920e96d25d55", "script_type": "witness_v0_keyhash", "inscription_ids": [ "b3521d61a5cfdb80c4957cf7e4ce6c7f3e263b8baba05c787f003f17cacef97bi0" ], "satpoints": [ "f48fd528ecb4c32252a6b0ad4bcd07123ad0c583fb808f9bdd04a7c015c60446:0:0" ], "rune_ids": null, "amounts": null, "txfee": null, "vsize": null, "utxo": "f48fd528ecb4c32252a6b0ad4bcd07123ad0c583fb808f9bdd04a7c015c60446:0" }, ... ], "block_height": 863642 } ``` ## Get Runic UTXOs of Bitcoin Wallet *Included in: Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/mempool/runic_utxos_of_wallet` Returns runic UTXOs of a given wallet with runes information. Sample query: [https://api.bestinslot.xyz/v3/mempool/runic\_utxos\_of\_wallet?wallet\_addr=bc1qvhl8k0xu0stk956tjqx6q5ujp6tdyh24v7eumn](https://api.bestinslot.xyz/v3/mempool/runic_utxos_of_wallet?wallet_addr=bc1qvhl8k0xu0stk956tjqx6q5ujp6tdyh24v7eumn) Unconfirmed UTXOs block\_height is returned as null #### Query Parameters | Name | Type | Description | | -------------- | -------- | ---------------------- | | wallet\_addr\* | `string` | Bitcoin wallet address | ```json theme={null} { "data": [ { "txid": "c04e49f6393a571b95f711038746ea78ba673e0a0a2a71be7daccefe6143b154", "vout": 1, "block_height": 863642, "value": 546, "address": "bc1qvhl8k0xu0stk956tjqx6q5ujp6tdyh24v7eumn", "script": "001465fe7b3cdc7c1762d34b900da053920e96d25d55", "script_type": "witness_v0_keyhash", "inscription_ids": null, "satpoints": null, "rune_ids": [ "840000:3" ], "amounts": [ "209286845" ], "txfee": null, "vsize": null, "utxo": "c04e49f6393a571b95f711038746ea78ba673e0a0a2a71be7daccefe6143b154:1" }, ... ], "block_height": 863642 } ``` ## Get Cardinal Balance of Bitcoin Wallet *Included in: Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/mempool/cardinal_balance_of_wallet` Returns cardinal balance of a given wallet. Sample query: [https://api.bestinslot.xyz/v3/mempool/cardinal\_balance\_of\_wallet?wallet\_addr=bc1qvhl8k0xu0stk956tjqx6q5ujp6tdyh24v7eumn](https://api.bestinslot.xyz/v3/mempool/cardinal_balance_of_wallet?wallet_addr=bc1qvhl8k0xu0stk956tjqx6q5ujp6tdyh24v7eumn) #### Query Parameters | Name | Type | Description | | -------------- | -------- | ---------------------- | | wallet\_addr\* | `string` | Bitcoin wallet address | ```json theme={null} { "data": { "total_unused_confirmed_balance": "61150", "total_unused_unconfirmed_balance": "0" }, "block_height": 863642 } ``` ## Get All Cardinal UTXOs in Mempool *Included in: Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/mempool/all_cardinal_utxos` Returns all cardinal UTXOs in Mempool. Sample query: [https://api.bestinslot.xyz/v3/mempool/all\_cardinal\_utxos](https://api.bestinslot.xyz/v3/mempool/all_cardinal_utxos) ```json theme={null} { "data": [ { "txid": "2f8de7eb0b12a9517c2ac122f37bb51867ee9a78b0c27308f2c09628af8e207e", "vout": 0, "block_height": null, "value": 2522422, "address": "bc1q9xap3eck8tqdz3y86wzhf85xewr8a75slq88nj", "script": "001429ba18e7163ac0d14487d385749e86cb867efa90", "script_type": "witness_v0_keyhash", "inscription_ids": null, "satpoints": null, "rune_ids": null, "amounts": null, "txfee": "774", "vsize": 177, "utxo": "2f8de7eb0b12a9517c2ac122f37bb51867ee9a78b0c27308f2c09628af8e207e:0" }, ... ], "block_height": 889388 } ``` ## Get All Ordinal UTXOs in Mempool *Included in: Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/mempool/all_ordinal_utxos` Returns all Ordinal UTXOs in Mempool. Sample query: [https://api.bestinslot.xyz/v3/mempool/all\_ordinal\_utxos](https://api.bestinslot.xyz/v3/mempool/all_ordinal_utxos) ```json theme={null} { "data": [ { "txid": "375e43025d156cf496563859f46e6d590d49b86f0df158671be290eaadb13287", "vout": 0, "block_height": null, "value": 330, "address": "bc1pxmahywzrmzlrjndrg3ele2whalmv70elnzdq0ml2nvmhfc5k039snhqpt7", "script": "512036fb723843d8be394da34473fca9d7eff6cf3f3f989a07efea9b3774e2967c4b", "script_type": "witness_v1_taproot", "inscription_ids": [ "375e43025d156cf496563859f46e6d590d49b86f0df158671be290eaadb13287i0" ], "satpoints": [ "375e43025d156cf496563859f46e6d590d49b86f0df158671be290eaadb13287:0:0" ], "rune_ids": null, "amounts": null, "txfee": "158", "vsize": 151, "utxo": "375e43025d156cf496563859f46e6d590d49b86f0df158671be290eaadb13287:0" }, ... ], "block_height": 889388 } ``` ## Get All Runic UTXOs in Mempool *Included in: Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/mempool/all_runic_utxos` Returns all Runic UTXOs in Mempool. Sample query: [https://api.bestinslot.xyz/v3/mempool/all\_runic\_utxos](https://api.bestinslot.xyz/v3/mempool/all_runic_utxos) ```json theme={null} { "data": [ { "txid": "a63fa5a8d71f255d7ce5b699cbd4f21ed18014f0aa64df3f2eaf16bb2ad8213e", "vout": 0, "block_height": null, "value": 294, "address": "bc1q8ys49pxp3c6um7enemwdkl4ud5fwwg2rpdegxu", "script": "001439215284c18e35cdfb33cedcdb7ebc6d12e72143", "script_type": "witness_v0_keyhash", "inscription_ids": null, "satpoints": null, "rune_ids": [ "1:0" ], "amounts": [ "1" ], "txfee": "272", "vsize": 194, "utxo": "a63fa5a8d71f255d7ce5b699cbd4f21ed18014f0aa64df3f2eaf16bb2ad8213e:0" }, ... ], "block_height": 889388 } ``` ## Get All Runes Events in Mempool *Included in: Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/mempool/all_runes_events` Returns all Runes Events in Mempool. Sample query: [https://api.bestinslot.xyz/v3/mempool/all\_runes\_events](https://api.bestinslot.xyz/v3/mempool/all_runes_events) ```json theme={null} { "data": [ { "event_type": "input", "txid": "081173c52b85daf229d7dd593e547886d31dd9bc73cf712ecb8ef225f11b6561", "outpoint": "96b5d45828720428f3853419250f15a72eb6feebd29d26b5f9e361bdb42a0e94:0", "pkscript": "001439215284c18e35cdfb33cedcdb7ebc6d12e72143", "wallet_addr": "bc1q8ys49pxp3c6um7enemwdkl4ud5fwwg2rpdegxu", "rune_id": "1:0", "amount": "1", "rune_name": "UNCOMMONGOODS", "spaced_rune_name": "UNCOMMON•GOODS", "decimals": 0, "sale_info": null }, ... ], "block_height": 889389 } ``` # Overview Source: https://docs.bestinslot.xyz/api-reference/overview **This API has been retired.** The hosted endpoints at `api.bestinslot.xyz` are no longer operated, and new API keys are not being issued. Run [OPI (Open Protocol Indexer)](https://github.com/bestinslot-xyz/OPI) instead — our open-source, self-hosted indexer for BRC-20, Bitmap and SNS, with a REST API per module. See the [introduction](/docs/introduction) for what it covers and what you need to run it. The pages below are kept online for historical reference only. ### Rate Limiting There were 4 API-Key categories: `Basic`, `Pro`, `Enterprise` and `Dedicated`. Some endpoints were only available in some plans. Free plan and trial keys were rate limited with daily limits, all other plans used monthly limits. New API keys are no longer issued. Endpoints' API-Key-Tier availabilities are written for each endpoint in documentation. Expired API-Keys automatically turn into Free-Tier API Key. ### General Usage Information * API Key should be sent in `x-api-key` header. * Offset is limited to 5000 for most endpoints. Some endpoints may have increased offset limit or may not have an offset limit (such as `brc20/holders`), please see the parameter list to check limits. * Maximum count value is 100 for most endpoints. Some endpoints may have increased count limit (such as `brc20/holders`), please see the parameter list to check limits. * Offset and count must be a multiple of 20. An example curl request to `brc20/ticker_info` with an API Key: ```powershell theme={null} curl --location 'https://api.bestinslot.xyz/v3/brc20/ticker_info?ticker=ordi' \ --header 'x-api-key: xxxx' ``` ### **Response Scheme** ``` { "data": ... , "block_height": 805712 } ``` Here, block\_height in the response indicates the **latest indexed** block height. ### Testnet & Signet API To use our full API running on Bitcoin Testnet4 or Signet, just use `https://testnet.api.bestinslot.xyz` or `https://signet_api.bestinslot.xyz` respectively on your requests. Same API-Keys can be used on testnet4 and signet. ## Categories * [Mempool](/api-reference/mempool) * [Collections](/api-reference/collections) * [Wallets](/api-reference/wallets) * [Inscriptions](/api-reference/inscriptions) * [Sats Names](/api-reference/sats-names) * [BRC-20](/api-reference/brc-20) * [Runes](/api-reference/runes) * [Bitmap](/api-reference/bitmap) * [BIP-322](/api-reference/bip-322) * [Changelog](/api-reference/api-changelog) # Runes Source: https://docs.bestinslot.xyz/api-reference/runes Endpoints related to Runes Protocol. **Retired.** These endpoints are no longer served. Run [OPI](https://github.com/bestinslot-xyz/OPI) instead — see the [introduction](/docs/introduction). Kept for historical reference. Endpoints' API-Key-Tier availabilities are written for each endpoint. **To use on testnet4/signet, use your current api-key and send the request to `https://testnet.api.bestinslot.xyz` / `https://signet_api.bestinslot.xyz`** ## **Terminology** *\[Used in this API for standardization] : \[Terminology in Runes]* * rune\_name: Non-spaced unique Rune Name * deploy\_txid: etching * decimals: divisibility * per\_mint\_amount: terms.amount (each mint event mints this amount for this rune) * mint\_cnt: mints (count of mint events) * mint\_cnt\_limit: terms.cap (maximum allowed mint events for this rune) * premined\_supply: premine (rune amount mined while deploying the rune) * total\_minted\_supply: premine + mint\_cnt \* per\_mint\_amount * circulating\_supply: premine + mint\_cnt \* per\_mint\_amount - burned\_supply * mintable: mint\_cnt \< mint\_cnt\_limit & (mint\_start\_block \<= current\_block \< mint\_end\_block) * auto\_upgrade: turbo (should ticker auto opt-in to new runes features) * output - `:` * pkscript - bitcoin ScriptPubKey * avg\_unit\_price\_in\_sats - Calculated by taking the median unit price of sales in last 6 hrs. If there are not enough sale in last 6 hrs, it'll look at latest several sales, if there is not enough sale on the ticker, it'll return null. Note that this is scaled by decimals to make ordering more meaningful. * event\_type - possible options are: input, new-allocation, mint, output, burn ## Runes Testnet4 Faucet (only on testnet) *Included in: Basic, Pro, Dedicated* **`GET`** `https://testnet.api.bestinslot.xyz/v3/runes/testnet_faucet` A testnet rune faucet that mints 1.0 (1\_0000\_0000) test rune to target address. **NOTE: Limited with 10 request per 24 hours per key.** Sample query: [https://testnet.api.bestinslot.xyz/v3/runes/testnet\_faucet?address=tb1qvhl8k0xu0stk956tjqx6q5ujp6tdyh24xcz0qq](https://testnet.api.bestinslot.xyz/v3/runes/testnet_faucet?address=tb1qvhl8k0xu0stk956tjqx6q5ujp6tdyh24xcz0qq) #### Query Parameters | Name | Type | Description | | --------- | -------- | ------------------------------ | | address\* | `string` | Testnet Bitcoin wallet address | **Response** ```json theme={null} { "mint_txid": "43cec273ded990afcc681eb64da2e4884f7dc8518db01f82620dff98beaa0e49" } ``` ## Runes Tickers *Included in: Basic, Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/runes/tickers` Returns information about runes tickers. **NOTE:** `avg_unit_price_in_sats` is scaled by decimals to make ordering more meaningful. Sample query: [https://api.bestinslot.xyz/v3/runes/tickers?sort\_by=rune\_number\&order=asc\&offset=0\&count=100](https://api.bestinslot.xyz/v3/runes/tickers?sort_by=rune_number\&order=asc\&offset=0\&count=100) #### Query Parameters | Name | Type | Description | | --------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | sort\_by\* | `string` | rune\_id, rune\_number, rune\_name, mint\_cnt, total\_minted\_supply, burned\_supply, circulating\_supply, mint\_progress, deploy\_ts, holder\_count, event\_count. PRO TIER: avg\_unit\_price\_in\_sats, min\_listed\_unit\_price\_in\_sats, min\_listed\_unit\_price\_unisat, listed\_supply, listed\_supply\_ratio, marketcap, total\_volume | | order\* | `string` | asc, desc | | offset\* | `int` | 0 \<= offset | | count\* | `int` | 20 \<= count \<= 300 | | minting\_status | `string` | (optional) set to "not\_complete" for tickers with mintable = true, "completed" for mintable = false, leave unset to search all | **Response** ```json theme={null} { "data": [ { "rune_id": "840000:1", "rune_number": "1", "rune_name": "ZZZZZFEHUZZZZZ", "spaced_rune_name": "Z•Z•Z•Z•Z•FEHU•Z•Z•Z•Z•Z", "symbol": "ᚠ", "decimals": 2, "per_mint_amount": "100", "mint_cnt": "1111111", "mint_cnt_limit": "1111111", "premined_supply": "11000000000", "total_minted_supply": "11111111100", "burned_supply": "46300", "circulating_supply": "11111064800", "mint_progress": 100, "mint_start_block": null, "mint_end_block": null, "genesis_block": 840000, "deploy_ts": "2024-04-20T00:09:27.000Z", "deploy_txid": "2bb85f4b004be6da54f766c17c1e855187327112c231ef2ff35ebad0ea67c69e", "auto_upgrade": true, "holder_count": 22865, "event_count": 3033717, "mintable": false, "icon_inscr_id": "2bb85f4b004be6da54f766c17c1e855187327112c231ef2ff35ebad0ea67c69ei0", "icon_delegate_id": "e16b8b872584112c6e84c5a941e8ad91f9e428458605a0e9f582305dd12ef247i0", "icon_content_url": "https://bis-ord-content.fra1.cdn.digitaloceanspaces.com/ordinals/e16b8b872584112c6e84c5a941e8ad91f9e428458605a0e9f582305dd12ef247i0", "icon_render_url": null, "avg_unit_price_in_sats": 30195.999999999996, "min_listed_unit_price_in_sats": 30233.581818181818, "min_listed_unit_price_unisat": 30233.582000000002, "listed_supply": "929250", "listed_supply_ratio": 0.00008363284858171289, "marketcap": 3355097127008, "total_sale_info": { "sale_count": 106570, "sale_count_3h": 0, "sale_count_6h": 1, "sale_count_9h": 1, "sale_count_12h": 73, "sale_count_1d": 205, "sale_count_3d": 413, "sale_count_7d": 1002, "sale_count_30d": 2583, "sale_amount": 77883929, "vol_3h": 0, "vol_6h": 126159, "vol_9h": 126159, "vol_12h": 1226131, "vol_1d": 4207823, "vol_3d": 16909211, "vol_7d": 51653484, "vol_30d": 220929558, "vol_total": 26566160622 } }, ... ], "block_height": 847620 } ``` ```json theme={null} ``` ## Runes Ticker Count *Included in: Basic, Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/runes/ticker_cnt` Returns count of all runes tickers and mintable runes tickers Sample query: [https://api.bestinslot.xyz/v3/runes/ticker\_cnt](https://api.bestinslot.xyz/v3/runes/ticker_cnt) ```json theme={null} { "data": { "ticker_cnt": 70480, "minting_ticker_cnt": 14596 }, "block_height": 844739 } ``` ## Runes Single Ticker Info *Included in: Basic, Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/runes/ticker_info` Returns information about given runes ticker. avg\_unit\_price\_in\_sats, min\_listed\_unit\_price\_in\_sats, listed\_supply, listed\_supply\_ratio, marketcap and total\_sale\_info are only available in PRO tier. Sample query: [https://api.bestinslot.xyz/v3/runes/ticker\_info?rune\_name=UNCOMMONGOODS](https://api.bestinslot.xyz/v3/runes/ticker_info?rune_name=UNCOMMONGOODS) #### Query Parameters | Name | Type | Description | | ------------ | -------- | ---------------------------------- | | rune\_name | `string` | (optional) Non-Spaced name of Rune | | rune\_id | `string` | (optional) Rune ID | | rune\_number | `int` | (optional) Rune Number | **NOTE: One of rune\_name, rune\_id or rune\_number must be specified** **Response** ```json theme={null} { "data": { "rune_id": "840000:1", "rune_number": "1", "rune_name": "ZZZZZFEHUZZZZZ", "spaced_rune_name": "Z•Z•Z•Z•Z•FEHU•Z•Z•Z•Z•Z", "symbol": "ᚠ", "decimals": 2, "per_mint_amount": "100", "mint_cnt": "1111111", "mint_cnt_limit": "1111111", "premined_supply": "11000000000", "total_minted_supply": "11111111100", "burned_supply": "46300", "circulating_supply": "11111064800", "mint_progress": 100, "mint_start_block": null, "mint_end_block": null, "genesis_block": 840000, "deploy_ts": "2024-04-20T00:09:27.000Z", "deploy_txid": "2bb85f4b004be6da54f766c17c1e855187327112c231ef2ff35ebad0ea67c69e", "auto_upgrade": true, "holder_count": 22865, "event_count": 3033717, "mintable": false, "icon_inscr_id": "2bb85f4b004be6da54f766c17c1e855187327112c231ef2ff35ebad0ea67c69ei0", "icon_delegate_id": "e16b8b872584112c6e84c5a941e8ad91f9e428458605a0e9f582305dd12ef247i0", "icon_content_url": "https://bis-ord-content.fra1.cdn.digitaloceanspaces.com/ordinals/e16b8b872584112c6e84c5a941e8ad91f9e428458605a0e9f582305dd12ef247i0", "icon_render_url": null, "avg_unit_price_in_sats": 30195.999999999996, "min_listed_unit_price_in_sats": 30233.581818181818, "min_listed_unit_price_unisat": 30233.582000000002, "listed_supply": "929250", "listed_supply_ratio": 0.00008363284858171289, "marketcap": 3355097127008, "total_sale_info": { "sale_count": 106570, "sale_count_3h": 0, "sale_count_6h": 1, "sale_count_9h": 1, "sale_count_12h": 73, "sale_count_1d": 205, "sale_count_3d": 413, "sale_count_7d": 1002, "sale_count_30d": 2583, "sale_amount": 77883929, "vol_3h": 0, "vol_6h": 126159, "vol_9h": 126159, "vol_12h": 1226131, "vol_1d": 4207823, "vol_3d": 16909211, "vol_7d": 51653484, "vol_30d": 220929558, "vol_total": 26566160622 } }, "block_height": 847620 } ``` ```json theme={null} ``` ## Get Runes Sales Information *Included in: Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/runes/sales_info` Returns sales and volume information about a specific runes ticker. Sample query: [https://api.bestinslot.xyz/v3/runes/sales\_info?rune\_name=SATOSHINAKAMOTO\&marketplace\_type=unisat](https://api.bestinslot.xyz/v3/runes/sales_info?rune_name=SATOSHINAKAMOTO\&marketplace_type=unisat) #### Query Parameters | Name | Type | Description | | ----------------- | -------- | ------------------------------------------------------------------------------------------------ | | rune\_name | `string` | (optional) Non-Spaced name of Rune | | rune\_id | `string` | (optional) Rune ID | | rune\_number | `int` | (optional) Rune Number | | marketplace\_type | `string` | (optional) Filter only by a given marketplace. You can find the allowed types on Constants Page. | **NOTE: One of rune\_name, rune\_id or rune\_number must be specified** ```json theme={null} { "data": { "marketplace": "all", "vol_3h": 7579717, "vol_6h": 15354385, "vol_9h": 24536418, "vol_12h": 43035106, "vol_1d": 63367091, "vol_3d": 149531954, "vol_7d": 397417106, "vol_30d": 2320019379, "vol_total": 12611770343, "sale_count": 55463, // how many sales have happened "sale_count_3h": 32, "sale_count_6h": 78, "sale_count_9h": 158, "sale_count_12h": 265, "sale_count_1d": 361, "sale_count_3d": 925, "sale_count_7d": 1915, "sale_count_30d": 8374, "sale_amount": 19261486 // the total amount of tokens sold }, "block_height": 862524 } ``` ## Get Runes Market Information *Included in: Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/runes/market_info` Returns market information about a specific runes ticker. Sample query: [https://api.bestinslot.xyz/v3/runes/market\_info?rune\_name=SATOSHINAKAMOTO](https://api.bestinslot.xyz/v3/runes/market_info?rune_name=SATOSHINAKAMOTO) #### Query Parameters | Name | Type | Description | | ------------ | -------- | ---------------------------------- | | rune\_name | `string` | (optional) Non-Spaced name of Rune | | rune\_id | `string` | (optional) Rune ID | | rune\_number | `int` | (optional) Rune Number | **NOTE: One of rune\_name, rune\_id or rune\_number must be specified** ```json theme={null} { "data": { "marketcap": 71876303181, "min_listed_unit_price_in_sats": 3308.5, "min_listed_unit_price_unisat": 3308.5, "listed_supply": "35785835289050", "listed_supply_ratio": 0.017041117391700833 }, "block_height": 841495 } ``` ## Runes Listings *Included in: Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/runes/listings` Returns listing information of a given rune. Sample query: [https://api.bestinslot.xyz/v3/runes/listings?rune\_id=840000:3\&sort\_by=min\_unit\_price\&order=asc\&offset=0\&count=100](https://api.bestinslot.xyz/v3/runes/listings?rune_id=840000:3\&sort_by=min_unit_price\&order=asc\&offset=0\&count=100) #### Query Parameters
NameTypeDescription
rune\_namestring(optional) Non-Spaced name of Rune
rune\_idstring(optional) Rune ID
rune\_numberint(optional) Rune Number
sort\_by\*stringoutput, min\_price, unisat\_price
order\*stringasc, desc
offset\*int0 \<= offset
count\*int20 \<= count \<= 100
**NOTE: One of rune\_name, rune\_id or rune\_number must be specified.** **Response** ```json theme={null} { "data": [ { "outpoint": "e03a893219770a198903430634e998c2e7ccaf4fb7a4e8713421f2020822f54c:2", "owner_wallet_addr": "bc1pp7sp50mpsew65ax6x6vjymv7ltsv88xjlzuxnlruca3vkggnggxs43tak5", "amount": 5000000, "min_price": 26875200, "min_unit_price": 5.37504, "unisat_price": 26875200, "unisat_unit_price": 5.37504 }, ... ], "block_height": 840350 } ``` ## Runes Holders *Included in: Basic, Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/runes/holders` Returns balances of holders of a given runes ticker. Sample query: [https://api.bestinslot.xyz/v3/runes/holders?rune\_name=UNCOMMONGOODS\&sort\_by=balance\&order=desc\&count=500\&offset=0](https://api.bestinslot.xyz/v3/runes/holders?rune_name=UNCOMMONGOODS\&sort_by=balance\&order=desc\&count=500\&offset=0) #### Query Parameters | Name | Type | Description | | ------------ | -------- | ---------------------------------------- | | rune\_name | `string` | (optional) Non-Spaced name of Rune | | rune\_id | `string` | (optional) Rune ID | | rune\_number | int | (optional) Rune Number | | sort\_by\* | `string` | currently only option is `balance` | | order\* | `string` | asc, desc | | offset\* | `int` | 0 \<= offset | | count\* | `int` | 20 \<= count \<= 500 (5000 for PRO Keys) | **NOTE: One of rune\_name, rune\_id or rune\_number must be specified** **Response** ```json theme={null} { "data": [ { "pkscript": "5120851d39de85d2454d267c707d18970fc9dc680fc237e42d1d271a01db230a0195", "wallet_addr": "bc1ps5wnnh596fz56fnuwp7339c0e8wxsr7zxljz68f8rgqakgc2qx2stuz5yu", "rune_id": "1:0", "total_balance": "10000", "rune_name": "UNCOMMONGOODS", "spaced_rune_name": "UNCOMMON•GOODS", "decimals": 0 }, ... ], "block_height": 840523 } ``` ## Runes Single Output Info *Included in: Basic, Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/runes/output_info` Returns runes information about given bitcoin output. Sample query: [https://api.bestinslot.xyz/v3/runes/output\_info?output=314e5e53024ec5860bd2fa2a4e85db2fc9097fcf58caa63f253bb4f86ad4b412:1](https://api.bestinslot.xyz/v3/runes/output_info?output=314e5e53024ec5860bd2fa2a4e85db2fc9097fcf58caa63f253bb4f86ad4b412:1) #### Query Parameters | Name | Type | Description | | -------- | -------- | ----------------------------------- | | output\* | `string` | Outpoint to check runes information | **Response** ```json theme={null} { "data": { "pkscript": "512024034ada955f1716ed7833d56744bd08119355cf5b1bbdbc48e66bc357bdb3b7", "wallet_addr": "bc1pysp54k54tut3dmtcx02kw39apqgex4w0tvdmm0zgue4ux4aakwms3pumq8", "output": "4ee2151d7010574cadc749ce85ae813599c33fc62148a0352eaa946f2da1d2be:0", "rune_ids": [ "840000:22" ], "balances": [ "190000000000" ], "spent": false, "rune_names": [ "SATOSHINAKAMOTO" ], "spaced_rune_names": [ "SATOSHI•NAKAMOTO" ], "decimals": [ 8 ] }, "block_height": 840523 } ``` ## Runes Batch Output Info *Included in: Basic, Pro, Dedicated* **`POST`** `https://api.bestinslot.xyz/v3/runes/batch_output_info` Returns runes information about given bitcoin outputs. Sample query: \ url: \ `https://api.bestinslot.xyz/v3/runes/batch_output_info` data: \ `{ "queries": [ "314e5e53024ec5860bd2fa2a4e85db2fc9097fcf58caa63f253bb4f86ad4b412:1", "0979edfb33fa380fb8c80e53809e9d865169ac6857688b31446d577d5f6df869:1", "200380702f43b2a6403bd9576c48e74e7cf184d5ead280eaa25a2d71be9cb2c8:1" ] }` headers: \ `{ "Content-Type":"application/json", "x-api-key":"...." }` #### Request Body | Name | Type | Description | | --------- | ------- | ----------------------------------------- | | queries\* | `array` | Array of outpoint strings Max length: 100 | **Response** ```json theme={null} { "data": [ { "pkscript": "512024034ada955f1716ed7833d56744bd08119355cf5b1bbdbc48e66bc357bdb3b7", "wallet_addr": "bc1pysp54k54tut3dmtcx02kw39apqgex4w0tvdmm0zgue4ux4aakwms3pumq8", "output": "4ee2151d7010574cadc749ce85ae813599c33fc62148a0352eaa946f2da1d2be:0", "rune_ids": [ "840000:22" ], "balances": [ "190000000000" ], "spent": false, "rune_names": [ "SATOSHINAKAMOTO" ], "spaced_rune_names": [ "SATOSHI•NAKAMOTO" ], "decimals": [ 8 ] }, ... ], "block_height": 840350 } ``` ## Runes Wallet Balances *Included in: Basic, Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/runes/wallet_balances` Returns runes balance information about given bitcoin wallet address or pkscript. **NOTE:** `avg_unit_price_in_sats` and `min_listed_unit_price_in_sats` is scaled by decimals. Sample query: [https://api.bestinslot.xyz/v3/runes/wallet\_balances?address=tb1pd368q84tuark4naym2u5382p59jkd27nw5vu5s44uz8dwdlrcwhqzdl2l2](https://api.bestinslot.xyz/v3/runes/wallet_balances?address=tb1pd368q84tuark4naym2u5382p59jkd27nw5vu5s44uz8dwdlrcwhqzdl2l2) #### Query Parameters | Name | Type | Description | | -------- | -------- | ----------------------------------- | | address | `string` | (optional) Bitcoin wallet address | | pkscript | `string` | (optional) Bitcoin script\_pub\_key | **NOTE: One of address or pkscript must be specified** **Response** ```json theme={null} { "data": [ { "pkscript": "512024034ada955f1716ed7833d56744bd08119355cf5b1bbdbc48e66bc357bdb3b7", "wallet_addr": "bc1pysp54k54tut3dmtcx02kw39apqgex4w0tvdmm0zgue4ux4aakwms3pumq8", "rune_id": "840000:22", "total_balance": "4120000000000", "rune_name": "SATOSHINAKAMOTO", "spaced_rune_name": "SATOSHI•NAKAMOTO", "decimals": 8, "avg_unit_price_in_sats": 3422.7299999999996, "min_listed_unit_price_in_sats": 3308.5, "min_listed_unit_price_unisat": 3308.5 }, ... ], "block_height": 840350 } ``` ## Runes Wallet Valid Outputs *Included in: Basic, Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/runes/wallet_valid_outputs` Returns unspent output information of a given wallet. Sample query: [https://api.bestinslot.xyz/v3/runes/wallet\_valid\_outputs?pkscript=51206c74701eabe7476acfa4dab9489d41a16566abd37519ca42b5e08ed737e3c3ae\&sort\_by=output\&order=asc\&offset=0\&count=2000](https://api.bestinslot.xyz/v3/runes/wallet_valid_outputs?pkscript=51206c74701eabe7476acfa4dab9489d41a16566abd37519ca42b5e08ed737e3c3ae\&sort_by=output\&order=asc\&offset=0\&count=2000) #### Query Parameters
NameTypeDescription
addressstring(optional) Bitcoin wallet address
pkscriptstring(optional) Bitcoin script\_pub\_key
sort\_by\*stringoutput, min\_price, unisat\_price
order\*stringasc, desc
offset\*int0 \<= offset
count\*int20 \<= count \<= 2000
**NOTE: One of address or pkscript must be specified** **Response** ```json theme={null} { "data": [ { "pkscript": "5120ef4a9ffbb9a627f495a3f224f0d728476890198813d97935febbc539a4a6608e", "wallet_addr": "bc1paa9fl7ae5cnlf9dr7gj0p4egga5fqxvgz0vhjd07h0znnf9xvz8qfsw3e8", "output": "2d69dca0ce6ff19dcd1bddaf56e3760c106a62832d81611c5aa0501966af7aa2:1", "rune_ids": [ "840000:3" ], "balances": [ "173424909679" ], "min_price": 9533514, "unisat_price": 9533514, "rune_names": [ "DOGGOTOTHEMOON" ], "spaced_rune_names": [ "DOG•GO•TO•THE•MOON" ], "decimals": [ 5 ] }, ... ], "block_height": 840350 } ``` ## Runes Wallet Valid Outputs Single Rune *Included in: Basic, Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/runes/wallet_valid_outputs_single_rune` Returns unspent output information of a given wallet of a given rune. Sample query: [https://api.bestinslot.xyz/v3/runes/wallet\_valid\_outputs\_single\_rune?address=bc1paa9fl7ae5cnlf9dr7gj0p4egga5fqxvgz0vhjd07h0znnf9xvz8qfsw3e8\&sort\_by=min\_price\&order=asc\&offset=0\&count=2000\&rune\_id=840000:3](https://api.bestinslot.xyz/v3/runes/wallet_valid_outputs_single_rune?address=bc1paa9fl7ae5cnlf9dr7gj0p4egga5fqxvgz0vhjd07h0znnf9xvz8qfsw3e8\&sort_by=min_price\&order=asc\&offset=0\&count=2000\&rune_id=840000:3) #### Query Parameters
NameTypeDescription
rune\_namestring(optional) Non-Spaced name of Rune
rune\_idstring(optional) Rune ID
rune\_numberint(optional) Rune Number
addressstring(optional) Bitcoin wallet address
pkscriptstring(optional) Bitcoin script\_pub\_key
sort\_by\*stringoutput, min\_price, unisat\_price
order\*stringasc, desc
offset\*int0 \<= offset
count\*int20 \<= count \<= 2000
**NOTE: One of address or pkscript must be specified, one of rune\_name, rune\_id or rune\_number must be specified** **Response** ```json theme={null} { "data": [ { "pkscript": "5120ef4a9ffbb9a627f495a3f224f0d728476890198813d97935febbc539a4a6608e", "wallet_addr": "bc1paa9fl7ae5cnlf9dr7gj0p4egga5fqxvgz0vhjd07h0znnf9xvz8qfsw3e8", "output": "2d69dca0ce6ff19dcd1bddaf56e3760c106a62832d81611c5aa0501966af7aa2:1", "rune_ids": [ "840000:3" ], "balances": [ "173424909679" ], "balance_of_rune": "173424909679", "min_price": 9533514, "min_unit_price": 5.497199922229171, "unisat_price": 9533514, "unisat_unit_price": 5.497199927995356, "rune_names": [ "DOGGOTOTHEMOON" ], "spaced_rune_names": [ "DOG•GO•TO•THE•MOON" ], "decimals": [ 5 ] }, ... ], "block_height": 840350 } ``` ## Runes Valid Outputs *Included in: Basic, Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/runes/valid_outputs` Returns unspent output information of a given ticker. Sample query: [https://api.bestinslot.xyz/v3/runes/valid\_outputs?rune\_name=UNCOMMONGOODS\&sort\_by=output\&order=asc\&offset=0\&count=2000](https://api.bestinslot.xyz/v3/runes/valid_outputs?rune_name=UNCOMMONGOODS\&sort_by=output\&order=asc\&offset=0\&count=2000) #### Query Parameters | Name | Type | Description | | ------------ | -------- | -------------------------------------------------------------------------------- | | rune\_name | `string` | (optional) Non-Spaced name of Rune | | rune\_id | `string` | (optional) Rune ID | | rune\_number | `int` | (optional) Rune Number | | sort\_by\* | `string` | output, amount, min\_price, min\_unit\_price, unisat\_price, unisat\_unit\_price | | order\* | `string` | asc, desc | | offset\* | `int` | 0 \<= offset | | count\* | `int` | 20 \<= count \<= 2000 | **NOTE: One of rune\_name, rune\_id or rune\_number must be specified** **Response** ```json theme={null} { "data": [ { "output": "ccb6b5af0499b6626928e2c7aa4c725307fea8ae6dd89fea1ee34bc6e58ecb78:2", "pkscript": "512059097d303921cee03ed48b99637ce90c446576b5c89ac85371a44a08a96c7860", "wallet_addr": "bc1ptyyh6vpey88wq0k53wvkxl8fp3zx2a44ezdvs5m3539q32tv0psq4k86ef", "rune_ids": [ "840000:22" ], "balances": [ "60000000000" ], "balance_of_rune": "60000000000", "min_price": 1985100, "min_unit_price": 3308.5, "unisat_price": 1985100, "unisat_unit_price": 3308.5, "rune_names": [ "SATOSHINAKAMOTO" ], "spaced_rune_names": [ "SATOSHI•NAKAMOTO" ], "decimals": [ 8 ] }, ... ], "block_height": 840523 } ``` ## Runes Wallet Activity *Included in: Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/runes/wallet_activity` Returns runes activity of a given wallet. If the given wallet is involved in a runes transaction, all activity in the transaction will be returned (even if that activity is an input/output to a different wallet) The endpoint includes an optional rune filter. You can leave the parameters `rune_name`, `rune_id`, and `rune_number` blank to retrieve all wallet activity. Alternatively, you may supply at most one of these parameters to filter transactions where one of the events in the tx involves both the specified wallet and rune. If optional `runes_filter_only_wallet` parameter is set to true, the endpoint only returns the runes events with the selected wallet. Otherwise it also includes the other runes events in the transaction. Sample query: [https://api.bestinslot.xyz/v3/runes/wallet\_activity?pkscript=51206c74701eabe7476acfa4dab9489d41a16566abd37519ca42b5e08ed737e3c3ae\&sort\_by=ts\&order=desc\&offset=0\&count=2000](https://api.bestinslot.xyz/v3/runes/wallet_activity?pkscript=51206c74701eabe7476acfa4dab9489d41a16566abd37519ca42b5e08ed737e3c3ae\&sort_by=ts\&order=desc\&offset=0\&count=2000) #### Query Parameters
NameTypeDescription
addressstring(optional) Bitcoin wallet address
pkscriptstring(optional) Bitcoin script\_pub\_key
rune\_namestring(optional) Non-Spaced name of Rune
rune\_idstring(optional) Rune ID
rune\_numberint(optional) Rune Number
sort\_by\*stringcurrently only option is ts (timestamp)
order\*stringasc, desc
offset\*int0 \<= offset
count\*int20 \<= count \<= 2000
runes\_filter\_only\_walletstring(optional) "true" or "false"
**NOTE: One of address or pkscript must be specified** **Response** ```json theme={null} { "data": [ { "event_type": "output", "txid": "6f77a8234c74559c2fa74b604bb8318a6811c288591b07e95adc381eb363320e", "outpoint": "6f77a8234c74559c2fa74b604bb8318a6811c288591b07e95adc381eb363320e:0", "pkscript": "512088de610b5857285c27fb45369ec8d4c56cf59b4b67ddebc9a7898987e7f82dcd", "wallet_addr": "bc1p3r0xzz6c2u59cflmg5mfajx5c4k0tx6tvlw7hjd83xyc0elc9hxslysx6c", "rune_id": "840000:22", "amount": "560000000000", "block_height": 840407, "block_timestamp": "2024-04-22T22:15:00.000Z", "rune_name": "SATOSHINAKAMOTO", "spaced_rune_name": "SATOSHI•NAKAMOTO", "decimals": 8, "sale_info": null, "icon_content_url": "https://bis-ord-content.fra1.cdn.digitaloceanspaces.com/ordinals/f753cefb770bf69369d33e93fbc9271f8dc877cb4819cbdd9d766f3509062e43i0", "icon_render_url": null }, { "event_type": "input", "txid": "6f77a8234c74559c2fa74b604bb8318a6811c288591b07e95adc381eb363320e", "outpoint": "a914c7f595f6baac8e1d81b6cc3f0242607fa7686fabe04888f8c4f76927ab60:0", "pkscript": "512024034ada955f1716ed7833d56744bd08119355cf5b1bbdbc48e66bc357bdb3b7", "wallet_addr": "bc1pysp54k54tut3dmtcx02kw39apqgex4w0tvdmm0zgue4ux4aakwms3pumq8", "rune_id": "840000:22", "amount": "560000000000", "block_height": 840407, "block_timestamp": "2024-04-22T22:15:00.000Z", "rune_name": "SATOSHINAKAMOTO", "spaced_rune_name": "SATOSHI•NAKAMOTO", "decimals": 8, "sale_info": { "sale_price": 42560000, "sold_to_pkscript": "512088de610b5857285c27fb45369ec8d4c56cf59b4b67ddebc9a7898987e7f82dcd", "sold_to_wallet_addr": "bc1p3r0xzz6c2u59cflmg5mfajx5c4k0tx6tvlw7hjd83xyc0elc9hxslysx6c", "marketplace": "okx" }, "icon_content_url": "https://bis-ord-content.fra1.cdn.digitaloceanspaces.com/ordinals/f753cefb770bf69369d33e93fbc9271f8dc877cb4819cbdd9d766f3509062e43i0", "icon_render_url": null }, ... ], "block_height": 840350 } ``` ## Runes Activity of a Ticker *Included in: Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/runes/activity` Returns activity of a given ticker. Sample query: [https://api.bestinslot.xyz/v3/runes/activity?rune\_name=UNCOMMONGOODS\&sort\_by=ts\&order=desc\&offset=0\&count=2000](https://api.bestinslot.xyz/v3/runes/activity?rune_name=UNCOMMONGOODS\&sort_by=ts\&order=desc\&offset=0\&count=2000) #### Query Parameters | Name | Type | Description | | ------------ | -------- | ---------------------------------- | | rune\_name | `string` | (optional) Non-Spaced name of Rune | | rune\_id | `string` | (optional) Rune ID | | rune\_number | `int` | (optional) Rune Number | | sort\_by\* | `string` | output, amount | | order\* | `string` | asc, desc | | offset\* | `int` | 0 \<= offset | | count\* | `int` | 20 \<= count \<= 2000 | **NOTE: One of rune\_name, rune\_id or rune\_number must be specified** **Response** ```json theme={null} { "data": [ { "event_type": "output", "txid": "fa510ec0930c3eb4db1a92a84b237a10277db21e6fa4f3969c7bf8af5e73e4b6", "outpoint": "fa510ec0930c3eb4db1a92a84b237a10277db21e6fa4f3969c7bf8af5e73e4b6:1", "pkscript": "51209f8b1cf14c997a807d2c1509b39ff6f5f9d5b24cfd6dca5bba113ae995c840a1", "wallet_addr": "bc1pn793eu2vn9agqlfvz5ym88lk7huatvjvl4ku5ka6zyawn9wggzssv5n2ky", "rune_id": "840000:22", "amount": "200000000000", "block_height": 840350, "block_timestamp": "2024-04-22T13:46:20.000Z", "rune_name": "SATOSHINAKAMOTO", "spaced_rune_name": "SATOSHI•NAKAMOTO", "decimals": 8, "sale_info": null }, { "event_type": "input", "txid": "fa510ec0930c3eb4db1a92a84b237a10277db21e6fa4f3969c7bf8af5e73e4b6", "outpoint": "1512857dabb0f6b7b2cdf9dfa867aa3e96eaa38bdc23527878c8de1e9c6fe7e3:2", "pkscript": "5120242129034b44bcc2c806cbb04ea34c43fb26b74c7429991e233ccb6bf046c821", "wallet_addr": "bc1pyssjjq6tgj7v9jqxewcyag6vg0ajdd6vws5ej83r8n9khuzxeqssp55n7m", "rune_id": "840000:22", "amount": "200000000000", "block_height": 840350, "block_timestamp": "2024-04-22T13:46:20.000Z", "rune_name": "SATOSHINAKAMOTO", "spaced_rune_name": "SATOSHI•NAKAMOTO", "decimals": 8, "sale_info": { "sale_price": 15754000, "sold_to_pkscript": "51209f8b1cf14c997a807d2c1509b39ff6f5f9d5b24cfd6dca5bba113ae995c840a1", "sold_to_wallet_addr": "bc1pn793eu2vn9agqlfvz5ym88lk7huatvjvl4ku5ka6zyawn9wggzssv5n2ky", "marketplace": "unisat" } }, ... ], "block_height": 840350 } ``` ## Runes Activity in a Single Tx *Included in: Basic, Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/runes/events_on_tx` Returns runes activity on a given bitcoin transaction. Sample query: [https://api.bestinslot.xyz/v3/runes/events\_on\_tx?txid=e49f0912f94b915c0dd12b7970083b348945c2fc7bc01a21e0bfa403827607cf](https://api.bestinslot.xyz/v3/runes/events_on_tx?txid=e49f0912f94b915c0dd12b7970083b348945c2fc7bc01a21e0bfa403827607cf) #### Query Parameters
NameTypeDescription
txid\*stringBitcoin txid
**Response** ```json theme={null} { "data": [ { "event_type": "input", "txid": "34ff792cf5a50666fabfb8c2acc9ef8da9e5d180ab813713ad051d4117124333", "outpoint": "fa76b47040e0ed571030bff83713205167b6d1d2acba3bbb5f8fbaea09a4d4f9:0", "pkscript": "0014752451874597e90865c6e9b886b8640a36e82201", "wallet_addr": "bc1qw5j9rp69jl5ssewxaxugdwrypgmwsgspqhhttg", "rune_id": "840000:22", "amount": "20000000000", "block_height": 840336, "block_timestamp": "2024-04-22T11:47:44.000Z", "rune_name": "SATOSHINAKAMOTO", "spaced_rune_name": "SATOSHI•NAKAMOTO", "decimals": 8, "sale_info": { "sale_price": 1573800, "sold_to_pkscript": "5120e571909d0434b191f33cfcd7eb99f06e42a808594839fa7221594e86e212433b", "sold_to_wallet_addr": "bc1pu4cep8gyxjcerueulnt7hx0sdep2szzefqul5u3pt98gdcsjgvas8gtgrk", "marketplace": "unisat" } }, { "event_type": "output", "txid": "34ff792cf5a50666fabfb8c2acc9ef8da9e5d180ab813713ad051d4117124333", "outpoint": "34ff792cf5a50666fabfb8c2acc9ef8da9e5d180ab813713ad051d4117124333:1", "pkscript": "5120e571909d0434b191f33cfcd7eb99f06e42a808594839fa7221594e86e212433b", "wallet_addr": "bc1pu4cep8gyxjcerueulnt7hx0sdep2szzefqul5u3pt98gdcsjgvas8gtgrk", "rune_id": "840000:22", "amount": "20000000000", "block_height": 840336, "block_timestamp": "2024-04-22T11:47:44.000Z", "rune_name": "SATOSHINAKAMOTO", "spaced_rune_name": "SATOSHI•NAKAMOTO", "decimals": 8, "sale_info": null } ], "block_height": 840350 } ``` ## Runes Historical Total Supply *Included in: Basic, Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/runes/historical_total_supply` Returns historical total supply for selected rune in selected block height. Sample query: [https://api.bestinslot.xyz/v3/runes/historical\_total\_supply?rune\_name=UNCOMMONGOODS\&block\_height=860000](https://api.bestinslot.xyz/v3/runes/historical_total_supply?rune_name=UNCOMMONGOODS\&block_height=860000) #### Query Parameters | Name | Type | Description | | --------------- | -------- | ---------------------------------- | | rune\_name | `string` | (optional) Non-Spaced name of Rune | | rune\_id | `string` | (optional) Rune ID | | rune\_number | `int` | (optional) Rune Number | | block\_height\* | `int` | Bitcoin block height | **NOTE: One of rune\_name, rune\_id or rune\_number must be specified** **Response** ```json theme={null} { "data": { "total_supply": "26035948", "block_height": "860000", "rune_id": "1:0", "decimals": 0 }, "block_height": 889396 } ``` ## Runes All Activity on Block Height *Included in: Enterprise, Dedicated with Enterprise Endpoints* **`GET`** `https://api.bestinslot.xyz/v3/runes/activity_on_block` Returns all runes activity in a given block height. Sample query: [https://api.bestinslot.xyz/v3/runes/activity\_on\_block?block\_height=840000](https://api.bestinslot.xyz/v3/runes/activity_on_block?block_height=840000) #### Query Parameters | Name | Type | Description | | --------------- | -------- | -------------------- | | block\_height\* | `string` | Bitcoin block height | **Response** ```json theme={null} { "data": [ { "event_type": "input", "txid": "e712da809a70f59067c3a65c16f7337079a1113e0072acbef50d96b4af9751a0", "outpoint": "6aea2e2992a65c1974c76a06a87412939b7629c884d07f1d8b09a531e45a32f9:1", "pkscript": "51201ac61709cc243d38f261a864fe9182e84b1b16df768a16077766e85942a9d1aa", "wallet_addr": "bc1prtrpwzwvys7n3unp4pj0ayvzap93k9klw69pvpmhvm59js4f6x4qy70yt8", "rune_id": "840000:453", "amount": "6666", "block_height": 840163, "block_timestamp": "2024-04-21T05:48:31.000Z", "rune_name": "ORDINALSAREDEAD", "spaced_rune_name": "ORDINALS•ARE•DEAD", "decimals": 0, "sale_info": { "sale_price": 79992, "sold_to_pkscript": "0014878ff1580d7ceedcd97e1b3cfa7cc0feef2b8f4d", "sold_to_wallet_addr": "bc1qs78lzkqd0nhdekt7rv705lxqlmhjhr6dggcdr4", "marketplace": "okx" } }, { "event_type": "output", "txid": "e712da809a70f59067c3a65c16f7337079a1113e0072acbef50d96b4af9751a0", "outpoint": "e712da809a70f59067c3a65c16f7337079a1113e0072acbef50d96b4af9751a0:0", "pkscript": "0014878ff1580d7ceedcd97e1b3cfa7cc0feef2b8f4d", "wallet_addr": "bc1qs78lzkqd0nhdekt7rv705lxqlmhjhr6dggcdr4", "rune_id": "840000:453", "amount": "6666", "block_height": 840163, "block_timestamp": "2024-04-21T05:48:31.000Z", "rune_name": "ORDINALSAREDEAD", "spaced_rune_name": "ORDINALS•ARE•DEAD", "decimals": 0, "sale_info": null }, { "event_type": "mint", "txid": "82a0b948440e0ba893211fb68805f32ce3f62106a7c688851790769dc8b99ecd", "outpoint": null, "pkscript": null, "wallet_addr": null, "rune_id": "840000:453", "amount": "6666", "block_height": 840163, "block_timestamp": "2024-04-21T05:48:31.000Z", "rune_name": "ORDINALSAREDEAD", "spaced_rune_name": "ORDINALS•ARE•DEAD", "decimals": 0, "sale_info": null }, ... ], "block_height": 2585298 } ``` ## Runes All ID Name Pairs *Included in: Enterprise, Dedicated with Enterprise Endpoints* **`GET`** `https://api.bestinslot.xyz/v3/runes/all_id_name_pairs` Returns all runes id-name pairs If send\_urls is set to true, we'll also return content and render urls for rune icon. Response will include `render_prefix, render_suffix, content_prefix, content_suffix` and `r` and `ic` fields in data array. `r` denotes if render is available and urls are constructed using `prefix + ic + suffix`. Sample query: [https://api.bestinslot.xyz/v3/runes/all\_id\_name\_pairs](https://api.bestinslot.xyz/v3/runes/all_id_name_pairs) #### Query Parameters | Name | Type | Description | | ---------- | -------- | ---------------------------- | | send\_urls | `string` | (optional) "true" or "false" | **Response** ```json theme={null} { "data": [ { "i": "840076:2046", "n": "HONEYBADGERDONTCARE", "sn": "HONEY•BADGER•DONT•CARE" }, { "i": "841393:349", "n": "BIRDFOURTWOZEROSEVEN", "sn": "BIRD•FOUR•TWO•ZERO•SEVEN" }, ... ], "block_height": 862525 } ``` ## Runes Historical Prices *Included in: Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/runes/historical_prices` Returns all historical prices for selected rune If granularity is set to 1d, it'll return the average price for the day. Sample query: [https://api.bestinslot.xyz/v3/runes/historical\_prices?sort\_by=ts\&order=desc\&offset=0\&count=2000\&rune\_id=1:0](https://api.bestinslot.xyz/v3/runes/historical_prices?sort_by=ts\&order=desc\&offset=0\&count=2000\&rune_id=1:0) #### Query Parameters | Name | Type | Description | | ------------ | -------- | ---------------------------------- | | rune\_name | `string` | (optional) Non-Spaced name of Rune | | rune\_id | `string` | (optional) Rune ID | | rune\_number | `int` | (optional) Rune Number | | sort\_by\* | `string` | ts | | order\* | `string` | asc, desc | | offset\* | `int` | 0 \<= offset | | count\* | `int` | 20 \<= count \<= 2000 | | granularity | `string` | (Optional) "1h" or "1d" | **NOTE: One of rune\_name, rune\_id or rune\_number must be specified** **Response** ```json theme={null} { "data": [ { "timestamp": "2024-09-23T13:00:00.000Z", "price": 230.664, "volume": 119296 }, { "timestamp": "2024-09-23T12:00:00.000Z", "price": 231.1305896319747, "volume": 4266653 }, { "timestamp": "2024-09-23T11:00:00.000Z", "price": 235, "volume": 1031318 }, { "timestamp": "2024-09-23T10:00:00.000Z", "price": 235, "volume": 2650313 }, { "timestamp": "2024-09-23T09:00:00.000Z", "price": 235, "volume": 3747853 }, { "timestamp": "2024-09-23T08:00:00.000Z", "price": 238, "volume": 1376502 }, { "timestamp": "2024-09-23T07:00:00.000Z", "price": 238, "volume": 5254130 }, ... ], "block_height": 862525 } ``` # Sats Names Source: https://docs.bestinslot.xyz/api-reference/sats-names Endpoints related to sats names. **Retired.** These endpoints are no longer served. Run [OPI](https://github.com/bestinslot-xyz/OPI) instead — see the [introduction](/docs/introduction). Kept for historical reference. Endpoints' API-Key-Tier availabilities are written for each endpoint. **To use on testnet4/signet, use your current api-key and send the request to `https://testnet.api.bestinslot.xyz` / `https://signet_api.bestinslot.xyz`** ## Sats Validity Check *Included in: Basic, Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/sats/validity_check` Returns validity details about a specific inscription. Sample query: [https://api.bestinslot.xyz/v3/sats/validity\_check?inscription\_id=8ca50ea8ed42bf9b1b2dad8df4fddb1d354769b32d240e2d5a788ee78ef2bab0i0](https://api.bestinslot.xyz/v3/sats/validity_check?inscription_id=8ca50ea8ed42bf9b1b2dad8df4fddb1d354769b32d240e2d5a788ee78ef2bab0i0) #### Query Parameters | Name | Type | Description | | ----------------- | ------ | -------------- | | inscription\_id\* | string | inscription id | ```json theme={null} { "data": { "sats_name": "penguins.sats", "original_id": "b8cd5daeb8859410c4cc01d88bfa5afe6c508713882af7099b45b5d583c270d7i0", "is_valid": false }, "block_height": 795034 } ``` ## Sats Forward Lookup *Included in: Basic, Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/sats/forward_lookup` Returns address from a sats name. Sample query: [https://api.bestinslot.xyz/v3/sats/forward\_lookup?sats\_name=penguins.sats](https://api.bestinslot.xyz/v3/sats/forward_lookup?sats_name=penguins.sats) #### Query Parameters | Name | Type | Description | | ------------ | ------ | ----------- | | sats\_name\* | string | sats name | ```json theme={null} { "data": { "wallet": "bc1prjglj0tcff20fe4rkwlfj6rjpgjgp3c9k252gsrwysmc7uuk9dcqm40l8k", "bis_url": "https://bestinslot.xyz/bc1prjglj0tcff20fe4rkwlfj6rjpgjgp3c9k252gsrwysmc7uuk9dcqm40l8k" }, "block_height": 795034 } ``` ## Sats Reverse Lookup *Included in: Basic, Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/sats/reverse_lookup` Returns valid sats name with minimum inscription number from a bitcoin wallet address. Sample query: [https://api.bestinslot.xyz/v3/sats/reverse\_lookup?address=bc1prjglj0tcff20fe4rkwlfj6rjpgjgp3c9k252gsrwysmc7uuk9dcqm40l8k](https://api.bestinslot.xyz/v3/sats/reverse_lookup?address=bc1prjglj0tcff20fe4rkwlfj6rjpgjgp3c9k252gsrwysmc7uuk9dcqm40l8k) #### Query Parameters | Name | Type | Description | | --------- | ------ | ---------------------- | | address\* | string | bitcoin wallet address | ```json theme={null} { "data": { "name": "cindi.sats", "bis_url": "https://bestinslot.xyz/cindi.sats" }, "block_height": 795034 } ``` ## Get Sats Activity *Included in: Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/sats/activity` Returns ordered list of inscribes, sales and transfers of all sats. Sample query: [https://api.bestinslot.xyz/v3/sats/activity?activity\_filter=7\&sort\_by=ts\&order=desc\&offset=0\&count=100](https://api.bestinslot.xyz/v3/sats/activity?activity_filter=7\&sort_by=ts\&order=desc\&offset=0\&count=100) #### Query Parameters | Name | Type | Description | | | ------------------ | ------ | ---------------------------------------------------------------------------------------------- | ------ | | sort\_by\* | string | ts | | | order\* | string | asc, desc | | | offset\* | int | 0 \<= offset \<= 5k | | | count\* | int | 20 \<= count \<= 100 | | | activity\_filter\* | int | 1 -> inscribed 2 -> transferred 4 -> sold combine with or operator (e.g. sold & transferred: 2 | 4 = 6) | ```json theme={null} { "data": [ { "inscription_id": "04a5e6e80d49eae28b6da1185eae2566acf438f52957ca214a262ff1a398d469i0", "from_wallet": "bc1qzfcrcx5xtsc25dkzls9smmr45fztfpwyznnmzh", "to_wallet": "bc1pnvfmyadyqy6ggdhqaktm7crs3tgpnvadc9rnt973axfr6twend6qexd5qz", "block_height": 801580, "sale_price": 3531, "new_satpoint": "a54d450288ae6ea1165ea02ac3e60b69d56b172ea9fb77ab2011b15cbeb6eeb3:1:0", "ts": "2023-08-04T01:10:16.000Z", "marketplace_type": "magiceden", "tx_id": "a54d450288ae6ea1165ea02ac3e60b69d56b172ea9fb77ab2011b15cbeb6eeb3" }, ... ], "block_height": 801585 } ``` # Wallets Source: https://docs.bestinslot.xyz/api-reference/wallets Endpoints related to Bitcoin Wallets. **Retired.** These endpoints are no longer served. Run [OPI](https://github.com/bestinslot-xyz/OPI) instead — see the [introduction](/docs/introduction). Kept for historical reference. Endpoints' API-Key-Tier availabilities are written for each endpoint. **To use on testnet4/signet, use your current api-key and send the request to `https://testnet.api.bestinslot.xyz` / `https://signet_api.bestinslot.xyz`** ## BTC Testnet4 Faucet (only on testnet) *Included in: Basic, Pro, Dedicated* **`GET`** `https://testnet.api.bestinslot.xyz/v3/wallet/testnet_faucet` A testnet BTC faucet that mints 0.01 tBTC to target address. **NOTE: Limited with 10 request per 24 hours per key.** Sample query: [https://testnet.api.bestinslot.xyz/v3/wallet/testnet\_faucet?address=tb1p9ts4eu2s4adgjwumdmcu9qfw0hcavrh8m54tyrd39lkk7h4940yq2dmvzx](https://testnet.api.bestinslot.xyz/v3/wallet/testnet_faucet?address=tb1p9ts4eu2s4adgjwumdmcu9qfw0hcavrh8m54tyrd39lkk7h4940yq2dmvzx) #### Query Parameters | Name | Type | Description | | --------- | -------- | ------------------------------ | | address\* | `string` | Testnet Bitcoin wallet address | **Response** ```json theme={null} { "transfer_txid": "d32bb47c7728dbe89289694a54827ecabd8052a5e6c1475ac5a126986e79be1b" } ``` ## Get Wallet Inscriptions *Included in: Basic, Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/wallet/inscriptions` Returns ordered list of inscriptions of a wallet. Sample query: [https://api.bestinslot.xyz/v3/wallet/inscriptions?address=bc1p9ckplx7pesuh396he7nk0qzxrhyewd2ytrz9s2444dkl2c8gerdsrq7xjd\&sort\_by=inscr\_num\&order=desc\&offset=0\&count=2000\&exclude\_brc20=true\&cursed\_only=true](https://api.bestinslot.xyz/v3/wallet/inscriptions?address=bc1p9ckplx7pesuh396he7nk0qzxrhyewd2ytrz9s2444dkl2c8gerdsrq7xjd\&sort_by=inscr_num\&order=desc\&offset=0\&count=2000\&exclude_brc20=true\&cursed_only=true) last\_sale\_price is only available on Pro Tier. #### Query Parameters | Name | Type | Description | | ---------------- | ------ | --------------------------------------------------------- | | sort\_by\* | string | inscr\_num | | order\* | string | asc, desc | | offset\* | int | 0 \<= offset | | count\* | int | 20 \<= count \<= 2000 | | address\* | string | bitcoin wallet address | | exclude\_brc20 | bool | (optional) set to true to exclude brc-20 inscriptions | | cursed\_only | bool | (optional) set to true to return only cursed inscriptions | | collection\_slug | string | (optional) filter by collection slug | ```json theme={null} { "data": [ { "inscription_name": "Runestone", "inscription_id": "c1731231b40c1bf0a7d5c06659067f276e6d4db2980bdc29f18938c7dbfd256ai1135", "inscription_number": 64542114, "parent_ids": [ "fdb2df5d2b16db1ebcbf09e2d23b3f4e417db44b58e712c99b61f26b52c7cbb5i0" ], "output_value": 330, "genesis_block_hash": "000000000000000000018ddf8a6484db391fb85c9f9ddc384f03a92729423aaf", "genesis_ts": "2024-04-13T04:25:01.000Z", "metadata": { "name": "Runestone" }, "owner_wallet_addr": "bc1pp5xk5dxklrfxk4yzdkel09yeqqczk5s3425zg9fj6p8qpm8axdes94yhu7", "mime_type": "model/gltf+json", "last_sale_price": 3950000, "slug": "runestone", "collection_name": "Runestone", "satpoint": "b5567d810d09a61a373f8cbec32322a4c42aa5ff2c163d5eb284aa52c9a0ffff:7:0", "last_transfer_block_height": 836794, "genesis_height": 834864, "content_url": "https://bis-ord-content.fra1.cdn.digitaloceanspaces.com/ordinals/c1731231b40c1bf0a7d5c06659067f276e6d4db2980bdc29f18938c7dbfd256ai1135", "bis_url": "https://bestinslot.xyz/ordinals/inscription/c1731231b40c1bf0a7d5c06659067f276e6d4db2980bdc29f18938c7dbfd256ai1135", "render_url": null, "bitmap_number": null, "delegate": { "delegate_id": "ed76bf35918948b8b78be0e6397ad4916d926dd3d65679a8b7e67d8699a672a0i0", "render_url": "https://bis-ord-renders.fra1.cdn.digitaloceanspaces.com/renders/ed76bf35918948b8b78be0e6397ad4916d926dd3d65679a8b7e67d8699a672a0i0.png", "mime_type": "model/gltf+json", "content_url": "https://bis-ord-content.fra1.cdn.digitaloceanspaces.com/ordinals/ed76bf35918948b8b78be0e6397ad4916d926dd3d65679a8b7e67d8699a672a0i0", "bis_url": "https://bestinslot.xyz/ordinals/inscription/ed76bf35918948b8b78be0e6397ad4916d926dd3d65679a8b7e67d8699a672a0i0" } }, ... ], "block_height": 795034 } ``` ## Get Batch Wallet Inscriptions *Included in: Pro, Dedicated* **`POST`** `https://api.bestinslot.xyz/v3/wallet/inscriptions_batch` Returns ordered list of inscriptions of given wallets (up to 100 wallet). Sample query: \ url: [https://api.bestinslot.xyz/v3/wallet/inscriptions\_batch\\](https://api.bestinslot.xyz/v3/wallet/inscriptions_batch\\) data: \{"addresses":\["bc1pfxhh3yh5pp4s8pf6wjthe5dwsl6nva04n8zdsw4wsnq76kpy2fsqxgse5d","bc1psrvymaz9gx4ljw0x4lpsscrsh2xy8u4yx0ru9z8spdjsgp99qchsaawzw4","bc1pqvkxuvy6cquv0x9kggy0c3skavmwh2arr22xghxae6pqwq4jk4gqw6dpu9"],"offset":0,"count":2000,"sort\_by":"inscr\_num","order":"desc"}\ headers: \{ "Content-Type":"application/json", "x-api-key":"...." } #### Query Parameters | Name | Type | Description | | -------------- | ---------------- | -------------------------------------------------------------------- | | sort\_by | string | (optional) inscr\_num | | order | string | (optional) asc, desc (default: desc) | | offset\* | int | 0 \<= offset | | count\* | int | 20 \<= count \<= 2000 | | addresses\* | array of strings | bitcoin wallet addresses | | exclude\_brc20 | string | (optional) set to "true" (string) to exclude brc-20 inscriptions | | cursed\_only | string | (optional) set to "true" (string) to return only cursed inscriptions | ```json theme={null} { "data": [ { "inscription_name": "ExO Recruits #18240", "inscription_id": "4b0eb4278a1e65ccf9be4935bc2f9cfded27c27ce809b8227792553492053ce1i351", "inscription_number": 70590889, "parent_ids": [ "9d71fc47daede70dde1dd4af7cdfffac18627f797d7542880ec6db2107ad62b6i0" ], "output_value": 330, "genesis_block_hash": "0000000000000000000042ca43ef13023e048bc83f634778dc737c5f9506e122", "genesis_ts": "2024-08-19T03:12:01.000Z", "metadata": { "name": "ExO Recruits #18240", "attributes": [ { "value": "The Mad Scientist", "trait_type": "Recruit name" }, { "value": "14", "trait_type": "batch" } ] }, "owner_wallet_addr": "bc1pp5xk5dxklrfxk4yzdkel09yeqqczk5s3425zg9fj6p8qpm8axdes94yhu7", "mime_type": "text/plain;charset=utf-8", "last_sale_price": null, "slug": "exo_recruits", "collection_name": "ExO Recruits", "satpoint": "4b0eb4278a1e65ccf9be4935bc2f9cfded27c27ce809b8227792553492053ce1:352:0", "last_transfer_block_height": 841691, "genesis_height": 841691, "content_url": "https://bis-ord-content.fra1.cdn.digitaloceanspaces.com/ordinals/4b0eb4278a1e65ccf9be4935bc2f9cfded27c27ce809b8227792553492053ce1i351", "bis_url": "https://bestinslot.xyz/ordinals/inscription/4b0eb4278a1e65ccf9be4935bc2f9cfded27c27ce809b8227792553492053ce1i351", "render_url": "https://bis-ord-renders.fra1.cdn.digitaloceanspaces.com/renders/4b0eb4278a1e65ccf9be4935bc2f9cfded27c27ce809b8227792553492053ce1i351.png", "bitmap_number": null, "delegate": { "delegate_id": "68dddf6c9fbede5b4f6e014149946517685c4aea79250051575cb68136e8d3d9i0", "render_url": "https://bis-ord-renders.fra1.cdn.digitaloceanspaces.com/renders/68dddf6c9fbede5b4f6e014149946517685c4aea79250051575cb68136e8d3d9i0.png", "mime_type": "text/html;charset=utf-8", "content_url": "https://bis-ord-content.fra1.cdn.digitaloceanspaces.com/ordinals/68dddf6c9fbede5b4f6e014149946517685c4aea79250051575cb68136e8d3d9i0", "bis_url": "https://bestinslot.xyz/ordinals/inscription/68dddf6c9fbede5b4f6e014149946517685c4aea79250051575cb68136e8d3d9i0" } }, ... ], "block_height": 849817 } ``` ## Get Wallet Collections *Included in: Basic, Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/wallet/collections` Returns ordered list of collections of a wallet. Sample query: [https://api.bestinslot.xyz/v3/wallet/collections?address=bc1pp5xk5dxklrfxk4yzdkel09yeqqczk5s3425zg9fj6p8qpm8axdes94yhu7\&sort\_by=inscription\_count\&order=desc](https://api.bestinslot.xyz/v3/wallet/collections?address=bc1pp5xk5dxklrfxk4yzdkel09yeqqczk5s3425zg9fj6p8qpm8axdes94yhu7\&sort_by=inscription_count\&order=desc) last\_sale\_price is only available on Pro Tier. #### Query Parameters | Name | Type | Description | | ---------- | ------ | ------------------------ | | sort\_by\* | string | slug, inscription\_count | | order\* | string | asc, desc | | address\* | string | bitcoin wallet address | ```json theme={null} { "data": [ { "collection_slug": "rune_pizza", "inscription_ids": [ "a77c2fda458fc67028cb444b3b3fdcdf36b168d89ceb7286630d2fc76b21a714i292", "d8e56a07f5dc3b6ca8976502637aa50480f883ed89b46dedfcd3196a7e9e5b19i323", "3a94a50d3df80794c606fe1cca66d88cfcbacbe1ddafc2493d7da123ef19f4a6i771", "9fd85f3c8fdde5bd89525e4cfc0ad147555ef57a3f4afe01570905340e88699di1110" ], "collection_info": { "name": "Rune Piza", "slug": "rune_pizza", "inscription_icon_id": "https://creator-hub-prod.s3.us-east-2.amazonaws.com/ord-rune_pizza_pfp_1713024144812.jpeg", "icon_url": "https://creator-hub-prod.s3.us-east-2.amazonaws.com/ord-rune_pizza_pfp_1713024144812.jpeg", "icon_render_url": null, "bis_url": "https://bestinslot.xyz/ordinals/collection/rune_pizza", "supply": "10892", "min_number": 68699615, "median_number": 68705556, "max_number": 68713500, "listed_count": 823, "floor_price": 1530, "floor_price_ordswap": null, "floor_price_magiceden": 1530, "floor_price_ordinalswallet": 811921, "floor_price_gammaio": null, "floor_price_ordynals": null, "floor_price_unisat": null, "floor_price_ordinalsmarket": null, "floor_price_okx": 6000, "vol_3h_in_btc": 0, "vol_24h_in_btc": 0, "vol_7d_in_btc": 0, "vol_30d_in_btc": 0, "sale_cnt_7d": 0, "vol_total_in_btc": 23.96608198, "sale_cnt_total": 4921, "marketcap": 16664760 } }, ... ], "block_height": 889397 } ``` ## Get Wallet Verified Sats *Included in: Basic, Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/wallet/sats_names` Returns list of verified sats names of a wallet. Sample query: [https://api.bestinslot.xyz/v3/wallet/sats\_names?address=bc1p4wj6n9c80zvrjwq3lke2n8esuv8rzw6ch0jlqfrlpanlyn3ftx2s6dgwec](https://api.bestinslot.xyz/v3/wallet/sats_names?address=bc1p4wj6n9c80zvrjwq3lke2n8esuv8rzw6ch0jlqfrlpanlyn3ftx2s6dgwec) #### Query Parameters | Name | Type | Description | | --------- | ------ | ---------------------- | | address\* | string | bitcoin wallet address | ```json theme={null} { "data": [ { "name": "aui.sats", "inscription_id": "8279ab4057df0fcee4eb7c0047acc2f3de3fbd84bd149b0d8f5e4af95988fe13i0", "inscription_number": 264143 }, ... ], "block_height": 795034 } ``` ## Get Wallet Listings *Included in: Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/wallet/listings` Returns ordered list of listings of a bitcoin wallet. Sample query: [https://api.bestinslot.xyz/v3/wallet/listings?address=bc1par0t76nmjf55wp0rpzu58p97mzz6tf3cd67js077a2qx5ez8knlqfnccjq\&sort\_by=min\_price\&order=asc\&offset=0\&count=100](https://api.bestinslot.xyz/v3/wallet/listings?address=bc1par0t76nmjf55wp0rpzu58p97mzz6tf3cd67js077a2qx5ez8knlqfnccjq\&sort_by=min_price\&order=asc\&offset=0\&count=100) #### Query Parameters | Name | Type | Description | | ---------- | ------ | ----------------------------------------------------------------------------------------------------------------------------------------------------- | | sort\_by\* | string | min\_price, ordswap\_price, magiceden\_price, ordinalswallet\_price, gammaio\_price, odynals\_price, unisat\_price, ordinalsmarket\_price, okx\_price | | order\* | string | asc, desc | | offset\* | int | 0 \<= offset \<= 5k | | count\* | int | 20 \<= count \<= 100 | | address\* | string | bitcoin wallet address | ```json theme={null} { "data": [ { "inscription_id": "2506d91d5f9827da5aa604dcf38918317ad58e884be269e823706ebd330758cfi0", "min_price": 999993, "ordswap_price": null, "magiceden_price": null, "ordinalswallet_price": 999993, "gammaio_price": null, "nostr_price": null, "odynals_price": null, "unisat_price": null, "ordinalsmarket_price": null, "okx_price": null, "owner_wallet_addr": "bc1par0t76nmjf55wp0rpzu58p97mzz6tf3cd67js077a2qx5ez8knlqfnccjq" }, ... ], "block_height": 795035 } ``` ## Get Wallet Activity (Inscriptions Only) *Included in: Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/wallet/activity` Returns ordered list of inscribes, sales and transfers of a bitcoin wallet. Sample query: [https://api.bestinslot.xyz/v3/wallet/activity?address=bc1par0t76nmjf55wp0rpzu58p97mzz6tf3cd67js077a2qx5ez8knlqfnccjq\&activity\_filter=7\&sort\_by=ts\&order=desc\&offset=0\&count=100](https://api.bestinslot.xyz/v3/wallet/activity?address=bc1par0t76nmjf55wp0rpzu58p97mzz6tf3cd67js077a2qx5ez8knlqfnccjq\&activity_filter=7\&sort_by=ts\&order=desc\&offset=0\&count=100) #### Query Parameters | Name | Type | Description | | | ------------------ | ------ | ---------------------------------------------------------------------------------------------- | ------ | | sort\_by\* | string | ts | | | order\* | string | asc, desc | | | offset\* | int | 0 \<= offset \<= 5k | | | count\* | int | 20 \<= count \<= 100 | | | address\* | string | bitcoin wallet address | | | activity\_filter\* | int | 1 -> inscribed 2 -> transferred 4 -> sold combine with or operator (e.g. sold & transferred: 2 | 4 = 6) | ```json theme={null} { "data": [ { "inscription_id": "daf55547be8fd88f242ce24b3af11ec9f4d602b0c05b4b23967dfcd160ac719di0", "from_wallet": "bc1pm2grfjnvhrfjff965cs63gma5ze02v3572wks9mdl7kxjyt2q58q5es97l", "to_wallet": "bc1pdly22tta7wx56j9xhygzg5dwnd4a3xnj7qyt9ewrajn9hvmha9msfpm3sd", "block_height": 795034, "sale_price": -1, "new_satpoint": "5cd78b9bf19d80a1d525564ef7df775b65f0cc15e5f7bbafcb724c1b8995615c:0:0", "ts": "2023-06-19T09:30:18.000Z", "marketplace_type": "magiceden", "tx_id": "5cd78b9bf19d80a1d525564ef7df775b65f0cc15e5f7bbafcb724c1b8995615c" }, ... ], "block_height": 795035 } ``` ## Get Wallet Global Activity (Inscriptions, BRC20 and Runes) *Included in: Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/wallet/global_activity` Returns ordered list of inscription, brc20 and runes activities of bitcoin wallet.\ This endpoint is the combined view of: `/v3/wallet/activity`, `/v3/brc20/wallet_activity` and `/v3/runes/wallet_activity` Response will have mixed structures since different protocols require different fields. ``` InscriptionStructure: { event_category: 'inscription', event_type: 'inscribe' | 'transfer' | 'buy' | 'sell', inscription_id, tx_id, new_satpoint, from_wallet, to_wallet, block_height, ts, amount: 1, sale_price, unit_price: same as sale_price for this type, marketplace_type: marketplace_type on Constants tab, inner_id: for debugging purposes } BRC20Structure: { event_category: 'brc20', event_type: 'deploy-inscribe' | 'mint-inscribe' | 'transfer-inscribe' | 'transfer-transfer', inscription_id, tx_id, new_satpoint, from_wallet, to_wallet, block_height, ts, amount, sale_price, unit_price, marketplace_type: marketplace_type on Constants tab, ticker, inner_id: for debugging purposes } RunesStructure: { event_category: 'runes', event_type: 'input' | 'new-allocation' | 'mint' | 'output' | 'burn', outpoint, tx_id, wallet_addr, block_height, ts, amount, sale_price, sold_to_wallet_addr, marketplace_type: marketplace_type on Constants tab, rune_id, rune_name, spaced_rune_name, decimals, inner_id: for debugging purposes } ``` For runes events response structure, please check `/v3/runes/wallet_activity` endpoint details. Since a single runes transaction can have a lot of runes events, if the last runes event does not fit into count, the endpoint will return all events in the tx anyway. So, the response may have more elements than count. Sample query: [https://api.bestinslot.xyz/v3/wallet/global\_activity?address=bc1pg7j3rwqnjfsrj66gcgtfx99c6l3vnrs9v7arx3kpjmh9ukmv47wq0jdgg0\&sort\_by=ts\&order=desc\&count=500\&cursor=384298391\_\_14396391](https://api.bestinslot.xyz/v3/wallet/global_activity?address=bc1pg7j3rwqnjfsrj66gcgtfx99c6l3vnrs9v7arx3kpjmh9ukmv47wq0jdgg0\&sort_by=ts\&order=desc\&count=500\&cursor=384298391__14396391) #### Query Parameters | Name | Type | Description | | --------------------------- | -------- | ---------------------------------------------------------- | | sort\_by\* | `string` | ts | | order\* | `string` | asc, desc | | count\* | `int` | 20 \<= count \<= 500 | | address\* | `string` | bitcoin wallet address | | runes\_filter\_only\_wallet | `string` | (optional) "true" or "false" | | cursor | `string` | to continue fetching data, use the cursor on last response | ```json theme={null} { "data": { "cursor": "1117389_32620821_11504547", "result": [ { "event_category": "inscription", "event_type": "transfer", "inscription_id": "382c9ce1b42bec9fff3c20cd450ea22f0f7c538824dcebb16e09028b486bf5a4i530", "tx_id": "f9b6dbe3012fb83eebd4f475d3802650f54192226d40d8dab8ef8645586cda82", "new_satpoint": "f9b6dbe3012fb83eebd4f475d3802650f54192226d40d8dab8ef8645586cda82:0:0", "from_wallet": "bc1pjlqse9nd2q45lauevagerrka3vnmq5ksnph7muztuhkl0d26kgusj9n42c", "to_wallet": "bc1pg7j3rwqnjfsrj66gcgtfx99c6l3vnrs9v7arx3kpjmh9ukmv47wq0jdgg0", "block_height": 842074, "ts": "2024-05-04T15:29:49.000Z", "amount": 1, "sale_price": -1, "unit_price": -1, "marketplace_type": "", "inner_id": 379499237 }, { "event_category": "runes", "event_type": "output", "outpoint": "592ce71f4c962a18565c1d7db5336f956d5af48d2b46b21d19c001b79272d565:0", "tx_id": "592ce71f4c962a18565c1d7db5336f956d5af48d2b46b21d19c001b79272d565", "wallet_addr": "bc1pg7j3rwqnjfsrj66gcgtfx99c6l3vnrs9v7arx3kpjmh9ukmv47wq0jdgg0", "block_height": 841974, "ts": "2024-05-03T22:37:46.000Z", "amount": "2280", "sale_price": null, "sold_to_wallet_addr": null, "marketplace_type": "unindexed", "rune_id": "841599:714", "rune_name": "BUTTERNUTTHEHELLCAT", "spaced_rune_name": "BUTTERNUT•THE•HELL•CAT", "decimals": 0, "inner_id": 13122494 }, { "event_category": "runes", "event_type": "input", "outpoint": "6c7ebb818b94bc3c68e6681fde4bfc4a726a9bf002ca7400fb703cb9f0fe3539:2", "tx_id": "592ce71f4c962a18565c1d7db5336f956d5af48d2b46b21d19c001b79272d565", "wallet_addr": "bc1p9gvz9w89j60y2xy9pycmfls5xl5y0kklgdcfxf7tqyhfdre9wdeq8etlru", "block_height": 841974, "ts": "2024-05-03T22:37:46.000Z", "amount": "1140", "sale_price": 502146, "sold_to_wallet_addr": "bc1pg7j3rwqnjfsrj66gcgtfx99c6l3vnrs9v7arx3kpjmh9ukmv47wq0jdgg0", "marketplace_type": "magiceden", "rune_id": "841599:714", "rune_name": "BUTTERNUTTHEHELLCAT", "spaced_rune_name": "BUTTERNUT•THE•HELL•CAT", "decimals": 0, "inner_id": 13122493 }, { "event_category": "runes", "event_type": "input", "outpoint": "6c7ebb818b94bc3c68e6681fde4bfc4a726a9bf002ca7400fb703cb9f0fe3539:1", "tx_id": "592ce71f4c962a18565c1d7db5336f956d5af48d2b46b21d19c001b79272d565", "wallet_addr": "bc1p9gvz9w89j60y2xy9pycmfls5xl5y0kklgdcfxf7tqyhfdre9wdeq8etlru", "block_height": 841974, "ts": "2024-05-03T22:37:46.000Z", "amount": "1140", "sale_price": 502146, "sold_to_wallet_addr": "bc1pg7j3rwqnjfsrj66gcgtfx99c6l3vnrs9v7arx3kpjmh9ukmv47wq0jdgg0", "marketplace_type": "magiceden", "rune_id": "841599:714", "rune_name": "BUTTERNUTTHEHELLCAT", "spaced_rune_name": "BUTTERNUT•THE•HELL•CAT", "decimals": 0, "inner_id": 13122492 }, ... ] }, "block_height": 847622 } ``` ## Get Wallet Metadata *Included in: Basic, Pro, Dedicated* **`GET`** `https://api.bestinslot.xyz/v3/wallet/metadata` Returns inscription\_count, nonbrc20\_inscription\_count and last\_transfer\_block\_height for a given wallet address. Sample query: [https://api.bestinslot.xyz/v3/wallet/metadata?address=bc1p4wj6n9c80zvrjwq3lke2n8esuv8rzw6ch0jlqfrlpanlyn3ftx2s6dgwec](https://api.bestinslot.xyz/v3/wallet/metadata?address=bc1p4wj6n9c80zvrjwq3lke2n8esuv8rzw6ch0jlqfrlpanlyn3ftx2s6dgwec) #### Query Parameters | Name | Type | Description | | --------- | ------ | ---------------------- | | address\* | string | bitcoin wallet address | ```json theme={null} { "data": { "inscription_count": 5, "nonbrc20_inscription_count": 5, "last_transfer_block_height": 779081 }, "block_height": 801647 } ``` # BRC-20 Indexer Rules Source: https://docs.bestinslot.xyz/docs/brc-20-indexer-rules Detailed rules of BRC-20 Indexing In order to not conflict with the current indexers, we followed [Unisat's open-source indexer](https://github.com/unisat-wallet/libbrc20-indexer) whenever necessary, also we followed all of the rules at the [official BRC-20 gitbook](https://domo-2.gitbook.io/brc-20-experiment/). In addition to these rules, we extensively checked BRC-20 tokens / token movements and cross checked it with other indexers to not have any indexing conflicts. Here are the detailed indexing rules that we follow: * **Inscription must have a MIME Type of "text/plain" or "application/json".** To check this, split the mime type from ";" and check the first part without strip/trim etc. * Inscription must be a valid JSON (**not** JSON5) * JSON must have "p", "op", "tick" fields where "p"="brc-20", "op" in \["deploy", "mint", "transfer"] * If op is deploy, JSON must have a "max" field. "lim" and "dec" fields are optional. If "dec" is not set, it will be counted as 18. If "lim" is not set it will be equal to "max". * If op is mint or transfer, JSON must have an "amt" field. * **ALL NECESSARY JSON FIELDS MUST BE STRINGS.** Numbers at max, lim, amt, dec etc. are not accepted. **Extra fields which haven't been discussed here can be of any type.** * **Numeric fields are not stripped/trimmed.** "dec" field must have only digits, other numeric fields may have a single dot(".") for decimal representation (+,- etc. are not accepted). Decimal fields **cannot start or end with dot** (e.g. ".99" and "99." are invalid). * **Empty string for numeric field is invalid.** * **0 for numeric fields is invalid except for "dec" field.** * If any decimal representation have **more decimal digits** than "dec" of ticker, the inscription will be counted as invalid **(even if the extra digits are 0)** * Max value of "dec" is 18. * Max value of any numeric field is uint64\_max. * "tick" must be 4bytes wide (UTF-8 is accepted). "tick" is **case insensitive**, we use lowercase letters to track tickers (convert tick to lowercase before processing). * If a deploy, mint or transfer is **sent as fee** to miner while inscribing, it **must be ignored** * If a transfer is **sent as fee** in its first transfer, its amount **must be returned to sender** * If a mint has been deployed with more amt than lim, it will be ignored. * If a transfer has been deployed with more amt than **available balance** of that wallet, it will be ignored. * **All balances are followed using scriptPubKey** since some wallets may not have an address attached on bitcoin. How the protocol works: * First a deploy inscription is inscribed. This will set the rules for this brc-20 ticker. If the same ticker (case insensitive) has already been deployed, **the second deployment will be invalid**. * Then anyone can inscribe mint inscriptions with the limits set in deploy inscription until the minted balance reaches to "max" set in deploy inscription. * **The last mint inscription will mint the remaining tokens**. For example, if the ticker only has 100 tokens left but a mint inscription wants to mint 500, it will mint the remaining 100 tokens. * When a wallet mints a brc-20 token (inscribes a mint inscription to its address), its **overall balance** and **available balance** will increase. * Wallets can inscribe transfer inscriptions with amount **up to their available balance**. * If a user inscribe a transfer inscription but does not transfer it, its overall balance will stay the same but its available balance will decrease. * When this transfer inscription is transferred **(not sent as fee to miner)** the original wallet's overall balance will decrease but its available balance will stay the same. The receiver's overall balance and available balance will increase. * If you transfer the transfer inscription to your own wallet, your available balance will increase and the transfer inscription will become used. * **A transfer inscription will become invalid/used after its first transfer.** * **Buying, transferring mint and deploy inscriptions will not change anyone's balance.** Some possible pitfalls: * JS integer is actually double floating point number and it can only hold 53-bit integers with full-precision. **If you want to make an indexer with JS, use BigInt.** * Sent as fee rule is very important and needs to be handled carefully. * **Do not use string length for ticker length comparison.** Some UTF-8 characters like most of the emojis use 4bytes but their string length is 1 on most programming languages. * Numeric fields does not accept numeric values. Use strings in JSON. * Do not trim/strip any field. * Do not use int/float conversion directly on numeric fields. For example some languages may accept "123asd" as valid integer with 123 value but this inscription is invalid. * Check decimal length of amt, max, lim from string value. Extra 0's at the end of the decimal part may invalidate the token if there are more decimal digits than "dec" of ticker. * **Beware of the reorgs.** Since the order of transactions is very important in this protocol, a reorg will probably change the balances. # Ordinals API Source: https://docs.bestinslot.xyz/docs/introduction The bestinslot.xyz Ordinals API has been retired — run OPI instead **The Best in Slot Ordinals API has been retired.** We no longer operate the hosted API at `api.bestinslot.xyz`. Instead, we recommend running [OPI (Open Protocol Indexer)](https://github.com/bestinslot-xyz/OPI) yourself — it is open source, self-hosted, and gives you full control over your own data. The API reference on this site is kept online for historical reference only. ## Migrating to OPI [OPI](https://github.com/bestinslot-xyz/OPI) is our open-source indexing client for meta-protocols on Bitcoin. It is built on a modified version of `ord`, is modular, and has reorg protection built into every module. OPI currently indexes: * **BRC-20** — follows the official protocol rules and tracks all historical balance changes and events * **Bitmap** — indexes bitmap-number and inscription-id pairs per the official specification * **SNS (Sats Names)** — tracks name, domain and namespace registrations Each module ships with its own REST API, so you can query block activity and events, wallet balances at a given height, block and cumulative hashes for verification, and protocol-specific lookups from your own infrastructure. ### What you'll need * PostgreSQL * Rust toolchain (to build `ord` and the BRC-20 indexer) * Node.js (for the API services) * Python 3 with virtual environment support Setup instructions, including a step-by-step Ubuntu guide, are in the [OPI repository](https://github.com/bestinslot-xyz/OPI). ## Want to learn about our BRC-20 indexer? The [BRC-20 Indexer Rules](/docs/brc-20-indexer-rules) still apply to the BRC-20 module in OPI: [BRC-20 Indexer Rules](/docs/brc-20-indexer-rules) ## Looking for the old API reference? The retired endpoint documentation remains available for reference: [API Reference](/api-reference/overview) # Terms of Service Source: https://docs.bestinslot.xyz/docs/terms-of-service **Last Updated: 24.05.2024** Welcome to Best in Slot API! By accessing or using our website located at [https://bestinslot.xyz/](https://bestinslot.xyz/) (the “Website"), or any services, applications, and APIs made available by Best in Slot (collectively, the "Best in Slot"), Client agrees to be bound by these Terms of Service ("Terms"). 1. **Acceptance of Terms** 1. These Terms govern the Client’s use of the Service provided by Best in Slot. By accessing or using the Service, Client signifies its acceptance of these Terms. 2. Best in Slot reserves the right, at its sole discretion, to modify or replace these Terms at any time. If a revision is material, we will try to provide at least 30 days notice prior to any new terms taking effect. What constitutes a material change will be determined at Best in Slot’s sole discretion. 2. **Services** 1. Best in Slot grants the Client a non-transferable, non-exclusive, non-sublicensable, limited right to access and use the Services and Software, solely for the Client to access and use Best in Slot. This access and use is subject to the terms and conditions outlined in the Terms. 2. Best in Slot reserves the right to update its services, including implementing new versions and upgrades, without prior notice. While efforts are made to maintain 24/7 accessibility, interruptions may occur due to technical reasons beyond Best in Slot's control, for which it is not liable and if third-party services supporting the API product cease operation, adjustments to the product may be necessary accordingly. However, Best in Slot undertakes to adopt reasonable measures to ensure continuous availability. 3. Best in Slot acts as a data provider and does not claim ownership of the information contained within the blockchain data. Clients are prohibited from using Best in Slot's content or data beyond the scope of the license granted in these Terms. 4. Access to services and software licenses are granted to Clients for internal business purposes only. However, strict use restrictions are imposed to prevent unauthorized usage, reverse engineering, transmit harmful code or viruses, and violate any applicable law or intellectual property rights. Clients are prohibited from interfering with service integrity, accessing data through unauthorized means, or using the services for competitive analysis. Compliance with open-source licenses is mandatory, and transmission of harmful code is strictly prohibited. Additionally, any attempts to gain unauthorized access to Best in Slot's systems or networks are strictly forbidden and may result in legal action. 5. Best in Slot reserves the right to investigate and address any violations of terms, including fraudulent activity, and may refuse or restrict access to users found in violation. 3. **Client Obligations** 1. Clients using Best in Slot services are obligated to adhere to several key responsibilities outlined in this Terms. 2. Clients are responsible for maintaining accurate contact, billing, and/or credit card information, updating it promptly when changes occur. This helps facilitate smooth transactions and communication between the client and Best in Slot. 3. Clients must use the services in compliance with national laws and regulations. They are accountable for all activities conducted through their account and the applications or results generated using the services. These activities must not infringe upon third-party rights or violate any governing legislation. 4. The Client agrees that purchasing multiple low-limit packages in order to circumvent imposed limits is strictly prohibited. The Client must procure a single package commensurate with their usage limit. Any attempt to contravene this provision, whether detected or suspected, may result in immediate suspension or termination of the service, at the discretion of Best in Slot. 5. Clients must ensure that any content, data, plug-ins, or third-party services used in conjunction with the services do not breach the agreement or any applicable laws and regulations. Any use of third-party services is at the client's own risk, and they are solely responsible for any consequences arising from such usage. 6. In the event of any suspected breach of these obligations, clients are obligated to notify Best in Slot promptly. Failure to comply with these obligations may result in legal consequences and the termination of services by Best in Slot. Clients are also required to indemnify Best in Slot and its affiliates against any claims or proceedings related to their use of the services or third-party services under the agreement. 4. **Client Support** 1. Best in Slot offers Client support services via Client's communication channel of choice pertaining to inquiries related to the utilization of the Services. This support is available on weekdays during standard office hours and is provided to a reasonable extent as determined by Best in Slot periodically. 2. Queries and/or notifications of errors are to be communicated to Best in Slot exclusively through the contact details provided on the website. 5. **Privacy and Data Protection** 1. To facilitate access to Best in Slot's services, users are required to provide certain personal information pertaining to authorized representatives. This information may include full names, email addresses, contact details, and organizational affiliations. Best in Slot will electronically process this data to manage user accounts, fulfill service obligations, and ensure security against unauthorized access. 2. Best in Slot retains logs of the Client’s API calls for technical security purposes, including but not limited to debugging services to address client support queries and enforcing rate-limiting measures to enhance the quality of service for all Clients. This practice serves to mitigate unauthorized access and improve the overall service experience. 3. Best in Slot reserves the right to generate aggregated statistics and conduct data analysis related to user activity. This information may be shared with undisclosed third parties as part of ongoing service improvements and enhancements. 6. **No Warranty** 1. Best in Slot provides its platform, Best in Slot.xyz, and its products "as is" and "as available." This signifies an absence of any express, implied, or statutory warranties. Best in Slot disclaims all warranties, including but not limited to, title, merchantability, fitness for a particular purpose, non-infringement, or any other type of condition or guarantee. No information, whether oral or written, provided by Best in Slot or obtained through their products, shall create or imply any warranty. 2. Best in Slot offers no guarantees regarding the accuracy, reliability, or correctness of provided data. Best in Slot does not guarantee that its products will meet the Client’s specific needs, be constantly available, function uninterruptedly, or be entirely secure. Additionally, Best in Slot is not liable for correcting defects or errors within its products or for the presence of viruses or other harmful code. Clients acknowledge that by using Best in Slot's data, products, or services, it assumes all associated risks. The Client is solely responsible for any damage to their property, data loss, or other losses arising from such use. 3. These Terms are not intended to exclude, restrict, or modify the application of any implied warranty or guarantee mandated by law. However, to the fullest extent permitted by law, Best in Slot disclaims and excludes any and all representations, warranties, or guarantees, expressed, statutory, or implied. This includes but is not limited to, warranties of merchantability, fitness for a particular purpose, accuracy, availability of data, and effort. Best in Slot further disclaims any warranties that their services will function as described, be uninterrupted, error-free, or secure, or that Client’s use will be reliable or accurate. 7. **Limitation of Liability** 1. Best in Slot will not be held responsible for any indirect, punitive, incidental, special, consequential, or exemplary damages resulting from the Client's use or inability to use their services. This includes, but is not limited to, lost profits, personal injury, property damage, or other damages arising out of, in connection with, or relating to these Terms of Use. This applies even if the damages were foreseeable and regardless of whether Best in Slot was advised of the possibility. By using these services, the Client acknowledges and agrees to these limitations. 2. Best in Slot disclaims any liability for damages caused by hacking, tampering, or unauthorized access to their system or the Client's failure to implement proper security measures. Additionally, Best in Slot is not responsible for any issues arising from the Client's actions, including but not limited to using Best in Slot in a manner inconsistent with instructions, providing inaccurate data, or failing to implement appropriate security measures. 3. Likewise, Best in Slot is not liable for any problems caused by unauthorized access to servers, infrastructure, or data used by Best in Slot, bugs, viruses, or other harmful code transmitted through their services, or the defamatory, offensive, or illegal conduct of others. 4. These limitations of liability do not apply to the Client's own gross negligence, willful misconduct, fraud, or misrepresentation. The Client acknowledges unlimited liability for such actions. These limitations on Best in Slot's liability apply regardless of the legal theory under which the Client's claim arises, including contract, tort (including negligence), strict liability, or any other legal basis. 8. **Force Majeure** 1. Neither Best in Slot nor the Client shall be responsible for any delay or failure to perform its obligations under this Agreement (except for payment obligations) if such delay or non-performance is caused by circumstances beyond its reasonable control ("Force Majeure Event"). Force Majeure Events may include, but are not limited to: * Labor disputes, strikes, or lockouts. * Shortages of or inability to obtain energy, raw materials, or supplies. * Denial-of-service or other malicious cyberattacks. * Telecommunications failures or degradation. * Pandemics, epidemics, or public health emergencies. * Governmental orders or actions (including government-imposed travel restrictions and quarantines). * Material changes in law. * War, terrorism, riot, or acts of God. 2. The party affected by a Force Majeure Event shall promptly notify the other party in writing of the occurrence of such event and its expected duration. The affected party shall also provide updates on the status of the Force Majeure Event and its anticipated resolution as soon as practicable. 3. During the period of a Force Majeure Event, the affected party shall be excused from performing its obligations under this Agreement (except for payment obligations), to the extent that such performance is rendered impossible or commercially impracticable due to the Force Majeure Event. 4. If a Force Majeure Event prevents a party from performing a material obligation under this Agreement for a continuous period exceeding three (3) months, the non-affected party may terminate this Agreement upon written notice to the affected party. 5. Upon the cessation of the Force Majeure Event, the affected party shall promptly resume the performance of its obligations under this Terms. 9. **Term and Termination** 1. This Agreement becomes effective on the earlier of (i) the Client's first login to the Services or (ii) the Client's payment for the Services. The Agreement will continue until terminated by either party as provided herein. 2. Either party may terminate this Agreement for any reason by providing written notice to the other party at least forty-five (45) days before the desired termination date. 3. Either party may terminate this Agreement immediately upon written notice if the other party commits a material breach of this Agreement and fails to cure such breach within forty-five (45) days after receiving written notice demanding such cure. 4. Either party may terminate this Agreement immediately upon written notice if the other party suspends payments, enters into voluntary or involuntary liquidation, applies for company reorganization or bankruptcy, or is otherwise deemed insolvent. 5. In addition to the termination rights mentioned above, Best in Slot may immediately terminate this Agreement or disable the Client's access to the Services upon written notice if: * The Client or its users use the Services to commit a crime. * The Client's use of the Services causes losses or potential losses for Best in Slot or a third party. * The Client's use of the Services violates Best in Slot's security or administrative regulations. * Best in Slot has reasonable grounds to believe the Client's use of the Services violates applicable laws. * The Client breaches any material provision of this Agreement. 6. Upon termination of this Agreement: * The Client's right to use the Services will cease. * Best in Slot may permanently delete and destroy all Client data and related content. * The Client remains obligated to pay all outstanding fees through the effective date of termination. 10. **Publicity** 1. The Client hereby grants Best in Slot a non-exclusive, royalty-free, worldwide right and license to display the Client's name and logo on Best in Slot's website and any other website it maintains or owns; include a general description of the Client's relationship with Best in Slot in press releases, marketing materials, and promotional appearances; utilize the Client as a reference account upon reasonable request, including engagement with the press, analysts, and Best in Slot's existing or potential investors or customers. 2. Any use of the Client's name, logo, or description under this clause will be consistent with any branding guidelines provided by the Client and not portray the Client in a negative or disparaging light. 3. The Client retains all ownership rights to its name, logo, and other intellectual property. This clause grants Best in Slot a limited license to use these materials solely for the purposes outlined above. 11. **Applicable Law** 1. This Agreement and the relationship between Best in Slot and the Client shall be construed, interpreted, and governed by the laws of Switzerland, without regard to its conflict of laws principles. The United Nations Convention on the International Sale of Goods is expressly excluded from application to this Agreement. 2. All disputes arising out of or relating to this Agreement, including its formation, validity, interpretation, performance, breach, or termination, shall be finally settled by binding arbitration administered by the International Court of Arbitration (ICC) per its then-current arbitration rules. The arbitration shall be conducted in English. The decision of the arbitrator(s) shall be final and binding on the parties and may be enforced in any court of competent jurisdiction. 3. Notwithstanding the foregoing, Best in Slot reserves the right to pursue any claims for overdue and unpaid fees for the Services before the ordinary courts of Switzerland. 12. **Assignment** 1. Best in Slot shall be entitled, in whole or in part, to assign its rights and obligations under the Agreement to a company within the same de jure or de facto group of companies as Best in Slot or to a purchaser of all or substantially all of its stock or assets without the Client’s prior consent. 13. **Modification and Severability** 1. Best in Slot reserves the right to modify or supplement the terms and conditions of this Agreement at any time, in its sole discretion. Such modifications will be effective upon posting on Best in Slot's website (Best in Slot.xyz) or any other website it maintains or owns. The Client is responsible for periodically reviewing the terms and conditions. The Client's continued use of the Services following the posting of any modifications constitutes the Client's acceptance of the modifications. 2. If any provision of this Agreement is held to be invalid or unenforceable, such provision shall be struck and the remaining provisions shall remain in full force and effect. This Agreement shall be construed and enforced as if such invalid or unenforceable provision had never been contained herein.