我正在使用Coinbase API,并尝试将XRP从我的Coinbase钱包发送到另一个帐户(Coinbase之外)。Coinbase send API (https://developers.coinbase.com/api/v2#send-money)允许我设置目标地址,但无法设置目标标签,这是XRP传输所必需的。
如何设置目的地标签?
发布于 2019-03-12 11:15:05
Coinbase Pro API有针对其平台的文档,其中暗示了一种可能的解决方案(https://docs.pro.coinbase.com/?r=1#crypto)。感兴趣的两个参数是destination_tag和no_destination_tag。因此,如果你想使用Python发送XRP,你可能会说:
client.send_money(account_id = <account-id>,
to = <destination-address>,
amount = <amount>,
currency = 'XRP',
destination_tag = <destination-tag>,
no_destination_tag = False)如果不想使用destination标记,只需省略destination_tag参数并将no_destination_tag设置为True。
发布于 2020-07-28 13:00:55
这篇文章来得太晚了,但我想这对其他偶然发现这个帖子的人来说是有用的。
我刚刚测试了将deposit_tag放入到Coinbase的API (而不是Coinbase Pro)的POST请求中,它成功地通过了存款标记。
如果不指定存款标签,Coinbase也不允许发送XRP,这很方便。
https://stackoverflow.com/questions/55054668
复制相似问题