On this page
sendInscription
Send Inscription
Method
declare function sendInscription(
toAddress: string,
inscriptionId: string,
options?: { feeRate: number }
): Promise<string>;Params
toAddress— requiredstringthe address to sendinscriptionId— requiredstringthe id of Inscriptionoptions— optionalfeeRate— requirednumberthe network fee rate
Response
txid — string
Example
const provider = (window.$onekey && window.$onekey.btc) || window.unisat;
const address = "<RECIPIENT_BITCOIN_ADDRESS>";
const inscription = "<INSCRIPTION_ID>";
const txid = await provider.sendInscription(address, inscription);Demo
Last updated on