ordinalsbot.com API Documentation
Create and Track ordinal inscriptions programmatically, pay with Lightning or onchain BTC.
Last updated
Create and Track ordinal inscriptions programmatically, pay with Lightning or onchain BTC.
Last updated
Instructions on how to use API to generate inscription orders from anywhere, pay with Lightning or onchain Bitcoin and receive the inscriptions to the provided address.
Contact
OrdinalsBot Discord:
Twitter:
API root is at:
You can use to check for API status and availability.
API root is currently in the process of being migrated to . Please double check API root for a particular endpoint.
This service takes some files as input, inscribes them on the bitcoin blockchain as explained on and sends the inscribed UTXO to the provided bitcoin address.
No guarantees are made on the quality or speed of the inscription.
You can use our instance for testing the API.
Signet API root is at and Web UI is at
to check for signet API status and availability.
You can download a signet wallet at and get signet coins from faucets like .
All endpoints except text and image hash search will work on the signet instance. Just replace the API root with signet endpoint.
Use this endpoint to check the price (in satoshis) that user will need to pay to use services offered by this API.
GET
https://ordinalsbot.com/api/price
This endpoint will calculate all fees related to the operation and return the total as well as the breakdown.
fee*
Number
Miner fee that will be paid while inscribing the ordinal in sats/byte. (default=2 sats/byte)
count
Number
Number of files to be inscribed (default=1)
size*
Number
Total size of all files to be inscribed in bytes
rareSats
String
Inscribe on a rare, exotic, early sat. Options: 2009 | 2010 | 2011 | block78 | pizza | uncommon | random
(default=random)
Use this endpoint to create an inscription order that will be processed once the related invoice is paid.
There's currently a limit of 10000 files per order.
Make sure images are optimized size (preferably converted to .webp
) and uploaded to ordinalsbot bucket in an accessible location.
if you choose to send file contents as base64 dataURL instead of url, there's a limit of 50MB per API call.
POST
https://api2.ordinalsbot.com/order
Remember to include headers with your POST request:
headers: { 'Accept': 'application/json', 'Content-Type': 'application/json' }
files*
Array
An array of objects that includes:
name:string; => name of the file including extension.
size:number; => size of the file in bytes
url:string; => publicly accessible image URL
Note: you can send base64 encoded text/image/video data in a parameter called dataURL
instead of url
fee
Number
Miner fee that will be paid while inscribing the ordinals in sats/byte. (default=2 sats/byte)
referral
String
referral code to earn up to %15 of the order service fee.
receiveAddress*
String|Array
A single Bitcoin address to receive the inscriptions for the whole order OR An array of strings of Bitcoin addresses to receive each corresponding item from files array.
lowPostage
Boolean
Inscribe file with minimum postage (padding) 546 sats instead of the standard 10,000 sats.
(default=false)
rareSats
String
Inscribe on a rare, exotic or early sat. Options: 2009 | 2010 | 2011 | block78 | pizza | uncommon | random
Check /inventory
endpoint for all available options and their current availability.
webhookUrl
String
webhook url to receive a POST payload for order updates with below object: {
id: xxx, => orderId index: 0, => index of file in the original order request file array file: {...} => file object for the update tx: {reveal, inscription, commit} => inscription related transaction data
}
additionalFee
Number
Amount of satoshis to charge extra for this order that will be added to "referral" account.
Needs to be used together with "referral"
Supported file extensions may change. If you include any unsupported files order creation will fail.
Currently Supported files:
Use this endpoint to check the status of an order
GET
https://api2.ordinalsbot.com/order
Check an inscription order status.
id*
String
Order ID returned by the `/bulkorder` endpoint
Use this endpoint to create a collection that other users will be able to create orders on and inscribe on demand.
All collections must be approved by the ordinalsbot.com team before they go live.
Collections with over 1000 items need to be manually uploaded.
POST
https://ordinalsbot.com/api/collectioncreate
files
Object
An array of objects that includes:
name:string; => name of the file including extension.
size:number; => size of the file in bytes
url:string; => publicly accessible image URL
You can also provide files manually after contacting us.
fee
Number
Miner fee that will be paid while inscribing the ordinals in sats/byte. (default=2 sats/byte)
receiveAddress
String
Bitcoin address to receive payouts from inscriptions
id*
String
URL safe unique collection slug.
Will be used as mint URL.
name*
String
Collection Display Name
description*
String
Collection description
creator*
String
Collection creator
price*
Number
Inscription price per file (for collection creator)
set to 0 for free mints
serviceFee
Number
Inscription service fee per file taken by ordinalsbot.com
min: 27000 (sats)
totalCount*
Number
Max supply of the collection.
Use this endpoint to create an inscription order that will inscribe a file from an existing collection.
POST
https://ordinalsbot.com/api/collectionorder
receiveAddress
String
Bitcoin address to receive the inscriptions for the whole order
collection*
Object
Object including
id: Collection slug to be inscribed
count: number of inscriptions being ordered.
rareSats (optional): 2009 | 2010 | 2011 | block78 | pizza | uncommon | random
Check /inventory
endpoint for all available options and their current availability.
Use this endpoint to create an inscription order that will inscribe some text string.
POST
https://ordinalsbot.com/api/textorder
texts*
Array
An array of strings to be inscribed
fee
Number
Miner fee that will be paid while inscribing the ordinals in sats/byte. (default=2 sats/byte)
referral
String
referral code to earn up to %15 of the order service fee.
receiveAddress*
String
Bitcoin address to receive the inscriptions for the whole order
Use this endpoint to check if a certain text string was used in an inscription before.
GET
https://api2.ordinalsbot.com/search
Check for previous occurrences of a text in inscriptions. Results array will be sorted by ascending block height.
text*
String
Text string to search for e.g. zzz.sats or "satoshi"
Use this endpoint to check if a certain image was inscribed before.
GET
https://api2.ordinalsbot.com/search
Check for previous occurrences of an image in inscriptions. Results array will be sorted by ascending block height.
hash*
String
sha256 hash of an image buffer in hex
Use this endpoint to check any rare, special, vintage sats available to be used in individual or collection inscriptions.
GET
https://ordinalsbot.com/api/inventory
Check for available special sats that are available to be inscribed on. This endpoint will return their available count, price and max file size that can be handled.
Each property can be used as input when creating inscription orders, for instance: rareSats: block9
Remember you can always earn referral commissions without using the API.
Use this endpoint to check earnings for your referrals code
GET
https://ordinalsbot.com/api/referrals
Check referral earning status.
Your referral earning is calculated as
paidCount * serviceFee profit * 0.15
(e.g. 100 * 15000 (sats) * %15 commission)
referral*
String
Your referral code
address*
String
Your bitcoin address that you've set for payouts
Use this endpoint to set a unique referral code for yourself.
POST
https://ordinalsbot.com/api/referrals
Use this endpoint to set your referral code and payout address. Your address allows you to query your referral earnings.
referral*
String
Your unique referral code
address*
String
Your bitcoin address that you want to receive payouts to.
Get in touch with us on .
Just share your referral link with your community, visitors or followers and you'll automatically earn referral commissions from the inscriptions they make.
Get in touch for any questions regarding referral setup on satoshibles discord: