简体   繁体   English

使用coinbase api将xlm从coinbase发送到恒星地址

[英]send xlm from coinbase to stellar address using coinbase api

i can send xlm from coinbase to my stellar address in their website.我可以将 xlm 从 coinbase 发送到我在他们网站上的恒星地址。 When i tried their sdk, i got error "XLM memo is required".当我尝试他们的 sdk 时,我收到错误“需要 XLM 备忘录”。 First, my stellar address doesn't have a memo, Second, I can't find the xml field in the sendmoney api document.首先,我的恒星地址没有备忘录,其次,我在 sendmoney api 文档中找不到 xml 字段。

Just use a fake memo.只需使用假备忘录。 It will work both in the Coinbase website and with their API.它可以在 Coinbase 网站和他们的 API 中使用。 The memo is an optional field used to identify a transaction being sent to exchanges, but when sending to a personal wallet, it is not required.备忘录是一个可选字段,用于识别发送到交易所的交易,但在发送到个人钱包时,它不是必需的。 However, Coinbase seems to mark it as required, and not providing it will result in transaction error.但是,Coinbase 似乎将其标记为必需,而不提供它会导致交易错误。 It's a Coinbase bug.这是一个 Coinbase 错误。

I just made a test my self, and I was able to send XML from Coinbase website to my Trezor wallet using Coinbase as memo.我刚刚自己做了一个测试,我能够使用Coinbase作为备忘录将 XML 从 Coinbase 网站发送到我的 Trezor 钱包。 The XML appears on the wallet a few minutes after.几分钟后,XML 出现在钱包上。 Test it with a small amount first if you are not sure.如果不确定,请先用少量测试。

More info about memo being optional: https://support.edge.app/support/solutions/articles/8000071636-what-is-a-stellar-xlm-memo-id-#:~:text=A%20Memo%20ID%20is%20generally,use%20when%20making%20a%20deposit .有关可选备忘录的更多信息: https://support.edge.app/support/solutions/articles/8000071636-what-is-a-stellar-xlm-memo-id-#:~:text=A%20Memo%20ID %20一般是%20,当%20制作%20a%20定金时使用%20

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM