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

getInscriptions

現在のアカウントのインスクリプションを一覧表示します。

メソッド

declare function getInscriptions(cursor?: number, size?: number): Promise<InscriptionResponse>;

パラメーター

  • cursor — 任意 number 開始インデックス。デフォルトは 0
  • size — 任意 number 取得件数。デフォルトは 20

レスポンス

export type InscriptionResponse = { total: number; list: InscriptionInfo[]; }; export type InscriptionInfo = { inscriptionId: string; inscriptionNumber: number; address: string; outputValue: number; preview: string; content: string; contentLength: number; contentType: string; timestamp: number; genesisTransaction: string; location: string; output: string; offset: number; };

例

const provider = (window.$onekey && window.$onekey.btc) || window.unisat; const inscriptions = await provider.getInscriptions();

デモ

例を開く 

最終更新日