V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
paolongtao
V2EX  ›  问与答

100XRP 求解释 ripple account_tx 接口

  •  
  •   paolongtao · 2014-04-22 22:56:40 +08:00 · 3078 次点击
    这是一个创建于 3897 天前的主题,其中的信息可能已经有所发展或是发生改变。
    使用account_tx接口查询A帐号的tx记录,比如

    conn.send_msg '{"command":"account_tx","account":"rPyHFsRMTnftdsmuntEVCpVSy3MkHGLeg6", "ledger_index_min":6213271, "ledger_index_max":6213271}'

    返回的json显示,B账号给自己转了1000JPY,问题:为啥B账号的这条记录会包含在A账号的交易记录中?!谢谢!
    {"meta":{"AffectedNodes":[{"ModifiedNode":{"FinalFields":{"Account":"racJpvgLpaNQGKB8nhKd1gTEVVA1uQWRKs","BookDirectory":"92466F5377C34C5EA957034339321E217A23FA4E27A31D475B05116CB7EE3F76","BookNode":"0000000000000000","Flags":0,"OwnerNode":"0000000000000000","Sequence":137,"TakerGets":{"currency":"JPY","issuer":"rMAz5ZnK73nyNUL4foAvaxdreczCkG3vA6","value":"22043691.40499928"},"TakerPays":"31446064771710"},"LedgerEntryType":"Offer","LedgerIndex":"01BAD3BD7C95A7E5C1FBA617CC39045311DBFA9792EA6348BC5C1C7E1B613B8B","PreviousFields":{"TakerGets":{"currency":"JPY","issuer":"rMAz5ZnK73nyNUL4foAvaxdreczCkG3vA6","value":"22044689.18497746"},"TakerPays":"31447488138298"},"PreviousTxnID":"77533C211D325BCFA2CEB1BB9E5156E04AA11A272BE172EDF27EBA7B044DFA87","PreviousTxnLgrSeq":6213270}},{"DeletedNode":{"FinalFields":{"Account":"rwU3jPbsiScQg8KXZ8uiXqByCazEr4Afba","BookDirectory":"94A08655B7E5C048769B82A900C085FD1D8A28B2A9E7939C4D0E08810ADCE000","BookNode":"0000000000000000","Flags":131072,"OwnerNode":"0000000000000000","PreviousTxnID":"77533C211D325BCFA2CEB1BB9E5156E04AA11A272BE172EDF27EBA7B044DFA87","PreviousTxnLgrSeq":6213270,"Sequence":1001,"TakerGets":"14265332","TakerPays":{"currency":"CNY","issuer":"rnuF96W4SZoCJmbHYBFoJZpR8eCaxNvekK","value":"0.563480614"}},"LedgerEntryType":"Offer","LedgerIndex":"3AE54B0165273DA1F6143F27B88AE8D17236FE9F03515ABF58AA8E8E75FA2249"}},{"ModifiedNode":{"FinalFields":{"Account":"rPEZyTnSyQyXBCwMVYyaafSVPL8oMtfG6a","BookDirectory":"94A08655B7E5C048769B82A900C085FD1D8A28B2A9E7939C4D0E107F4C2EB94D","BookNode":"0000000000000000","Flags":0,"OwnerNode":"0000000000002E2B","Sequence":524287,"TakerGets":"3628683932","TakerPays":{"currency":"CNY","issuer":"rnuF96W4SZoCJmbHYBFoJZpR8eCaxNvekK","value":"143.651925802"}},"LedgerEntryType":"Offer","LedgerIndex":"59AFC7CBA456C8C397FD5DB3836B5AF026311C9102F0CF4890EC7393FC4321D9","PreviousFields":{"TakerGets":"5052050520","TakerPays":{"currency":"CNY","issuer":"rnuF96W4SZoCJmbHYBFoJZpR8eCaxNvekK","value":"200"}},"PreviousTxnID":"7D96188CA886BBB30A728E26386E0B5388714624873DCEAF387AB98F75351621","PreviousTxnLgrSeq":6213193}},{"ModifiedNode":{"FinalFields":{"Flags":0,"Owner":"rwU3jPbsiScQg8KXZ8uiXqByCazEr4Afba","RootIndex":"69A726637AA94F69B9C34D43EBB46433E75B452FD6E36E552BAE26C34F1FF8FC"},"LedgerEntryType":"DirectoryNode","LedgerIndex":"69A726637AA94F69B9C34D43EBB46433E75B452FD6E36E552BAE26C34F1FF8FC"}},{"ModifiedNode":{"FinalFields":{"Balance":{"currency":"JPY","issuer":"rrrrrrrrrrrrrrrrrrrrBZbvji","value":"3058259.736502833"},"Flags":1114112,"HighLimit":{"currency":"JPY","issuer":"rMAz5ZnK73nyNUL4foAvaxdreczCkG3vA6","value":"0"},"HighNode":"0000000000000000","LowLimit":{"currency":"JPY","issuer":"racJpvgLpaNQGKB8nhKd1gTEVVA1uQWRKs","value":"10000000"},"LowNode":"0000000000000000"},"LedgerEntryType":"RippleState","LedgerIndex":"73DB3FF0D87377B82D7946FA4B1FDB1FB5DD92D3C664666CE5B49A2922761CAF","PreviousFields":{"Balance":{"currency":"JPY","issuer":"rrrrrrrrrrrrrrrrrrrrBZbvji","value":"3059257.516481021"}},"PreviousTxnID":"77533C211D325BCFA2CEB1BB9E5156E04AA11A272BE172EDF27EBA7B044DFA87","PreviousTxnLgrSeq":6213270}},{"ModifiedNode":{"FinalFields":{"Account":"rwU3jPbsiScQg8KXZ8uiXqByCazEr4Afba","Balance":"78268841160","Flags":0,"OwnerCount":7,"Sequence":1002},"LedgerEntryType":"AccountRoot","LedgerIndex":"88119C2586D5A7BFC3EA5041C43C11AA5B64CD82F6A35AA7D442BD316BF32FBF","PreviousFields":{"OwnerCount":8},"PreviousTxnID":"77533C211D325BCFA2CEB1BB9E5156E04AA11A272BE172EDF27EBA7B044DFA87","PreviousTxnLgrSeq":6213270}},{"ModifiedNode":{"FinalFields":{"Balance":{"currency":"JPY","issuer":"rrrrrrrrrrrrrrrrrrrrBZbvji","value":"777835.1072104559"},"Flags":1114112,"HighLimit":{"currency":"JPY","issuer":"rMAz5ZnK73nyNUL4foAvaxdreczCkG3vA6","value":"0"},"HighNode":"000000000000000C","LowLimit":{"currency":"JPY","issuer":"rGsEuH6KAitvAHSMmPpysHNVvaVrnEeYg7","value":"10000000"},"LowNode":"0000000000000003"},"LedgerEntryType":"RippleState","LedgerIndex":"88EB13F6A878B739B1862DE08402401C3AA2FD7C31EDFBF24DF3A8C1D9AFE2E8","PreviousFields":{"Balance":{"currency":"JPY","issuer":"rrrrrrrrrrrrrrrrrrrrBZbvji","value":"776837.3272322679"}},"PreviousTxnID":"77533C211D325BCFA2CEB1BB9E5156E04AA11A272BE172EDF27EBA7B044DFA87","PreviousTxnLgrSeq":6213270}},{"DeletedNode":{"FinalFields":{"ExchangeRate":"4D0E08810ADCE000","Flags":0,"RootIndex":"94A08655B7E5C048769B82A900C085FD1D8A28B2A9E7939C4D0E08810ADCE000","TakerGetsCurrency":"0000000000000000000000000000000000000000","TakerGetsIssuer":"0000000000000000000000000000000000000000","TakerPaysCurrency":"000000000000000000000000434E590000000000","TakerPaysIssuer":"35DD7DF146893456296BF4061FBE68735D28F328"},"LedgerEntryType":"DirectoryNode","LedgerIndex":"94A08655B7E5C048769B82A900C085FD1D8A28B2A9E7939C4D0E08810ADCE000"}},{"DeletedNode":{"FinalFields":{"ExchangeRate":"4D0E0D0D32163000","Flags":0,"RootIndex":"94A08655B7E5C048769B82A900C085FD1D8A28B2A9E7939C4D0E0D0D32163000","TakerGetsCurrency":"0000000000000000000000000000000000000000","TakerGetsIssuer":"0000000000000000000000000000000000000000","TakerPaysCurrency":"000000000000000000000000434E590000000000","TakerPaysIssuer":"35DD7DF146893456296BF4061FBE68735D28F328"},"LedgerEntryType":"DirectoryNode","LedgerIndex":"94A08655B7E5C048769B82A900C085FD1D8A28B2A9E7939C4D0E0D0D32163000"}},{"ModifiedNode":{"FinalFields":{"Balance":{"currency":"CNY","issuer":"rrrrrrrrrrrrrrrrrrrrBZbvji","value":"-56.348074198"},"Flags":2228224,"HighLimit":{"currency":"CNY","issuer":"rPEZyTnSyQyXBCwMVYyaafSVPL8oMtfG6a","value":"2000"},"HighNode":"0000000000000000","LowLimit":{"currency":"CNY","issuer":"rnuF96W4SZoCJmbHYBFoJZpR8eCaxNvekK","value":"0"},"LowNode":"00000000000000B5"},"LedgerEntryType":"RippleState","LedgerIndex":"958C3C8668B2B1FBA392E4AC16828358A60AB34FE41332DD5EAABAF1C38E6469","PreviousFields":{"Balance":{"currency":"CNY","issuer":"rrrrrrrrrrrrrrrrrrrrBZbvji","value":"0"}},"PreviousTxnID":"7AFE4BF610C7766E27489290E3BD15AFB55229D1D92596A547C402F1F92F77C7","PreviousTxnLgrSeq":6212517}},{"ModifiedNode":{"FinalFields":{"Account":"rPEZyTnSyQyXBCwMVYyaafSVPL8oMtfG6a","Balance":"233818418259","Flags":0,"OwnerCount":76,"Sequence":524311},"LedgerEntryType":"AccountRoot","LedgerIndex":"99E731A23496C471328C733B7AEFBD3E78A533B886A9CAE90B1554561EBF82C3","PreviousFields":{"Balance":"235241784847"},"PreviousTxnID":"18D3B9E29A3504E23A807486357E98D4502421DA5C250AFE6523157E81F65713","PreviousTxnLgrSeq":6213269}},{"ModifiedNode":{"FinalFields":{"Balance":{"currency":"CNY","issuer":"rrrrrrrrrrrrrrrrrrrrBZbvji","value":"-30499.12409021903"},"Flags":2228224,"HighLimit":{"currency":"CNY","issuer":"rGsEuH6KAitvAHSMmPpysHNVvaVrnEeYg7","value":"100000"},"HighNode":"0000000000000000","LowLimit":{"currency":"CNY","issuer":"rnuF96W4SZoCJmbHYBFoJZpR8eCaxNvekK","value":"0"},"LowNode":"00000000000000B7"},"LedgerEntryType":"RippleState","LedgerIndex":"A888FD0984E605E178E56F6F983ADAFDFBF5F7ED4C1755DF6EAB3A667A5A1A20","PreviousFields":{"Balance":{"currency":"CNY","issuer":"rrrrrrrrrrrrrrrrrrrrBZbvji","value":"-30555.47216441703"}},"PreviousTxnID":"77533C211D325BCFA2CEB1BB9E5156E04AA11A272BE172EDF27EBA7B044DFA87","PreviousTxnLgrSeq":6213270}},{"ModifiedNode":{"FinalFields":{"Flags":0,"Owner":"rPyHFsRMTnftdsmuntEVCpVSy3MkHGLeg6","RootIndex":"B74A4B5DD369C7518BA590BDCB49A1202DD95BD4A18516A5DC0BF81D1B33EED5"},"LedgerEntryType":"DirectoryNode","LedgerIndex":"B74A4B5DD369C7518BA590BDCB49A1202DD95BD4A18516A5DC0BF81D1B33EED5"}},{"DeletedNode":{"FinalFields":{"Account":"rPyHFsRMTnftdsmuntEVCpVSy3MkHGLeg6","BookDirectory":"94A08655B7E5C048769B82A900C085FD1D8A28B2A9E7939C4D0E0D0D32163000","BookNode":"0000000000000000","Flags":131072,"OwnerNode":"0000000000000000","PreviousTxnID":"E28F68A270EE830BA72CB960617472DA53CBDF09F96BD3E117EC3020788C4983","PreviousTxnLgrSeq":6213246,"Sequence":935,"TakerGets":"720399428","TakerPays":{"currency":"CNY","issuer":"rnuF96W4SZoCJmbHYBFoJZpR8eCaxNvekK","value":"28.491797404875"}},"LedgerEntryType":"Offer","LedgerIndex":"C439C51E4633A636FCB477DC948C6B5510DA9E016EFE4409F1B3DDC6FAE058D1"}},{"ModifiedNode":{"FinalFields":{"Account":"rGsEuH6KAitvAHSMmPpysHNVvaVrnEeYg7","Balance":"6430207753","Flags":0,"OwnerCount":9,"Sequence":8703},"LedgerEntryType":"AccountRoot","LedgerIndex":"D6AD3EEA507680A2B29003585DA6BA5B56E8008D380B614BBE901D3D485C3967","PreviousFields":{"Balance":"6430207763","Sequence":8702},"PreviousTxnID":"77533C211D325BCFA2CEB1BB9E5156E04AA11A272BE172EDF27EBA7B044DFA87","PreviousTxnLgrSeq":6213270}},{"ModifiedNode":{"FinalFields":{"Account":"rPyHFsRMTnftdsmuntEVCpVSy3MkHGLeg6","Balance":"22304739522","Flags":0,"OwnerCount":13,"Sequence":936},"LedgerEntryType":"AccountRoot","LedgerIndex":"DFB5F5D022A7BF73FD1DA02D956368622254112A9443151639CCE2C3FACC28AE","PreviousFields":{"OwnerCount":14},"PreviousTxnID":"E28F68A270EE830BA72CB960617472DA53CBDF09F96BD3E117EC3020788C4983","PreviousTxnLgrSeq":6213246}},{"ModifiedNode":{"FinalFields":{"Account":"racJpvgLpaNQGKB8nhKd1gTEVVA1uQWRKs","Balance":"3126704918155","Flags":0,"OwnerCount":4,"Sequence":138},"LedgerEntryType":"AccountRoot","LedgerIndex":"FBB0B2D07AAFB7E1C5371307A77830BD60C3E832AAD793E6C29A939859EC410E","PreviousFields":{"Balance":"3125281551567"},"PreviousTxnID":"77533C211D325BCFA2CEB1BB9E5156E04AA11A272BE172EDF27EBA7B044DFA87","PreviousTxnLgrSeq":6213270}}],"DeliveredAmount":{"currency":"JPY","issuer":"rMAz5ZnK73nyNUL4foAvaxdreczCkG3vA6","value":"997.7799781880148"},"TransactionIndex":0,"TransactionResult":"tesSUCCESS"},"tx":{"Account":"rGsEuH6KAitvAHSMmPpysHNVvaVrnEeYg7","Amount":{"currency":"JPY","issuer":"rMAz5ZnK73nyNUL4foAvaxdreczCkG3vA6","value":"1000"},"Destination":"rGsEuH6KAitvAHSMmPpysHNVvaVrnEeYg7","Fee":"10","Flags":131072,"Paths":[[{"currency":"XRP","type":16,"type_hex":"0000000000000010"},{"currency":"JPY","issuer":"rMAz5ZnK73nyNUL4foAvaxdreczCkG3vA6","type":48,"type_hex":"0000000000000030"},{"account":"rMAz5ZnK73nyNUL4foAvaxdreczCkG3vA6","type":1,"type_hex":"0000000000000001"}],[{"currency":"JPY","issuer":"rMAz5ZnK73nyNUL4foAvaxdreczCkG3vA6","type":48,"type_hex":"0000000000000030"},{"account":"rMAz5ZnK73nyNUL4foAvaxdreczCkG3vA6","type":1,"type_hex":"0000000000000001"}],[{"account":"rse1JsFXVixB1nXtP415DJvq23GKPHuFzy","type":1,"type_hex":"0000000000000001"},{"account":"razqQKzJRdB4UxFPWf5NEpEG3WMkmwgcXA","type":1,"type_hex":"0000000000000001"},{"currency":"JPY","issuer":"rMAz5ZnK73nyNUL4foAvaxdreczCkG3vA6","type":48,"type_hex":"0000000000000030"},{"account":"rMAz5ZnK73nyNUL4foAvaxdreczCkG3vA6","type":1,"type_hex":"0000000000000001"}],[{"account":"rEcnyLQD7LXPqTTRG3cXgzcK1C3TDkuUWb","type":1,"type_hex":"0000000000000001"},{"account":"razqQKzJRdB4UxFPWf5NEpEG3WMkmwgcXA","type":1,"type_hex":"0000000000000001"},{"currency":"JPY","issuer":"rMAz5ZnK73nyNUL4foAvaxdreczCkG3vA6","type":48,"type_hex":"0000000000000030"},{"account":"rMAz5ZnK73nyNUL4foAvaxdreczCkG3vA6","type":1,"type_hex":"0000000000000001"}]],"SendMax":{"currency":"CNY","issuer":"rnuF96W4SZoCJmbHYBFoJZpR8eCaxNvekK","value":"56.348074198"},"Sequence":8702,"SigningPubKey":"03A1D15A6A5D5BFB767D0F8CC912C862245E2B91D47A1E16422BD288F4A5E1AA3E","TransactionType":"Payment","TxnSignature":"3044022038EC3044A1CE313A13394555A39032C805C9ABF9E6A1BD4D80F481A9901F0B2C022046D65C9C3ABD64282198D445F9711D8E7C71661ADE0C3CACDC3CAFD68EBBDCA3","date":451464070,"hash":"51C2847E52643EF0935867AEBEC1F52F34F40DBABC8D8828B8555CADEF759614","inLedger":6213271,"ledger_index":6213271},"validated":true}
    2 条回复    1970-01-01 08:00:00 +08:00
    paolongtao
        1
    paolongtao  
    OP
       2014-04-24 22:57:28 +08:00
    laomo
        2
    laomo  
       2014-04-25 10:23:05 +08:00
    @paolongtao 哈哈,这么客气。。问题解决了就好
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3585 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 04:50 · PVG 12:50 · LAX 20:50 · JFK 23:50
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.