Etch
Last updated
Last updated
Use this endpoint to create a rune as defined in https://docs.ordinals.com/runes.html
Runes are available on testnet only until block height 840000.
Currently rune etching requires inscribing a file, file can be anything and has no impact on the etched rune.
Rune names become available over time. Refer to official documentation for details.
Rune supply
must equal premine + terms.cap * terms.amount
After the order is paid an etchingTx
object will apper. The object will have a commit
and a reveal
field: commit
is the txid of the commit transaction, reveal
is the the txid of the reveal transaction
Rune orders take six blocks due to the commit-reveal protocol. After a rune is committed, the order will enter state waiting-reveal
, six blocks later when the reveal is broadcast the order will be in state completed
POST
a new rune orderPOST
https://api.ordinalsbot.com/runes/etch
Name | Type | Description |
---|---|---|
Supported file extensions may change. If you include any unsupported files order creation will fail.
Currently Supported files:
'apng', 'flac', 'gif', 'html', 'jpg','jpeg', 'mp3', 'pdf', 'png', 'svg', 'txt', 'wav', 'webm', 'webp', 'mp4', 'stl', 'glb', 'avif', 'yaml' , 'yml', 'asc', 'json', 'js', 'css', 'gz'
rune*
String
Rune name
supply*
Number
Supply of the rune token
symbol*
String
Single letter symbol for the rune
divisibility*
Number
Number of decimal points one unit of rune can be divided into.
premine*
Number
Number of rune tokens the etching mints for the etcher.
files*
Array
An array of objects that includes:
Mandatory
name:string; => name of the file including extension.
size:number; => size of the file in bytes
url:string; => file URL hosted on OrdinalsBot buckets
Optional
metadataUrl:string; => metadata json file URL hosted on OrdinalsBot buckets
metadataSize:number; => size of the metadata file in bytes
metaprotocol:string; => Metaprotocol field to be included in the inscription data
Note: you can send any dataURL text/json/image/video data in a parameter called dataURL
instead of url for files
metadataDataURL
instead of metadataUrl for metadata json files
"files" or "delegates" array is mandatory.
delegates*
Array
An array of objects that includes:
Mandatory
delegateId:string; => inscription ID of the delegate that will be inscribed.
Optional
metadataUrl:string; => metadata json file URL hosted on OrdinalsBot buckets
metadataSize:number; => size of the metadata file in bytes
metaprotocol:string; => Metaprotocol field to be included in the inscription data
receiveAddress*
String
A single Bitcoin address to receive the inscriptions for the whole order
terms
Object
Required only if premine !== supply
If supplied, supply
must equal premine + terms.cap * terms.amount
An object that includes: amount: (number, required) amount of runes each mint transaction receives cap: (number, required) allowed number of mints
offset: (object, optional) object with required fields start
and end
height: (object, optional) object with required fields start
and end
turbo
Boolean
True by default. This flag indicates whether the rune opts-in for protocol changes, whatever they might be.
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.
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!