Skip to content

getRune

getRune(config, runeId): Promise<GetRuneResponse>

Gets a rune by its ID

Import

ts
import { getRune } from "@midl-xyz/midl-js-core";

Example

ts
const rune = await getRune(config, "1:1");
console.log(rune);

Parameters

NameTypeDescription
configConfigThe configuration object
runeIdstringThe rune ID

Returns

Promise<GetRuneResponse>

The rune object

GetRuneResponse

NameTypeDescription
divisibilitynumberThe rune divisibility
idstringThe rune ID
locationobject
location.block_hashstring
location.block_heightnumber
location.timestampnumber
location.tx_idstring
location.tx_indexnumber
mint_termsobject
mint_terms.amountnumber | null
mint_terms.capnumber | null
mint_terms.height_endnumber | null
mint_terms.height_startnumber | null
mint_terms.offset_endnumber | null
mint_terms.offset_startnumber | null
namestringThe rune name
numbernumberThe rune number
spaced_namestringThe rune spaced name
supplyobject
supply.burnedstring
supply.currentstring
supply.mint_percentagestring
supply.mintableboolean
supply.mintedstring
supply.preminestring
supply.total_burnsstring
supply.total_mintsstring
symbolstringThe rune symbol
turboboolean