sendInscription

Send Inscription

Method

async function sendInscription(
    toAddress: string, 
    inscriptionId: string, 
    options?: { feeRate: number }
): string

Params

  • toAddressrequired string the address to send

  • inscriptionIdrequired string the id of Inscription

  • optionsoptional

    • feeRaterequired number the network fee rate

Response

txidstring

Example

const provider = (window.$onekey && window.$onekey.btc) || window.unisat;

const address = "010203"
const inscription = "010203"
const txid = async provider.sendInscription(address, inscription);

Demo

Last updated