编辑:
我已经创建了一个包,现在在GNU公共许可证下在GitHub上发布.非常感谢你们对这个问题的帮助!
使用这部分脚本:
line = { TransactionType: "Payment",
Account: #{xagate},
Destination: #{destinationAddress},
Amount: {
currency: "TST",
value: "#{destAmount}",
issuer: "rKYHqy2QWbf5WThp7vdJAxTR3WBHKDh9xv"
}
Run Code Online (Sandbox Code Playgroud)
我收到此错误:
syntax error, unexpected tLABEL
Destination: #{destinationAddress},
^
Run Code Online (Sandbox Code Playgroud)
导致此语法错误的原因是什么?下面接受的答案解释了如何解决此错误.至于Ripple JSON,我发现波纹服务器软件的err29是由于缺少Fee和Sequence字段而导致的.如果您也遇到此问题,则在此主题中正在调查答案:https: //forum.ripple.com/viewtopic.php?f = 2&t = 15599