Skip to Content
dApps
このページの内容

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

デモ

例を開く 

最終更新日