gpt4 book ai didi

java - Ripple XRP Ledger - 无法验证交易(测试网)

转载 作者:行者123 更新时间:2023-11-30 10:12:51 26 4
gpt4 key购买 nike

我正在使用测试网来验证我的交易,交易:

{"交易":"ECAB482EB34177FA1B1E6C724F038C42308004B1F307A169FAEA88C825E11642","命令":"tx","id":0}

响应:

{id=0, status='success', errorMessage='null', result=TxResult{validated=false}}

我正在使用 websocket,方法 'tx' 进行检查。找出问题的最佳行动方案是什么,是否有办法查看未在某些测试网 validator 上验证的原因?

我连接到wss://s.altnet.rippletest.net:51233,我使用的地址是rKHDh61BpcojAoiATgJgDaVwdSJ64fGNwF。有人可以帮忙吗?

费用为 1 000 000 滴。 This is the transaction blob 1200002200000000240000000061D4838D7EA4C680000000000000000000000000005553440000000000C882FD6AB9862C4F90E57E1BA15C248CABAD5BF96840000000000F42407321033BF063167F21FF6C01045B4E2F03F519879B552D2611F0E885E01F08C88D15247446304402202E90609AAFBF4C105408CFF2377D48085879BEE3C7DE57AF125F73926284362A022002D7A487F5929F9A3E1050FC2B5D6AE1DD5384647AD1ABF6D322765F0ABE0A498114C882FD6AB9862C4F90E57E1BA15C248CABAD5BF983148DC6B336C7D3BE007297DB086B1D3483DEA24C2A

我的交易有问题吗?那为什么正确提交到网络呢?看起来它是有效的,但是为什么它没有经过验证并因此在分类账中最终确定?

Note : responses use my internal model to represent some properties, hence thats why names might be slightly different and some properties ommited.

“提交”调用的结果:

Result :SubmitResult{engineResult='tefPAST_SEQ', engineResultCode=-190, engineResultMessage='This sequence number has already passed.', txBlob='1200002200000000240000000061D4838D7EA4C680000000000000000000000000005553440000000000C882FD6AB9862C4F90E57E1BA15C248CABAD5BF96840000000000F42407321033BF063167F21FF6C01045B4E2F03F519879B552D2611F0E885E01F08C88D15247446304402202E90609AAFBF4C105408CFF2377D48085879BEE3C7DE57AF125F73926284362A022002D7A487F5929F9A3E1050FC2B5D6AE1DD5384647AD1ABF6D322765F0ABE0A498114C882FD6AB9862C4F90E57E1BA15C248CABAD5BF983148DC6B336C7D3BE007297DB086B1D3483DEA24C2A', txJson=TxJson{transactionType='Payment', account='rKHDh61BpcojAoiATgJgDaVwdSJ64fGNwF', destination='rDveJyEotoUp9jCD1Ghi2ktEBnhHiA6RBB', amount=Amount{currency='USD', value=1, issuer='rKHDh61BpcojAoiATgJgDaVwdSJ64fGNwF'}, fee='1000000', flags=0, sequence=0, signingPubKey='033BF063167F21FF6C01045B4E2F03F519879B552D2611F0E885E01F08C88D1524', txnSignature='304402202E90609AAFBF4C105408CFF2377D48085879BEE3C7DE57AF125F73926284362A022002D7A487F5929F9A3E1050FC2B5D6AE1DD5384647AD1ABF6D322765F0ABE0A49', hash='ECAB482EB34177FA1B1E6C724F038C42308004B1F307A169FAEA88C825E11642'}}

我提交了几次,所以出现了“tefPAST_SEQ”。

最佳答案

看起来您的 transaction 对象中有 sequence 字段。
根据THIS您的 sequence 可以自动填充。它可以手动设置,以防您希望通过手动递增一次提交多个交易
这使您可以控制按特定顺序执行的 transactions 的顺序。如果这无关紧要,您可以不设置 sequence

在您的情况下,您的帐户如下所示(使用 account_info ):

{
"result": {
"account_data": {
"Account": "rKHDh61BpcojAoiATgJgDaVwdSJ64fGNwF",
"Balance": "10000000000",
"Flags": 0,
"LedgerEntryType": "AccountRoot",
"OwnerCount": 0,
"PreviousTxnID": "12CA4E5AAF4198155FF3F16E53D35353B051F4AB5E01749833202339B48D187A",
"PreviousTxnLgrSeq": 11450559,
"Sequence": 1,
"index": "169B6BA91A54B2EC86EFB618995A59E76F07853BB88AF231776118339FFD7268"
},
"ledger_hash": "449E3420C6B1C6959FA794066264432EF4E98543B0C6582B00D6CD28DE33B8F8",
"ledger_index": 11523855,
"status": "success",
"validated": true
}

看到 result.account_data.Sequence1 了吗?
您看到 This sequence number has already passed 的原因是您在 transaction 中设置了 sequence=0。 (由 Result from 'submit' call : 提供)

附带说明一下,我看到您设置了 currency='USD',这意味着您必须先打开一个trust line。您的帐户当前有 0 account_lines

无论如何,祝你使用瑞波币好运;)

关于java - Ripple XRP Ledger - 无法验证交易(测试网),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51694392/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com