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.
动态 | 门罗币硬分叉升级预计在今晚凌晨2点左右进行:门罗币官方刚刚再次提醒矿工,应该在硬分叉升级前升级采矿软件。据悉,门罗币将在块高1788000进行硬分叉升级,当前块高为1787775,升级时间预计在今晚凌晨2点左右,且本次升级不会产生分叉币。[2019/3/9]
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.
声音 | 澳本聪:我可以使门罗币和大零币完全可追踪:澳本聪在Twitter发文表示,“我可以使门罗币(Monero)和大零币(ZCash)完全可追踪,这是一种可以监控它们并进行归因的方法。”[2019/3/6]
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
标签:ENTMENTYMENPAYPAYZ PAYMENTSquickpaymentchainPAYZ PAYMENTSPaycer Protocol
加密资产借贷初创公司BlockFi周二宣布,在ValarVentures牵头的A轮融资中,BlockFi获得了1830万美元.
1900/1/1 0:00:00很多人去世之后,他们的形象却依然鲜明“存活”在网络上。前几年,明星姚贝娜和乔任梁的离世轰动了整个媒体圈和娱乐圈.
1900/1/1 0:00:00今日,国家互联网信息办公室发布关于《区块链信息服务管理规定》涉安全评估条款说明的公告。公告全文如下:公告国家互联网信息办公室发布的《区块链信息服务管理规定》第九条明确“区块链信息服务提供者开发上.
1900/1/1 0:00:00北京时间8月25日,2019比原链全球开发者大会在美国旧金山FortMasonCowellTheater成功举办.
1900/1/1 0:00:00以太坊2.0升级的启动,带动了公链共识机制由PoW向PoS转型的风潮,这种转向究竟是否是发展趋势尚未有定论,但业界已经出现了抵制的声音.
1900/1/1 0:00:00虽然比特币仍然没有确定性地重返上升趋势,但它这几天的表现比上周早些时候要好得多,当时BTC一度大跌8%,跌破9,600美元。目前比特币已经回到10000美元以上,暂报10370美元.
1900/1/1 0:00:00