By:ISME}'-H'Content-Type:application/json'
{
"id":"0",
"jsonrpc":"2.0",
"result":{
"in":[{
"address":"77Vx9cs1VPicFndSVgYUvTdLCJEZw9h81hXLMYsjBCXSJfUehLa9TDW3Ffh45SQa7xb6dUs18mpNxfUhQGqfwXPSMrvKhVp",
"amount":200000000000,
"confirmations":1,
"double_spend_seen":false,
"fee":21650200000,
"height":153624,
"note":"",
"payment_id":"0000000000000000",
"subaddr_index":{
"major":1,
"minor":0
},
"suggested_confirmations_threshold":1,
"timestamp":1535918400,
"txid":"c36258a276018c3a4bc1f195a7fb530f50cd63a4fa765fb7c6f7f49fc051762a",
"type":"in",
"unlock_time":0
}]
}
}
get_payments
Getalistofincomingpaymentsusingagivenpaymentid.
Alias:?None.
Inputs:
payment_id?-string;??PaymentIDusedtofindthepayments(16charactershex).
Outputs:
payments?-listof:
payment_id?-string;???PaymentIDmatchingtheinputparameter.
tx_hash?-string;???TransactionhashusedasthetransactionID.
amount?-unsigned???int;Amountforthispayment.
block_height?-???unsignedint;Heightoftheblockthatfirstconfirmedthispayment.
unlock_time?-unsignedint;Time(inblockheight)until???thispaymentissafetospend.
subaddr_index?-???subaddressindex:
major?-unsigned???int;Accountindexforthesubaddress.
minor?-???unsignedint;Indexofthesubaddressintheaccount.
address?-string;???Addressreceivingthepayment;Base58representationofthepublickeys.
Example:
$curl-XPOSThttp://127.0.0.1:18082/json_rpc-d'{"jsonrpc":"2.0","id":"0","method":"get_payments","params":{"payment_id":"60900e5603bf96e3"}}'-H'Content-Type:application/json'
{
"id":"0",
"jsonrpc":"2.0",
"result":{
"payments":[{
"address":"55LTR8KniP4LQGJSPtbYDacR7dz8RBFnsfAKMaMuwUNYX6aQbBcovzDPyrQF9KXF9tVU6Xk3K8no1BywnJX6GvZX8yJsXvt",
"amount":1000000000000,
"block_height":127606,
"payment_id":"60900e5603bf96e3",
"subaddr_index":{
"major":0,
"minor":0
},
"tx_hash":"3292e83ad28fc1cc7bc26dbd38862308f4588680fbf93eae3e803cddd1bd614f",
"unlock_time":0
}]
}
}
get_bulk_payments
Getalistofincomingpaymentsusingagivenpaymentid,oralistofpaymentsids,fromagivenheight.Thismethodisthepreferredmethodover?get_paymentsbecauseithasthesamefunctionalitybutismoreextendable.EitherisfineforlookinguptransactionsbyasinglepaymentID.
Alias:?None.
Inputs:
payment_ids?-array??of:string;PaymentIDsusedtofindthepayments(16charactershex).
min_block_height?-unsigned??int;Theblockheightatwhichtostartlookingforpayments.
Outputs:
payments?-listof:
payment_id?-string;???PaymentIDmatchingoneoftheinputIDs.
tx_hash?-string;???TransactionhashusedasthetransactionID.
amount?-???unsignedint;Amountforthispayment.
block_height?-???unsignedint;Heightoftheblockthatfirstconfirmedthispayment.
unlock_time?-unsignedint;Time(inblockheight)until???thispaymentissafetospend.
subaddr_index?-subaddress???index:
major?-???unsignedint;Accountindexforthesubaddress.
minor?-???unsignedint;Indexofthesubaddressintheaccount.
address?-string;???Addressreceivingthepayment;Base58representationofthepublickeys.
Example:
$curl-XPOSThttp://127.0.0.1:18082/json_rpc-d'{"jsonrpc":"2.0","id":"0","method":"get_bulk_payments","params":{"payment_ids":,"min_block_height":"120000"}}'-H'Content-Type:application/json'
{
"id":"0",
"jsonrpc":"2.0",
"result":{
"payments":[{
"address":"55LTR8KniP4LQGJSPtbYDacR7dz8RBFnsfAKMaMuwUNYX6aQbBcovzDPyrQF9KXF9tVU6Xk3K8no1BywnJX6GvZX8yJsXvt",
"amount":1000000000000,
"block_height":127606,
"payment_id":"60900e5603bf96e3",
"subaddr_index":{
"major":0,
"minor":0
},
"tx_hash":"3292e83ad28fc1cc7bc26dbd38862308f4588680fbf93eae3e803cddd1bd614f",
"unlock_time":0
}]
}
}
get_transfer_by_txid
Showinformationaboutatransferto/fromthisaddress.
Alias:?None.
Inputs:
txid?-string;??TransactionIDusedtofindthetransfer.
account_index?-unsigned??int;(Optional)Indexoftheaccounttoqueryforthetransfer.
Outputs:
transfer?-JSON??objectcontainingpaymentinformation:
address?-string;???Addressthattransferredthefunds.Base58representationofthepublic???keys.
amount?-???unsignedint;Amountofthistransfer.
confirmations?-???unsignedint;Numberofblockminedsincetheblockcontainingthis???transaction(orblockheightatwhichthetransactionshouldbeaddedto???ablockifnotyetconfirmed).
destinations?-array???ofJSONobjectscontainingtransferdestinations:
amount?-???unsignedint;Amounttransferredtothisdestination.
address?-???string;Addressforthisdestination.Base58representationofthepublic???keys.
double_spend_seen?-???boolean;Trueifthekeyimage(s)forthetransferhavebeenseenbefore.
fee?-???unsignedint;Transactionfeeforthistransfer.
height?-???unsignedint;Heightofthefirstblockthatconfirmedthistransfer.
note?-string;???Noteaboutthistransfer.
payment_id?-string;???PaymentIDforthistransfer.
subaddr_index?-JSON???objectcontainingthemajor&minorsubaddressindex:
major?-???unsignedint;Accountindexforthesubaddress.
minor?-???unsignedint;Indexofthesubaddressundertheaccount.
suggested_confirmations_threshold?-???unsignedint;Estimationoftheconfirmationsneededforthetransaction???tobeincludedinablock.
timestamp?-???unsignedint;POSIXtimestampfortheblockthatconfirmedthistransfer???(ortimestampsubmissionifnotminedyet).
txid?-string;???TransactionIDofthistransfer(sameasinputTXID).
type?-string;???Typeoftransfer,oneofthefollowing:"in","out",???"pending","failed","pool"
unlock_time?-unsignedint;Numberofblocksuntil???transferissafelyspendable.
Example:
$curl-XPOSThttp://localhost:18082/json_rpc-d'{"jsonrpc":"2.0","id":"0","method":"get_transfer_by_txid","params":{"txid":"c36258a276018c3a4bc1f195a7fb530f50cd63a4fa765fb7c6f7f49fc051762a"}}'-H'Content-Type:application/json'
{
"id":"0",
"jsonrpc":"2.0",
"result":{
"transfer":{
"address":"55LTR8KniP4LQGJSPtbYDacR7dz8RBFnsfAKMaMuwUNYX6aQbBcovzDPyrQF9KXF9tVU6Xk3K8no1BywnJX6GvZX8yJsXvt",
"amount":300000000000,
"confirmations":1,
"destinations":[{
"address":"7BnERTpvL5MbCLtj5n9No7J5oE5hHiB3tVCK5cjSvCsYWD2WRJLFuWeKTLiXo5QJqt2ZwUaLy2Vh1Ad51K7FNgqcHgjW85o",
"amount":100000000000
},{
"address":"77Vx9cs1VPicFndSVgYUvTdLCJEZw9h81hXLMYsjBCXSJfUehLa9TDW3Ffh45SQa7xb6dUs18mpNxfUhQGqfwXPSMrvKhVp",
"amount":200000000000
}],
"double_spend_seen":false,
"fee":21650200000,
"height":153624,
"note":"",
"payment_id":"0000000000000000",
"subaddr_index":{
"major":0,
"minor":0
},
"suggested_confirmations_threshold":1,
"timestamp":1535918400,
"txid":"c36258a276018c3a4bc1f195a7fb530f50cd63a4fa765fb7c6f7f49fc051762a",
"type":"out",
"unlock_time":0
}
}
}
点击查看官方文档:
https://www.getmonero.org/resources/developer-guides/wallet-rpc.html
今天主要想和大家聊一聊,这波狂跌之后引发的争议,分析一下,比特币避险属性到底还在不在。一、比特币是怎么成为“避险工具”的?金融市场能够带给投资者丰厚的回报,但是金融市场极易受到外在因素的冲击,比.
作者|哈希派分析团队 BTC突破37500美元关口 日内涨幅为12.52%:火币全球站数据显示,BTC短线上涨,突破37500美元关口,现报37500.29美元,日内涨幅达到12.52%.
据Cointelegraph8月9日报道,德国金融服务巨头安联集团正在开发一个基于区块链的生态系统,为其企业客户的跨境保险支付提供便利.
一项最新的研究认为,比特币等私有的去中心化加密货币的存在会对政府的财政和监管政策产生健康的影响。 这一观点是由三名研究人员在其论文《私有数字货币如何影响政府政策?》中提出的.
与大多数创新技术一样,区块链也遇到了相当大的阻力。绝大多数人听到这个词时仍联想到“犯罪活动”、“”、“局”或“黑客”.
自8月18日20时起,四川全省经历了一次强降雨过程。成都、雅安、阿坝等多地降暴雨到大暴雨,出现灾情。8月20日,汶川县遭强降雨袭击,县境内不同程度发生泥石流灾害,山体滑坡等自然灾害.