Create a Collection Order
Use this endpoint to create an inscription order that will inscribe a file from an existing collection.
You need an API KEY to create collection orders. You can reach out to us via discord to get one.
API KEYs are separate for testnet and mainnet.
The /collectionorder endpoint has a rate limit of maximum 2 requests every 10 seconds.
If pricing of the collection is in runes then
charge
will be null. Instead,tokenPayCharge
will be available. User needs to sendtokenPayCharge.feeCharge.amount
of BTC totokenPayCharge.feeCharge.address
andtokenPayCharge.tokenCharge.amount
of tokens totokenPayCharge.tokenCharge.address
Create Collection Order
POST
https://api.ordinalsbot.com/collectionorder
Headers
Name | Type | Description |
---|---|---|
x-api-key* | String | API Key Required if no turnstile token is present. |
Request Body
Name | Type | Description |
---|---|---|
collection* | Object | Object including id: Collection slug to be inscribed count: number of inscriptions being ordered. |
receiveAddress | String | Bitcoin address to receive the inscriptions for the whole order |
token* | String | Cloudflare turnstile token Required if no x-api-key header is present. |
rareSats | String | One of following options: block9 | block78 | pizza | uncommon | black | vintage | random Check |
fee* | Number | Mining fee to be paid for this collection inscription (sats/vB) |
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" parameter. Note: additionalFee is added PER FILE! |
referral | String | Referral code to earn up to %15 of the order service fee. |
timeout | Number | Order timeout in minutes. Must be a multiple of 10. Generated payment invoice will be valid for this duration only. Payments that are sent after this will not be processed. Refrain from using too short timeout values and instead use #cancel-an-order (default=4320) |
webhookUrl | String | webhook url to receive a POST payload for order updates Refer to Webhooks for format of the webhook payload |
Last updated