sendInscription
Send Inscription
Method
async function sendInscription(
toAddress: string,
inscriptionId: string,
options?: { feeRate: number }
): stringParams
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 = "010203"
const inscription = "010203"
const txid = async provider.sendInscription(address, inscription);Demo
Last updated
Was this helpful?