Skip to Content
dApp 接入
本页目录

sendInscription

发送铭文

方法

declare function sendInscription( toAddress: string, inscriptionId: string, options?: { feeRate: number } ): Promise<string>;

参数

  • toAddress — 必填 string 接收地址
  • inscriptionId — 必填 string 铭文 ID
  • options — 可选
    • feeRate — 必填 number 网络费率

响应

txid — string

示例

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);

演示

打开示例 

最后更新于