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

To retrieve a transaction with its transaction hash, the following method can be used:

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

Returns:

{"id":"1","jsonrpc":"2.0","result":{"status":"OK","transaction":{"address_from":"XwoKxyd1t7n2TSQEhQ1pvMWukx8pgNDqKK65MHo1pV266MEso2iFt1nB1sLgarBS8VbNaTuRWBtxsivGd6CcnNxr39CnrrVuU","address_to":["Xwoe2RGyvDr3m1XUwxPg2q73CABBUhFWN6JuXrs1YT89XvfwT4NoBjETDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28ba1xrjF","XwmpWx93XGhA9TGVKE4aK5Vtae3onSZN2FfYHibxcNdFSQdvyRY7mGcWiWDtfrW9rdCqHitCge7acSg61Ly96c3m2MVwpB9Th","XwnH69JP6afFwdJHHJeShf1NfMCPcbD7kfwoW5C3HFfVgsgTm7529GZJf5qYRiVy5eURyW7uauTKhAyURaNL4dAk38SWLAtYb","XwoLdPSAyS1JN6LaMXuSh4T8CePHmvLMf5gKsCRC4jzH17dgRQHFjNYTDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28beGxEZw","Xwn7v4T4NwpWj2C57A69ZtT7HNvV5H1pQJVk26WXvzn3R3L3hQesmKNTDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28bfXkXcw","XwmsSuiufuB9r969oMv1EvQoxeDJcvL79LpKDfdHmw9XHWxmUSCoz3aTDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28bfy8GYS","XwofGqteyVX2B24mv2r9CXXNGbeB5TXmCf5iMpEbK2ih3mG8TmESyDATDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28bfux5KC","Xwn2rRRbj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7ykygoz4J7c6THgN3KWJGonSRHfJWtTDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28bfipWnn","Xwo8Abv9np4TrkL4oJiwS9AMWEdSuz1ECGyGUKpY6uef3YJboiivPkPPFWh93oRdW2fN8WUiXNqNKDT29sX4z8Qx1qYeWb6ZE","XwnKqSvRj…}


Get Wallet Balances

This function call returns the total of inputs, the total of outputs, the total of fees as well as the balance for a provided wallet address. It also contains an identifier "legacy_wallet". If the wallet is fully transparent, the value is set to "false", otherwise it is set to "true".

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

Returns:

{"id":"1","jsonrpc":"2.0","result":{"balance":{"amount_in":77394000000,"amount_out":0,"balance":77394000000,"fees":0,"legacy_wallet":false,"wallet":"Xwoe2RGyvDr3m1XUwxPg2q73CABBUhFWN6JuXrs1YT89XvfwT4NoBjETDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28ba1xrjF"},"status":"OK"}


Validate a Transaction

This function call allow to validate recipient addresses and amounts for a given transaction hash. It returns a json array containing receiving addresses and amounts:

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

Returns:

{"id":"1","jsonrpc":"2.0","result":{"recipients":[{"amount":5609000000,"wallet":"Xwoe2RGyvDr3m1XUwxPg2q73CABBUhFWN6JuXrs1YT89XvfwT4NoBjETDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28ba1xrjF"},{"amount":1179000000,"wallet":"XwmpWx93XGhA9TGVKE4aK5Vtae3onSZN2FfYHibxcNdFSQdvyRY7mGcWiWDtfrW9rdCqHitCge7acSg61Ly96c3m2MVwpB9Th"},{"amount":1369000000,"wallet":"XwnH69JP6afFwdJHHJeShf1NfMCPcbD7kfwoW5C3HFfVgsgTm7529GZJf5qYRiVy5eURyW7uauTKhAyURaNL4dAk38SWLAtYb"},{"amount":2639000000,"wallet":"XwoLdPSAyS1JN6LaMXuSh4T8CePHmvLMf5gKsCRC4jzH17dgRQHFjNYTDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28beGxEZw"},{"amount":1029000000,"wallet":"Xwn7v4T4NwpWj2C57A69ZtT7HNvV5H1pQJVk26WXvzn3R3L3hQesmKNTDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28bfXkXcw"},{"amount":3629000000,"wallet":"XwmsSuiufuB9r969oMv1EvQoxeDJcvL79LpKDfdHmw9XHWxmUSCoz3aTDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28bfy8GYS"},{"amount":8289000000,"wallet":"XwofGqteyVX2B24mv2r9CXXNGbeB5TXmCf5iMpEbK2ih3mG8TmESyDATDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28bfux5KC"},{"amount":2879000…


Retrieve Transactions by Address

To obtain a list of all transactions involved by a specific wallet address, the following function method can be used. It returns an array of all transactions where the specified address is either sender or recipient. To narrow down the results, it is possible to specify the parameter "height" (for example: "height": 300000) which defines the earliest block of transactions to retrieve.

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

Returns:

{"id":"1","jsonrpc":"2.0","result":{"status":"OK","transactions":[{"amount":["0000000052ca7540","000000004ba36740","0000000049d9a3c0","000000006675dbc0","000000006675dbc0","000000005231dec0","000000005cec73c0","00000000480fe040","000000003e867840","000000003fb7a540","000000004514efc0","000000004cd49440","000000004514efc0","0000000040e8d240","000000003d554b40","000000003fb7a540","0000000067a708c0","000000005b22b040","00000002552dcec0","000000004f36ee40","0000000040e8d240","000000004514efc0","0000000042b295c0","000000003dede1c0","000000004d6d2ac0","000000003f1f0ec0","000000003b8b87c0","000000003cbcb4c0","000000014561bac0","0000000048a876c0","0000000064ac1840","000000026d9de940","0000000046deb340","0000000043e3c2c0","000000003f1f0ec0","00000000a210a5c0","00000005dfc3fd40","000000003cbcb4c0","00000000447c5940","000000004d6d2ac0","000000003b8b87c0","000000003cbcb4c0","00000000565dfc40","000000003fb7a540","0000000040e8d240","000000004fcf84c0","000000003d554b40","000000006c6bbcc0","000000003dede1c0","00000000fa47a7c0","00000000447c5940","000000003cbcb4c0","0000000051994840","000000004ba36740","000000003c241e40","0000000046461cc0","0000000042b295c0","000000003dede1c0","000000004c3bfdc0","000000004514efc0","000000004d6d2ac0","0000000046deb340","0000000049d9a3c0","0000000049410d40","0000000062e254c0","000000004f36ee40","000000003fb7a540","000000004cd49440","000000003d554b40","000000003c241e40","0000000053630bc0","0000000043e3c2c0","000000003b8b87c0","0000000046deb340","0000000040503bc0","0000000080afb9c0"],"amount_out":163138822371,"fee":76000000,"from_address":"XwoKxyd1t7n2TSQEhQ1pvMWukx8pgNDqKK65MHo1pV266MEso2iFt1nB1sLgarBS8VbNaTuRWBtxsivGd6CcnNxr39CnrrVuU","hash":"86216ebc4207a86e1cbe7fedb9942365685788de671cd429078b0774933e68d9","height":322676,"size":8864,"timestamp":1701434967,"to_address":["Xwoe2RGyvDr3m1XUwxPg2q73CABBUhFWN6JuXrs1YT89XvfwT4NoBjETDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28ba1xrjF","XwncLR3MDYxBcAQBLwx1yxSv6cAwsX5T6hXyKXAryd3xFj41sxhX7TETDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28bbCvRdu","XwnLDUNGDAVAfLZ3CtgMna1YShMHyM3av6jU1gWNJch458AkVG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nM4X3qjsZrgfgojbnGEZRVepMAQYce28bfaYXyc","XwokMsrTDfMVaUAKUXk6htEFKWCeabUhXWJTbJewvHnSSCfnb1BwGtYTDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28bbKdrHL","XwneghFmhD81KkYK3sW3TuA78HyUy9EG8NYeNtgriKYSATTpwXuUxXSTDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28beQxMuh","XwoCq4dmkX86euAjvEnsyPCF9vwRsY5EUAwdyghafrC57VimD9dPfNGTDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28bbhcvuN","XwnyKxpT4fi6hJwBrmjBsNWPYDG66CgRqF66XuXT9xYfQsYyirsjKk4TDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28bbdw7aX","XwnYU55p7HpQDZCZdY3g8hfozG6b4ufCmRcJSVwdzGty89AKy3dd6v4TDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28bcVrNFh","XwopWE7BzwhDC5njpR......


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

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

To retrieve a transaction with its transaction hash, the following method can be used:

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

Returns:

{"id":"1","jsonrpc":"2.0","result":{"status":"OK","transaction":{"address_from":"XwoKxyd1t7n2TSQEhQ1pvMWukx8pgNDqKK65MHo1pV266MEso2iFt1nB1sLgarBS8VbNaTuRWBtxsivGd6CcnNxr39CnrrVuU","address_to":["Xwoe2RGyvDr3m1XUwxPg2q73CABBUhFWN6JuXrs1YT89XvfwT4NoBjETDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28ba1xrjF","XwmpWx93XGhA9TGVKE4aK5Vtae3onSZN2FfYHibxcNdFSQdvyRY7mGcWiWDtfrW9rdCqHitCge7acSg61Ly96c3m2MVwpB9Th","XwnH69JP6afFwdJHHJeShf1NfMCPcbD7kfwoW5C3HFfVgsgTm7529GZJf5qYRiVy5eURyW7uauTKhAyURaNL4dAk38SWLAtYb","XwoLdPSAyS1JN6LaMXuSh4T8CePHmvLMf5gKsCRC4jzH17dgRQHFjNYTDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28beGxEZw","Xwn7v4T4NwpWj2C57A69ZtT7HNvV5H1pQJVk26WXvzn3R3L3hQesmKNTDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28bfXkXcw","XwmsSuiufuB9r969oMv1EvQoxeDJcvL79LpKDfdHmw9XHWxmUSCoz3aTDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28bfy8GYS","XwofGqteyVX2B24mv2r9CXXNGbeB5TXmCf5iMpEbK2ih3m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sZrgfgojbnGEZRVepMAQYce28bfqsDmB","XwoR7ES2yXeUFjD7wEKeSv4Qa7ykygoz4J7c6THgN3KWJGonSRHfJWtTDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28bfipWnn","Xwo8Abv9np4TrkL4oJiwS9AMWEdSuz1ECGyGUKpY6uef3YJboiivPkPPFWh93oRdW2fN8WUiXNqNKDT29sX4z8Qx1qYeWb6ZE","XwnKqSvRj…}


Get Wallet Balances

This function call returns the total of inputs, the total of outputs, the total of fees as well as the balance for a provided wallet address. It also contains an identifier "legacy_wallet". If the wallet is fully transparent, the value is set to "false", otherwise it is set to "true".

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

Returns:

{"id":"1","jsonrpc":"2.0","result":{"balance":{"amount_in":77394000000,"amount_out":0,"balance":77394000000,"fees":0,"legacy_wallet":false,"wallet":"Xwoe2RGyvDr3m1XUwxPg2q73CABBUhFWN6JuXrs1YT89XvfwT4NoBjETDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28ba1xrjF"},"status":"OK"}


Validate a Transaction

This function call allow to validate recipient addresses and amounts for a given transaction hash. It returns a json array containing receiving addresses and amounts:

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

Returns:

{"id":"1","jsonrpc":"2.0","result":{"recipients":[{"amount":5609000000,"wallet":"Xwoe2RGyvDr3m1XUwxPg2q73CABBUhFWN6JuXrs1YT89XvfwT4NoBjETDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28ba1xrjF"},{"amount":1179000000,"wallet":"XwmpWx93XGhA9TGVKE4aK5Vtae3onSZN2FfYHibxcNdFSQdvyRY7mGcWiWDtfrW9rdCqHitCge7acSg61Ly96c3m2MVwpB9Th"},{"amount":1369000000,"wallet":"XwnH69JP6afFwdJHHJeShf1NfMCPcbD7kfwoW5C3HFfVgsgTm7529GZJf5qYRiVy5eURyW7uauTKhAyURaNL4dAk38SWLAtYb"},{"amount":2639000000,"wallet":"XwoLdPSAyS1JN6LaMXuSh4T8CePHmvLMf5gKsCRC4jzH17dgRQHFjNYTDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28beGxEZw"},{"amount":1029000000,"wallet":"Xwn7v4T4NwpWj2C57A69ZtT7HNvV5H1pQJVk26WXvzn3R3L3hQesmKNTDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28bfXkXcw"},{"amount":3629000000,"wallet":"XwmsSuiufuB9r969oMv1EvQoxeDJcvL79LpKDfdHmw9XHWxmUSCoz3aTDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28bfy8GYS"},{"amount":8289000000,"wallet":"XwofGqteyVX2B24mv2r9CXXNGbeB5TXmCf5iMpEbK2ih3mG8TmESyDATDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28bfux5KC"},{"amount":2879000…


Retrieve Transactions by Address

To obtain a list of all transactions involved by a specific wallet address, the following function method can be used. It returns an array of all transactions where the specified address is either sender or recipient. To narrow down the results, it is possible to specify the parameter "height" (for example: "height": 300000) which defines the earliest block of transactions to retrieve.

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

Returns:

{"id":"1","jsonrpc":"2.0","result":{"status":"OK","transactions":[{"amount":["0000000052ca7540","000000004ba36740","0000000049d9a3c0","000000006675dbc0","000000006675dbc0","000000005231dec0","000000005cec73c0","00000000480fe040","000000003e867840","000000003fb7a540","000000004514efc0","000000004cd49440","000000004514efc0","0000000040e8d240","000000003d554b40","000000003fb7a540","0000000067a708c0","000000005b22b040","00000002552dcec0","000000004f36ee40","0000000040e8d240","000000004514efc0","0000000042b295c0","000000003dede1c0","000000004d6d2ac0","000000003f1f0ec0","000000003b8b87c0","000000003cbcb4c0","000000014561bac0","0000000048a876c0","0000000064ac1840","000000026d9de940","0000000046deb340","0000000043e3c2c0","000000003f1f0ec0","00000000a210a5c0","00000005dfc3fd40","000000003cbcb4c0","00000000447c5940","000000004d6d2ac0","000000003b8b87c0","000000003cbcb4c0","00000000565dfc40","000000003fb7a540","0000000040e8d240","000000004fcf84c0","000000003d554b40","000000006c6bbcc0","000000003dede1c0","00000000fa47a7c0","00000000447c5940","000000003cbcb4c0","0000000051994840","000000004ba36740","000000003c241e40","0000000046461cc0","0000000042b295c0","000000003dede1c0","000000004c3bfdc0","000000004514efc0","000000004d6d2ac0","0000000046deb340","0000000049d9a3c0","0000000049410d40","0000000062e254c0","000000004f36ee40","000000003fb7a540","000000004cd49440","000000003d554b40","000000003c241e40","0000000053630bc0","0000000043e3c2c0","000000003b8b87c0","0000000046deb340","0000000040503bc0","0000000080afb9c0"],"amount_out":163138822371,"fee":76000000,"from_address":"XwoKxyd1t7n2TSQEhQ1pvMWukx8pgNDqKK65MHo1pV266MEso2iFt1nB1sLgarBS8VbNaTuRWBtxsivGd6CcnNxr39CnrrVuU","hash":"86216ebc4207a86e1cbe7fedb9942365685788de671cd429078b0774933e68d9","height":322676,"size":8864,"timestamp":1701434967,"to_address":["Xwoe2RGyvDr3m1XUwxPg2q73CABBUhFWN6JuXrs1YT89XvfwT4NoBjETDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28ba1xrjF","XwncLR3MDYxBcAQBLwx1yxSv6cAwsX5T6hXyKXAryd3xFj41sxhX7TETDgnM4X3qjsZrgfgojbnGEZRVepMAQY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wnu9uStrzp4iBhvG3yMzZXq3sQ2hnNL7EnhWjMaq7bGUn44otQbsYkTDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28bfaYXyc","XwokMsrTDfMVaUAKUXk6htEFKWCeabUhXWJTbJewvHnSSCfnb1BwGtYTDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28bbKdrHL","XwneghFmhD81KkYK3sW3TuA78HyUy9EG8NYeNtgriKYSATTpwXuUxXSTDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28beQxMuh","XwoCq4dmkX86euAjvEnsyPCF9vwRsY5EUAwdyghafrC57VimD9dPfNGTDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28bbhcvuN","XwnyKxpT4fi6hJwBrmjBsNWPYDG66CgRqF66XuXT9xYfQsYyirsjKk4TDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28bbdw7aX","XwnYU55p7HpQDZCZdY3g8hfozG6b4ufCmRcJSVwdzGty89AKy3dd6v4TDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28bcVrNFh","XwopWE7BzwhDC5njpR......


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

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

To retrieve a transaction with its transaction hash, the following method can be used:

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

Returns:

{"id":"1","jsonrpc":"2.0","result":{"status":"OK","transaction":{"address_from":"XwoKxyd1t7n2TSQEhQ1pvMWukx8pgNDqKK65MHo1pV266MEso2iFt1nB1sLgarBS8VbNaTuRWBtxsivGd6CcnNxr39CnrrVuU","address_to":["Xwoe2RGyvDr3m1XUwxPg2q73CABBUhFWN6JuXrs1YT89XvfwT4NoBjETDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28ba1xrjF","XwmpWx93XGhA9TGVKE4aK5Vtae3onSZN2FfYHibxcNdFSQdvyRY7mGcWiWDtfrW9rdCqHitCge7acSg61Ly96c3m2MVwpB9Th","XwnH69JP6afFwdJHHJeShf1NfMCPcbD7kfwoW5C3HFfVgsgTm7529GZJf5qYRiVy5eURyW7uauTKhAyURaNL4dAk38SWLAtYb","XwoLdPSAyS1JN6LaMXuSh4T8CePHmvLMf5gKsCRC4jzH17dgRQHFjNYTDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28beGxEZw","Xwn7v4T4NwpWj2C57A69ZtT7HNvV5H1pQJVk26WXvzn3R3L3hQesmKNTDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28bfXkXcw","XwmsSuiufuB9r969oMv1EvQoxeDJcvL79LpKDfdHmw9XHWxmUSCoz3aTDgnM4X3qjsZrgfgojbnGEZRVepMA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fXQHQ2oNVXTaxCxgYGWDyZGyEUqnY6eFsBiKFA7ych93c4TDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28bfqsDmB","XwoR7ES2yXeUFjD7wEKeSv4Qa7ykygoz4J7c6THgN3KWJGonSRHfJWtTDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28bfipWnn","Xwo8Abv9np4TrkL4oJiwS9AMWEdSuz1ECGyGUKpY6uef3YJboiivPkPPFWh93oRdW2fN8WUiXNqNKDT29sX4z8Qx1qYeWb6ZE","XwnKqSvRj…}


Get Wallet Balances

This function call returns the total of inputs, the total of outputs, the total of fees as well as the balance for a provided wallet address. It also contains an identifier "legacy_wallet". If the wallet is fully transparent, the value is set to "false", otherwise it is set to "true".

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

Returns:

{"id":"1","jsonrpc":"2.0","result":{"balance":{"amount_in":77394000000,"amount_out":0,"balance":77394000000,"fees":0,"legacy_wallet":false,"wallet":"Xwoe2RGyvDr3m1XUwxPg2q73CABBUhFWN6JuXrs1YT89XvfwT4NoBjETDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28ba1xrjF"},"status":"OK"}


Validate a Transaction

This function call allow to validate recipient addresses and amounts for a given transaction hash. It returns a json array containing receiving addresses and amounts:

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

Returns:

{"id":"1","jsonrpc":"2.0","result":{"recipients":[{"amount":5609000000,"wallet":"Xwoe2RGyvDr3m1XUwxPg2q73CABBUhFWN6JuXrs1YT89XvfwT4NoBjETDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28ba1xrjF"},{"amount":1179000000,"wallet":"XwmpWx93XGhA9TGVKE4aK5Vtae3onSZN2FfYHibxcNdFSQdvyRY7mGcWiWDtfrW9rdCqHitCge7acSg61Ly96c3m2MVwpB9Th"},{"amount":1369000000,"wallet":"XwnH69JP6afFwdJHHJeShf1NfMCPcbD7kfwoW5C3HFfVgsgTm7529GZJf5qYRiVy5eURyW7uauTKhAyURaNL4dAk38SWLAtYb"},{"amount":2639000000,"wallet":"XwoLdPSAyS1JN6LaMXuSh4T8CePHmvLMf5gKsCRC4jzH17dgRQHFjNYTDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28beGxEZw"},{"amount":1029000000,"wallet":"Xwn7v4T4NwpWj2C57A69ZtT7HNvV5H1pQJVk26WXvzn3R3L3hQesmKNTDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28bfXkXcw"},{"amount":3629000000,"wallet":"XwmsSuiufuB9r969oMv1EvQoxeDJcvL79LpKDfdHmw9XHWxmUSCoz3aTDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28bfy8GYS"},{"amount":8289000000,"wallet":"XwofGqteyVX2B24mv2r9CXXNGbeB5TXmCf5iMpEbK2ih3mG8TmESyDATDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28bfux5KC"},{"amount":2879000…


Retrieve Transactions by Address

To obtain a list of all transactions involved by a specific wallet address, the following function method can be used. It returns an array of all transactions where the specified address is either sender or recipient. To narrow down the results, it is possible to specify the parameter "height" (for example: "height": 300000) which defines the earliest block of transactions to retrieve.

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

Returns:

{"id":"1","jsonrpc":"2.0","result":{"status":"OK","transactions":[{"amount":["0000000052ca7540","000000004ba36740","0000000049d9a3c0","000000006675dbc0","000000006675dbc0","000000005231dec0","000000005cec73c0","00000000480fe040","000000003e867840","000000003fb7a540","000000004514efc0","000000004cd49440","000000004514efc0","0000000040e8d240","000000003d554b40","000000003fb7a540","0000000067a708c0","000000005b22b040","00000002552dcec0","000000004f36ee40","0000000040e8d240","000000004514efc0","0000000042b295c0","000000003dede1c0","000000004d6d2ac0","000000003f1f0ec0","000000003b8b87c0","000000003cbcb4c0","000000014561bac0","0000000048a876c0","0000000064ac1840","000000026d9de940","0000000046deb340","0000000043e3c2c0","000000003f1f0ec0","00000000a210a5c0","00000005dfc3fd40","000000003cbcb4c0","00000000447c5940","000000004d6d2ac0","000000003b8b87c0","000000003cbcb4c0","00000000565dfc40","000000003fb7a540","0000000040e8d240","000000004fcf84c0","000000003d554b40","000000006c6bbcc0","000000003dede1c0","00000000fa47a7c0","00000000447c5940","000000003cbcb4c0","0000000051994840","000000004ba36740","000000003c241e40","0000000046461cc0","0000000042b295c0","000000003dede1c0","000000004c3bfdc0","000000004514efc0","000000004d6d2ac0","0000000046deb340","0000000049d9a3c0","0000000049410d40","0000000062e254c0","000000004f36ee40","000000003fb7a540","000000004cd49440","000000003d554b40","000000003c241e40","0000000053630bc0","0000000043e3c2c0","000000003b8b87c0","0000000046deb340","0000000040503bc0","0000000080afb9c0"],"amount_out":163138822371,"fee":76000000,"from_address":"XwoKxyd1t7n2TSQEhQ1pvMWukx8pgNDqKK65MHo1pV266MEso2iFt1nB1sLgarBS8VbNaTuRWBtxsivGd6CcnNxr39CnrrVuU","hash":"86216ebc4207a86e1cbe7fedb9942365685788de671cd429078b0774933e68d9","height":322676,"size":8864,"timestamp":1701434967,"to_address":["Xwoe2RGyvDr3m1XUwxPg2q73CABBUhFWN6JuXrs1YT89XvfwT4NoBjETDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28ba1xrjF","XwncLR3MDYxBcAQBLwx1yxSv6c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WtohC3P7qjxfNK9NoR6D4RRQeH7tYHY973pD21GcPpDbKXuc2NuCagGf7","Xwnu9uStrzp4iBhvG3yMzZXq3sQ2hnNL7EnhWjMaq7bGUn44otQbsYkTDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28bfaYXyc","XwokMsrTDfMVaUAKUXk6htEFKWCeabUhXWJTbJewvHnSSCfnb1BwGtYTDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28bbKdrHL","XwneghFmhD81KkYK3sW3TuA78HyUy9EG8NYeNtgriKYSATTpwXuUxXSTDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28beQxMuh","XwoCq4dmkX86euAjvEnsyPCF9vwRsY5EUAwdyghafrC57VimD9dPfNGTDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28bbhcvuN","XwnyKxpT4fi6hJwBrmjBsNWPYDG66CgRqF66XuXT9xYfQsYyirsjKk4TDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28bbdw7aX","XwnYU55p7HpQDZCZdY3g8hfozG6b4ufCmRcJSVwdzGty89AKy3dd6v4TDgnM4X3qjsZrgfgojbnGEZRVepMAQYce28bcVrNFh","XwopWE7BzwhDC5njpR......


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 © 2024 Dynex. All rights reserved.

Copyright © 2024 Dynex. All rights reserved.

Copyright © 2024 Dynex. All rights reserved.