client = createArksatClient(provider)。示例变量由应用提供。
sendToAddress
amount 为 sats 整数。操作会请求用户确认。 参数sendAsset
assets 中每项含 assetId 和最小单位字符串 amount;bitcoinAmount 为 sats。 参数sendSwapFunding
面向兑换协议集成的出资方法。需要地址、资产、BTC 数量和协议扩展,不会自动为网站获取报价。Swap 当前仅在测试网开放。 参数兑换出资参数
发送失败或超时后先查询记录,避免重复付款。发送接入指南。
错误处理 · 完整 TypeScript 类型