runes_estimateMint
Use the runes_estimateMint
method to estimate the cost of a Rune mint order for your user, before executing it.
You can specify the characteristics of the Runes mint order you wish to estimate, by passing an EstimateMintParams
object to the method, with the below properties:
runeName
a string representing the name of the Rune to mint
repeats
a number representing the number of mint transactions to create. Every mint transaction creates a fixed amount of new units of a rune, you can use repeats
to mint a multiple of that amount.
âšī¸ Note that there is a 4000 repeat limit per order
destinationAddress
The Bitcoin address to which the minted runes should be allocated. âšī¸If minting Runes for your user, you can fetch their wallet addresses with the getAccounts method. â ī¸ We recommend managing runes holdings on taproot/ordinal addresses.
feeRate
a number representing the desired fee rate to set for the Rune mint transaction(s), in sats per vbytes
appServiceFee
(âšī¸ optional)
a number representing the sats value of the fee to charge your user for your service.
appServiceFeeAddress
(âšī¸ optional)
a string representing the Bitcoin address which will receive the appServiceFee
, if a fee is specified
network
(âšī¸ optional)
a string representing the Bitcoin network to use for the mint runes transactions: 'Mainnet'
or 'Testnet'
The runes_estimateMint
method will not trigger any mint operation or prompt your user to sign any transaction. It will return an EstimateMintResponse
object, intended for you and your user to anticipate the mint costs and their breakdown:
totalSize
a number representing the total size of the mint transaction(s), in vbytes
totalCost
a number representing the total cost of the mint transaction(s) in sats
costBreakdown
An object representing the cost breakdown of the mint transaction(s), with the below properties:
postage
a number representing the total size of the Rune UTXOs minted, in satsnetworkFee
a number representing the total network fee for the mint transaction(s), in satsserviceFee
a number representing the total Sats Connect fee for processing the mint order, in satsappServiceFee
a number representing the optional service fee your app charges the user for the mint order
See the runes_mint method if you wish to execute a Runes mint order after estimating its cost.
Last updated