Dynex Node RPC

Get Current Block Height from Node

curl http://node.dynexcoin.org:18333/getheight returns: {"height":171694,"status":"OK"}

curl -X POST -i -H 'Accept: application/json' -d '{"method":"getblockcount", "params": {},"jsonrpc": "2.0", "id":"1"}' http://node.dynexcoin.org:18333/json_rpc

Returns:

{"id":"1","jsonrpc":"2.0","result":{"count":171700,"status":"OK"}}

Get Core Node Information

curl http://node.dynexcoin.org:18333/getinfo

Returns:

{"already_generated_coins":"52811184.020344316","alt_blocks_count":0,"block_major_version":1,"contact":"","cumulative_difficulty":1683384893862740,"difficulty":37336843344,"fee_address":"","grey_peerlist_size":928,"height":171696,"incoming_connections_count":0,"last_known_block_index":171695,"min_tx_fee":1000000,"next_reward":218158019941,"outgoing_connections_count":8,"readable_tx_fee":"0.001000000","rpc_connections_count":1,"start_time":1683288303,"status":"OK","top_block_hash":"e53892a4b52ba93111e01abe6beea5a825aaab29d230eaecba5f98d5f7d28e5d","tx_count":414243,"tx_pool_size":0,"version":"2.2.2-20221218 (#mandatory)","version_build":"20221218","version_num":"2.2.2","version_remark":"#mandatory","white_peerlist_size":14}

Generate a Random Payment-ID

curl http://node.dynexcoin.org:18333/paymentid

Returns:

{"payment_id":"663b4f8fb9668cf54e2c20c56462bcbe54e28aaaaecb18593706b31853573621"}

Retrieve Transactions from a Block

curl -X POST -i -H 'Accept: application/json' -d '{"method":"getblockbyheight", "params": {"blockHeight":1000},"jsonrpc": "2.0", "id":"1"}' http://node.dynexcoin.org:18333/json_rpc

Returns:

{"id":"1","jsonrpc":"2.0","result":{"block":{"alreadyGeneratedCoins":419236176960119,"alreadyGeneratedTransactions":1001,"baseReward":418019034736,"blockSize":309,"cumulativeDifficulty":8631297,"depth":170696,"difficulty":12668,"effectiveSizeMedian":20000,"hash":"0f84a76d437b8dbd932d2c3137f50f6ab6ccd7b03b6fbfd2eef57363c7777393","index":1000,"isOrphaned":false,"majorVersion":1,"minorVersion":0,"nonce":4068890093,"penalty":0.0,"prevBlockHash":"27f76e4449bf4cd3b04f5b92c829f9129204de520a4aa6acde9a17c1ca67ecce","proofOfWork":"328f177e78cc528d6d83ba48d1bde16ee7ccd1b89f08597adbe0b9459247df9c","reward":380017304306,"sizeMedian":266,"timestamp":1663415806,"totalFeeAmount":0,"transactions":[{"blockHash":"0f84a76d437b8dbd932d2c3137f50f6ab6ccd7b03b6fbfd2eef57363c7777393","blockIndex":1000,"extra":{"nonce":[],"publicKey":"4d408d6a21d601c93851120ffc0057cec338822d54e749b99ddb186133b9f303","raw":"014d408d6a21d601c93851120ffc0057cec338822d54e749b99ddb186133b9f303"},"fee":0,"hash":"07686c9b7fb890c2875576da4af9e15a0c3e6160bcbe433cc2f8b7bc960994f7","inBlockchain":true,"inputs":[{"data":{"amount":380017304306,"input":{"height":1000}},"type":"ff"}],"mixin":0,"outputs":[{"globalIndex":0,"output":{"amount":4306,"target":{"data":{"key":"c5142a35b6085d29a89b1c42d8c584b2b43c6ff780f9e49ceda2a940288b322b"},"type":"02"}}},{"globalIndex":97,"output":{"amount":300000,"target":{"data":{"key":"3fede40d0618ce20c8f5f910f47ee280cc1f4f9a597485ca602e5ca198d15174"},"type":"02"}}},{"globalIndex":97,"output":{"amount":7000000,"target":{"data":{"key":"e9a0b682e4a7e65861c36b8fbb0f80248d867b8bfeaf1aab4d33d8d09551fa25"},"type":"02"}}},{"globalIndex":98,"output":{"amount":10000000,"target":{"data":{"key":"77413cb780883e7b3995032ecb550b43ec13c012d0d55d7b606001c4a034fc26"},"type":"02"}}},{"globalIndex":999,"output":{"amount":80000000000,"target":{"data":{"key":"c2449fc1fe4387205a885d9c173cc83b4e4d44001bd1fe4c4b7d6f7863ae464b"},"type":"02"}}},{"globalIndex":999,"output":{"amount":300000000000,"target":{"data":{"key":"b7e67c4ffe158912d7fc44ad820a10020ba2e27ac4694403d4245da505d91ff7"},"type":"02"}}}],"paymentId":"0000000000000000000000000000000000000000000000000000000000000000","signatures":[],"signaturesSize":0,"size":265,"timestamp":1663415806,"totalInputsAmount":0,"totalOutputsAmount":380017304306,"unlockTime":1060,"version":1}],"transactionsCumulativeSize":265},"status":"OK"}} Note: transaction details are in json array "transactions[]"

Retrieve a Transaction by Hash

curl -X POST -i -H 'Accept: application/json' -d '{"jsonrpc":"2.0", "id":"1", "method":"gettransaction", "params":{"hash":"eab28380db196a97d64ffca34df9bc075304749170703ba697f01e8f65a9d1ec"}}' http://node.dynexcoin.org:18333/json_rpc

Returns:

{"id":"1","jsonrpc":"2.0","result":{"status":"OK","transaction":{"blockHash":"f4cd20d4ff81a6d9aa84c5b667c173519eb3d731749a78f1a5b0794a6d670812","blockIndex":172072,"extra":{"nonce":[],"publicKey":"7508ae7961a861cdde490191e07a5a3b47e50fabb369a15dc0b3744f2523e8d3","raw":"017508ae7961a861cdde490191e07a5a3b47e50fabb369a15dc0b3744f2523e8d3"},"fee":1000000,"hash":"eab28380db196a97d64ffca34df9bc075304749170703ba697f01e8f65a9d1ec","inBlockchain":true,"inputs":[{"data":{"input":{"amount":1997000000,"k_image":"......],"signaturesSize":183,"size":19477,"timestamp":1683360469,"totalInputsAmount":944938000000,"totalOutputsAmount":944937000000,"unlockTime":0,"version":1}}}

Node HTTP JSON GET Commands

curl http://node.dynexcoin.org:18333/getinfo curl http://node.dynexcoin.org:18333/getheight curl http://node.dynexcoin.org:18333/feeaddress curl http://node.dynexcoin.org:18333/getpeers curl http://node.dynexcoin.org:18333/paymentid

Node HTTP JSON POST Commands

/gettransactions /sendrawtransaction /getblocks /queryblocks /queryblockslite /get_o_indexes /getrandom_outs /get_pool_changes /get_pool_changes_lite /get_block_details_by_height /get_blocks_details_by_heights /get_blocks_details_by_hashes /get_blocks_hashes_by_timestamps /get_transaction_details_by_hashes /get_transaction_hashes_by_payment_id

Node JSON POST Methods

curl -X POST -i -H 'Accept: application/json' -d '{"method":"<METHOD>", "params": {},"jsonrpc": "2.0", "id":"1"}' http://node.dynexcoin.org:18333/json_rpc

Methods:

getblockcount getblockhash getblocktemplate getblockheaderbyhash getblockheaderbyheight getblockbyheight getblockbyhash getblocksbyheights getblocksbyhashes getblockshashesbytimestamps getblockslist getlastblockheader gettransaction gettransactionspool gettransactionsbypaymentid gettransactionhashesbypaymentid gettransactionsbyhashes getcurrencyid checktransactionkey checktransactionbyviewkey checktransactionproof checkreserveproof validateaddress verifymessage submitblock

Copyright © 2023 Dynex. All rights reserved.

Terms & Conditions

Privacy Policy

Copyright © 2023 Dynex. All rights reserved.

Terms & Conditions

Privacy Policy

Copyright © 2023 Dynex. All rights reserved.

Terms & Conditions

Privacy Policy