sendInscription
Send Inscription
Method
async function sendInscription(
toAddress: string,
inscriptionId: string,
options?: { feeRate: number }
): string
Params
toAddress
— requiredstring
the address to sendinscriptionId
— requiredstring
the id of Inscriptionoptions
— optionalfeeRate
— requirednumber
the network fee rate
Response
txid
— string
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
Was this helpful?