本页目录
inscribeTransfer (已弃用)
用于创建代币转账铭文的旧版方法。本页为已有集成保留,不建议在新集成中使用。
方法
declare function inscribeTransfer(
ticker: string,
amount: string,
): Promise<string>;参数
ticker— 必填string,代币代码。amount— 必填string。
响应
txid — string
示例
const provider = (window.$onekey && window.$onekey.btc) || window.unisat;
const ticker = "<TOKEN_TICKER>";
const amount = "100"
const txid = await provider.inscribeTransfer(ticker, amount);最后更新于