-
Notifications
You must be signed in to change notification settings - Fork 8
Usage
- generate
- validate
- fetch-balance
- fetch-history
- create-tx
- send-tx
- get-block-by-hash
- get-block-by-number
- get-count-blocks
- get-dump-block-by-hash
- get-dump-block-by-number
- get-tx
- fetch-transaction
It generates wallet in the network where MHC client runs.
none
address
- wallet
pub_key
- wallet public key
prv_key
- wallet private key
Besides, 2 files are created in the folder: /opt/mhp/wallet.main/ (main means that the network runs in the main network. There are several types of networks: main|dev|v8) with the name of a created wallet and prv and pub extensions for private and public keys, respectively.
// Request
curl -s -X POST --data '{"id":1, "version":"1.0.0", "method":"generate"}' 0.0.0.0:9999
// Result
{
"jsonrpc":"2.0",
"id":1,
"result":
{
"address":"0x002382e6e78e4f97ee636ba6ff42e80a34c076c118cb288e3c",
"pub_key":"30563...d0af",
"prv_key":"307402...ed0af"
}
}
// And files:
/opt/mhp/wallet.main/0x002382e6e78e4f97ee636ba6ff42e80a34c076c118cb288e3c.raw.prv
/opt/mhp/wallet.main/0x002382e6e78e4f97ee636ba6ff42e80a34c076c118cb288e3c.raw.pub
This method is used to check whether the address is valid or not.
address
- wallet address in HEX format.
A message, which displays the result of calling the method. Examples:
- valid address
- address not valid
- validation error
// Request
curl -s -X POST --data '{"id":1,"method": "validate", "params":{"address": "0x001fc6f4b81787b2256879b0c163e4210b2b211975b5c605f4"}}' 0.0.0.0:9999
// Result
{"jsonrpc":"2.0","id":1,"error":{"code":-32602,"message":"address not valid"}}
It returns current balance for the specified in the request address in the network where MHC client runs.
address
- wallet address in HEX format.
address
- wallet
received
- amount received
spent
- amount spent
count_received
- number of receipts
count_spent":0
- number of sendings
block_number
- number of block where the last balance change was made
currentBlock
- number of blocks in the blockchain currently
// Request
curl -s -X POST --data '{"id":1, "version":"1.0.0", "method":"fetch-balance", "params": {"address":"0x002382e6e78e4f97ee636ba6ff42e80a34c076c118cb288e3c"}}' 0.0.0.0:9999
// Result
{
"jsonrpc":"2.0",
"id":1,
"result":
{
"address":"0x002382e6e78e4f97ee636ba6ff42e80a34c076c118cb288e3c",
"received":1000000,
"spent":0,
"count_received":1,
"count_spent":0,
"block_number":7969,
"currentBlock":7970
}
}
It returns all transaction history for the specified in the request address in the network where the MHC client runs.
address
- wallet address in HEX format.
from
- address amount was transferred from
to
- address amount was transferred to
value
- amount of transfer
transaction
- transaction hash
timestamp
- date and time of the transaction in timestamp format
// Request
curl -s -X POST --data '{"id":1, "version":"1.0.0", "method":"fetch-history", "params": {"address":"0x002382e6e78e4f97ee636ba6ff42e80a34c076c118cb288e3c"}}' 0.0.0.0:9999
// Result
{
"jsonrpc":"2.0",
"id":1,
"result":
[
{
"from":"0x002382e6e78e4f97ee636ba6ff42e80a34c076c118cb288e3c",
"to":"0x0004cd0ecb06e091efd2fc486d13c94eafd422486d0d3fc80c",
"value":1,
"transaction":"27857e9bf3e00c35cbfb0d09870250af7585dfdf7b946265e97c8c5f244beaa5",
"timestamp":1545308555
},
{
"from":"0x0059147ce71de3f3e74c74b6f8e4135cbec80ee3ec2f52914a",
"to":"0x002382e6e78e4f97ee636ba6ff42e80a34c076c118cb288e3c",
"value":1000000,
"transaction":"4ccac941fc83edced9514969ed86925f60d618d2cd773789b01790935e2a08b5",
"timestamp":1545306639
}
]
}
Вызывается тот же метод fetch-history, но с определенными параметрами. Метод возвращает определенное число транзакций для указанного адреса, начиная с указанного номера транзакции в списке транзакций данного адреса.
address
- wallet address in HEX format.
countTxs
- количество транзакций, которые показывать.
beginTx
- начиная с какой транзакции показывать, нумерация транзакций в истории адреса с 0
from
- address amount was transferred from
to
- address amount was transferred to
value
- amount of transfer
transaction
- transaction hash
timestamp
- date and time of the transaction in timestamp format
// Request
curl -s -X POST --data '{"id":1, "version":"1.0.0", "method":"fetch-history", "params": {"address":"0x00ab27d45c13f4862...65e64bcaf362d2e", "countTxs":1, "beginTx":2}}' 0.0.0.0:9999
// Result
{
"jsonrpc":"2.0",
"id":1,
"result":
[
{
"from":"0x00c45f7954525b27...e0edfb2742d31462932719",
"to":"0x00ab27d45c13f4862df9...65e64bcaf362d2e",
"value":0,
"transaction":"ea27aa54a4e889eaf43a4c758745...05b6257f922024152651",
"timestamp":1553630400
}
]
}
Method for creating transactions.
address
- sender wallet address in HEX format
to
- recipient wallet address in HEX format
value
- amount of transfer
nonce
- number of outgoing transactions from the address at the time of this transaction, i.e. = count_spent + 1
transaction
- transaction hash
to
- recipient wallet address in HEX format
value
- amount of transfer
fee
- fee rate
nonce
- number of outgoing transactions from the address at the time of this transaction
data
- transaction-related data in HEX format
pubkey
- sender public key
sign
- generated transaction signature
To find out more about creating and sending transactions read the article.
// Request
curl -s -X POST --data '{"id":1, "version":"1.0.0", "method":"create-tx", "params":{"address":"0x002382e6e78e4f97ee636ba6ff42e80a34c076c118cb288e3c", "to":"0x0004cd0ecb06e091efd2fc486d13c94eafd422486d0d3fc80c","value":1, "nonce":1}}' 0.0.0.0:9999
// Result
{
"jsonrpc":"2.0",
"id":1,
"method":"mhc_send",
"params":
{
"transaction":"0004cd0ecb06e091efd2fc486d13c94eafd422486d0d3fc80c01000100",
"to":"0x0004cd0ecb06e091efd2fc486d13c94eafd422486d0d3fc80c",
"value":"1",
"fee":"",
"nonce":"1",
"data":"",
"pubkey":"30563...1ed0af",
"sign":"304502...adf804"
}
}
Method for sending transactions.
address
- sender wallet address in HEX format
to
- recipient wallet address in HEX format
value
- amount of transfer
nonce
- (optional) number of outgoing transactions from the address at the time of this transaction, i.e. = count_spent + 1
result
- transaction hash
To find out more about creating and sending transactions read the article.
// Request
curl -s -X POST --data '{"id":1, "version":"1.0.0", "method":"send-tx", "params":{"address":"0x002382e6e78e4f97ee636ba6ff42e80a34c076c118cb288e3c", "to":"0x0004cd0ecb06e091efd2fc486d13c94eafd422486d0d3fc80c","value":1, "nonce":1}}' 0.0.0.0:9999
// Result
{"jsonrpc":"2.0","id":1,"result":"27857e9bf3e00c35cbfb0d09870250af7585dfdf7b946265e97c8c5f244beaa5"}
This method is used to send a previously created transaction by calling create-tx.
transaction
- transaction hash, received in the result of calling create-tx. Hash contains all the info about transaction: recipient wallet address, value, nonce, etc.
address
- sender wallet address in HEX format (It must correspond to the result of the previously called create-tx)
result
- transaction hash
To find out more about creating and sending transactions read the article.
// Request
curl -s -X POST --data '{"id":1, "version":"1.0.0", "method":"send-tx", "params":{"transaction":"0004cd0ecb06e091efd2fc486d...486d0d3fc80c01000100", "address":"0x002382e6e78e4f97ee63...42e80a34c076c118cb288e3c"}}' 0.0.0.0:9999
// Result
{"jsonrpc":"2.0","id":1,"result":"27857e9bf3e00c35cbfb0d09870...fdf7b946265e97c8c5f244beaa5"}
View info on a specified blockchain block by its hash.
hash
- block hash
type
- type of requested info: 2 - full block dump, 1 - only hashes, 0 or there isn’t - only block name.
hash
- block hash
prev_hash
- hash of the previous block
tx_hash
- transaction hash
number
- block number
timestamp
- time the block was created in timestamp format
size
- block size
fileName
- name of the file containing info on the block.
// Request
curl -s -X POST --data '{"id":1, "version":"1.0.0", "method":"get-block-by-hash", "params":{"hash":"1172121c30fa86757a193170966903ef7a3dbb9dcdbad906040730f90465fb82", "type":0}}' 0.0.0.0:9999
// Result
{
"jsonrpc":"2.0",
"id":1,
"result":
{
"hash":"1172121c30fa86757a193170966903ef7a3dbb9dcdbad906040730f90465fb82",
"prev_hash":"5d21042bc72ccdef03e27881375668abb3be33579714db3dfec101eba1521646",
"tx_hash":"45df25ee86ae2245bde6bdc05e5b9910e45518b8825e361f5848ceae5bbd66a6",
"number":7907,
"timestamp":1545252302,
"size":275,
"fileName":"/data/metahash/20181219.blk"
}
}
View info on a specified blockchain block by its number.
number
- block number
type
- type of requested info:
- 2 - full block dump,
- 1 - only hashes,
- 0 or there isn’t - only block name.
Below you can find examples of requests and responses for all type values (type=0, type=1, type=2).
type
- block type, there are the following types: block, state, forging. For more details read MetaHash-Wiki
hash
- block hash
prev_hash
- hash of the previous block
tx_hash
- transaction hash
number
- block number
timestamp
- time the block was created in timestamp format
count_txs
- number of transactions in the block
sign
- signature
size
- block size
fileName
- name of the file containing info on the block
signatures
- array of signatures
txs
- array of transactions descriptions according to the requested type.
// Request
curl -s -X POST --data '{"id":1, "version":"1.0.0", "method":"get-block-by-number", "params":{"number":356619, "type":0}}' 0.0.0.0:9999
// Result
{
"jsonrpc":"2.0",
"id":1,
"result":
{
"type":"block",
"hash":"2a763fae174fecf0851263fbb35438f85561c7edd081bef1014a001c7c52fbad",
"prev_hash":"795b6eece701bb7a0a36a44d576b1a23c6d15250d794b7086cb3db37401d7667",
"tx_hash":"ce1dbd1936ad573b29744ddcbf4e95bdd87e806cc3dc3eb6a4b1a6e284cd83cf",
"number":356619,
"timestamp":1555685314,
"count_txs":8,
"sign":"795b6eece701bb7a0a36a44d576b1a23c6d15250d794b7086cb3db37401d7667",
"size":1897,
"fileName":"/data/metahash/20190419.blk",
"signatures":
[
{"from":"0x0028dd1ca2951fe554ef526d60ff55a64776ee5e033120ca91","to":"0x0028dd1ca2951fe554ef526d60ff55a64776ee5e033120ca91","value":0,"transaction":"232f974a28c2b36a30bbd7d9cf9b0b2982211d78b2dafda6c919fc86c3168287","data":"2a763fae174fecf0851263fbb35438f85561c7edd081bef1014a001c7c52fbad","timestamp":1555685341,"type":"block","blockNumber":0,"signature":"30440220431429300c9afcb5828bdcd94a3162151a9717018f64723febad7f09b8faf4d6022071e5ec71e676edd5e789e4ff92029eb5b7ce68ae3178fdceb83c3e13ad9ea2de","publickey":"3059301306072a8648ce3d020106082a8648ce3d0301070342000444f13813e9688c4c41b1583b3241eb1efe9139de592b387ea27b5259e054db2acd2a3b72843876bd1b60f67ea73df14943ba3cc2cbf4b48d5a133e7a1233cccc","fee":0,"realFee":0,"nonce":343568,"intStatus":1,"status":"ok"},
{"from":"0x005140a0ae997aeae77c09d7d4ccf97aa65695a9a1e28812bd","to":"0x005140a0ae997aeae77c09d7d4ccf97aa65695a9a1e28812bd","value":0,"transaction":"549b493d0384719aa13ac33138665bfdd6c9d3fad33ac9b6523b26943f684fcb","data":"2a763fae174fecf0851263fbb35438f85561c7edd081bef1014a001c7c52fbad","timestamp":1555685341,"type":"block","blockNumber":0,"signature":"30450220012a1497e680e7b500f64b3d95d402a5b3acf42f225fc53621eebcab839790c0022100f0e44178b9bbf15748d8f543f2ec28c7c118462b18b43c15c841cdacd8b5d135","publickey":"3059301306072a8648ce3d020106082a8648ce3d03010703420004a4f4c0050ba6f7b07d78307f1d4ad9961f4f4a34d2f3407e9d58f80b360e8ace0d0e16bae71488e0fc5284b31ef960e4bfa1d7da548dd43c625875aee868dfce","fee":0,"realFee":0,"nonce":343568,"intStatus":1,"status":"ok"},
{"from":"0x0057b301028c5e0c234bb35b611fc8d3d15c797fb39ef768a4","to":"0x0057b301028c5e0c234bb35b611fc8d3d15c797fb39ef768a4","value":0,"transaction":"e8940ba1678702c6bd2ab98c950b02e2094fcb429ae784addab54d1a432f1891","data":"2a763fae174fecf0851263fbb35438f85561c7edd081bef1014a001c7c52fbad","timestamp":1555685341,"type":"block","blockNumber":0,"signature":"3046022100ee6a8f8e45bfec956114679a47178b48300940731a2b3628d2520ed5ec5bceaf022100f517aa4306353576e00cb26e0e49f7811494d6e2e044a46fe6e5ac7b3432eddb","publickey":"3059301306072a8648ce3d020106082a8648ce3d0301070342000426abf3781bd6de97e59bf247aff0cd60ddb0053932b35c18215da637398837f9f22fddada7dd16c568bfa0ed5fdf81801e54035105ea958d2cd9d2627af52df4","fee":0,"realFee":0,"nonce":343568,"intStatus":1,"status":"ok"},
{"from":"0x0069fce976a40fbd2c894f1fe635255fc16c80bfe17ce65f5e","to":"0x0069fce976a40fbd2c894f1fe635255fc16c80bfe17ce65f5e","value":0,"transaction":"69b1c7f1e6d89d15d8272da3c1d76a9bd1e8d5215f32c9ab693244fe51ecb019","data":"2a763fae174fecf0851263fbb35438f85561c7edd081bef1014a001c7c52fbad","timestamp":1555685341,"type":"block","blockNumber":0,"signature":"3044022033499b47fa2230372cfbc85ff0e3457fa5d4607a7b6b28df7f9ed7aa5fd9e18802200dab49da0fa3db9f79d39f91e146ec596135f0c7ebc6fa71ba4232cd32680a1f","publickey":"3059301306072a8648ce3d020106082a8648ce3d03010703420004edd10457be891611b3905408284c527d3743217aed719cf9fe4b3337b74b8556376a0ad2bb2a997a4f681dcfca42bbfbfc4874aac7c8fff851f1f693e0986319","fee":0,"realFee":0,"nonce":343568,"intStatus":1,"status":"ok"},
{"from":"0x007fce3c1e56c67f963428b3dcdfc4400408918b843d1652ec","to":"0x007fce3c1e56c67f963428b3dcdfc4400408918b843d1652ec","value":0,"transaction":"bf95892904f0d8c72fc1412cf77ec7528447976298fd76b1d20d55e29de45f52","data":"2a763fae174fecf0851263fbb35438f85561c7edd081bef1014a001c7c52fbad","timestamp":1555685341,"type":"block","blockNumber":0,"signature":"304502206e18fae366bd2cea4cfbdd9940ddd1647ac4776b6b6032bbd2ae4653488ce454022100b8dbee7b628d2f5af09bb674fbfb59ff3d22200094026cc6e6e6fd44ce8c2cec","publickey":"3059301306072a8648ce3d020106082a8648ce3d03010703420004d42e2c2f44bdc90cf0ef1b6c04d6c72890230e3fc71962ed1cf8846697976b323b2ac5b077e86d4379919b7072ab4d8605b0db1d7e59c97c445697e2df09b766","fee":0,"realFee":0,"nonce":343568,"intStatus":1,"status":"ok"},
{"from":"0x00a88a888d16a23991e73b4081b745eec0f56cdc7063baa360","to":"0x00a88a888d16a23991e73b4081b745eec0f56cdc7063baa360","value":0,"transaction":"de8978efb3cb633594af0d9937ac274649487efea8c727383bc8a926e6aa7a06","data":"2a763fae174fecf0851263fbb35438f85561c7edd081bef1014a001c7c52fbad","timestamp":1555685341,"type":"block","blockNumber":0,"signature":"304502204e89ca72f4bf3ceec2a5b1b45589157ee97eb76b667ed4af8cdbdd547d1eb3a4022100e171f2e51c9e26b13a90b851d6329a6861e2b439fbbdf9afa13e5d9193834302","publickey":"3059301306072a8648ce3d020106082a8648ce3d03010703420004886d9fe32423473984eb0c6782c69e64d08e33c1c89c74d3925dab93c73aff72b670f482e2f753f9f7811198f37abe8fa873d8afc665a5801a183246cc997dcb","fee":0,"realFee":0,"nonce":343568,"intStatus":1,"status":"ok"},
{"from":"0x00f3dc22cbe3519ce94e9bf12145d61789da0bfd26bbdf7999","to":"0x00f3dc22cbe3519ce94e9bf12145d61789da0bfd26bbdf7999","value":0,"transaction":"0451d9214e84b1a4cbbdccd01b5c82a30eda2232785e78e341e9208c12f94fa6","data":"2a763fae174fecf0851263fbb35438f85561c7edd081bef1014a001c7c52fbad","timestamp":1555685341,"type":"block","blockNumber":0,"signature":"3045022033d80754b37a69d515dfb6453367ab40979ce8eed0c780026e30927d6c8d898e022100dbe05a31cf65074381edc539b517e38accc636403de8bf31b8e43869ed92133f","publickey":"3059301306072a8648ce3d020106082a8648ce3d03010703420004a8dc0b349c7bbff11ee6d3106de19c13fddda24ddda3bbc0961f17d389e2f4426fd6ca8feaa8773bf316056906f2c0d9bc16e5f341e3ed389379329be039b0eb","fee":0,"realFee":0,"nonce":343568,"intStatus":1,"status":"ok"}
]
}
}
// Request
curl -s -X POST --data '{"id":1, "version":"1.0.0", "method":"get-block-by-number", "params":{"number":356619, "type":1}}' 0.0.0.0:9999
// Result
{
"jsonrpc":"2.0",
"id":1,
"result":
{
"type":"block",
"hash":"2a763fae174fecf0851263fbb35438f85561c7edd081bef1014a001c7c52fbad",
"prev_hash":"795b6eece701bb7a0a36a44d576b1a23c6d15250d794b7086cb3db37401d7667",
"tx_hash":"ce1dbd1936ad573b29744ddcbf4e95bdd87e806cc3dc3eb6a4b1a6e284cd83cf",
"number":356619,
"timestamp":1555685314,
"count_txs":8,
"sign":"795b6eece701bb7a0a36a44d576b1a23c6d15250d794b7086cb3db37401d7667",
"size":1897,
"fileName":"/data/metahash/20190419.blk",
"signatures":
[
{"from":"0x0028dd1ca2951fe554ef526d60ff55a64776ee5e033120ca91","to":"0x0028dd1ca2951fe554ef526d60ff55a64776ee5e033120ca91","value":0,"transaction":"232f974a28c2b36a30bbd7d9cf9b0b2982211d78b2dafda6c919fc86c3168287","data":"2a763fae174fecf0851263fbb35438f85561c7edd081bef1014a001c7c52fbad","timestamp":1555685341,"type":"block","blockNumber":0,"signature":"30440220431429300c9afcb5828bdcd94a3162151a9717018f64723febad7f09b8faf4d6022071e5ec71e676edd5e789e4ff92029eb5b7ce68ae3178fdceb83c3e13ad9ea2de","publickey":"3059301306072a8648ce3d020106082a8648ce3d0301070342000444f13813e9688c4c41b1583b3241eb1efe9139de592b387ea27b5259e054db2acd2a3b72843876bd1b60f67ea73df14943ba3cc2cbf4b48d5a133e7a1233cccc","fee":0,"realFee":0,"nonce":343568,"intStatus":1,"status":"ok"},
{"from":"0x005140a0ae997aeae77c09d7d4ccf97aa65695a9a1e28812bd","to":"0x005140a0ae997aeae77c09d7d4ccf97aa65695a9a1e28812bd","value":0,"transaction":"549b493d0384719aa13ac33138665bfdd6c9d3fad33ac9b6523b26943f684fcb","data":"2a763fae174fecf0851263fbb35438f85561c7edd081bef1014a001c7c52fbad","timestamp":1555685341,"type":"block","blockNumber":0,"signature":"30450220012a1497e680e7b500f64b3d95d402a5b3acf42f225fc53621eebcab839790c0022100f0e44178b9bbf15748d8f543f2ec28c7c118462b18b43c15c841cdacd8b5d135","publickey":"3059301306072a8648ce3d020106082a8648ce3d03010703420004a4f4c0050ba6f7b07d78307f1d4ad9961f4f4a34d2f3407e9d58f80b360e8ace0d0e16bae71488e0fc5284b31ef960e4bfa1d7da548dd43c625875aee868dfce","fee":0,"realFee":0,"nonce":343568,"intStatus":1,"status":"ok"},
{"from":"0x0057b301028c5e0c234bb35b611fc8d3d15c797fb39ef768a4","to":"0x0057b301028c5e0c234bb35b611fc8d3d15c797fb39ef768a4","value":0,"transaction":"e8940ba1678702c6bd2ab98c950b02e2094fcb429ae784addab54d1a432f1891","data":"2a763fae174fecf0851263fbb35438f85561c7edd081bef1014a001c7c52fbad","timestamp":1555685341,"type":"block","blockNumber":0,"signature":"3046022100ee6a8f8e45bfec956114679a47178b48300940731a2b3628d2520ed5ec5bceaf022100f517aa4306353576e00cb26e0e49f7811494d6e2e044a46fe6e5ac7b3432eddb","publickey":"3059301306072a8648ce3d020106082a8648ce3d0301070342000426abf3781bd6de97e59bf247aff0cd60ddb0053932b35c18215da637398837f9f22fddada7dd16c568bfa0ed5fdf81801e54035105ea958d2cd9d2627af52df4","fee":0,"realFee":0,"nonce":343568,"intStatus":1,"status":"ok"},
{"from":"0x0069fce976a40fbd2c894f1fe635255fc16c80bfe17ce65f5e","to":"0x0069fce976a40fbd2c894f1fe635255fc16c80bfe17ce65f5e","value":0,"transaction":"69b1c7f1e6d89d15d8272da3c1d76a9bd1e8d5215f32c9ab693244fe51ecb019","data":"2a763fae174fecf0851263fbb35438f85561c7edd081bef1014a001c7c52fbad","timestamp":1555685341,"type":"block","blockNumber":0,"signature":"3044022033499b47fa2230372cfbc85ff0e3457fa5d4607a7b6b28df7f9ed7aa5fd9e18802200dab49da0fa3db9f79d39f91e146ec596135f0c7ebc6fa71ba4232cd32680a1f","publickey":"3059301306072a8648ce3d020106082a8648ce3d03010703420004edd10457be891611b3905408284c527d3743217aed719cf9fe4b3337b74b8556376a0ad2bb2a997a4f681dcfca42bbfbfc4874aac7c8fff851f1f693e0986319","fee":0,"realFee":0,"nonce":343568,"intStatus":1,"status":"ok"},
{"from":"0x007fce3c1e56c67f963428b3dcdfc4400408918b843d1652ec","to":"0x007fce3c1e56c67f963428b3dcdfc4400408918b843d1652ec","value":0,"transaction":"bf95892904f0d8c72fc1412cf77ec7528447976298fd76b1d20d55e29de45f52","data":"2a763fae174fecf0851263fbb35438f85561c7edd081bef1014a001c7c52fbad","timestamp":1555685341,"type":"block","blockNumber":0,"signature":"304502206e18fae366bd2cea4cfbdd9940ddd1647ac4776b6b6032bbd2ae4653488ce454022100b8dbee7b628d2f5af09bb674fbfb59ff3d22200094026cc6e6e6fd44ce8c2cec","publickey":"3059301306072a8648ce3d020106082a8648ce3d03010703420004d42e2c2f44bdc90cf0ef1b6c04d6c72890230e3fc71962ed1cf8846697976b323b2ac5b077e86d4379919b7072ab4d8605b0db1d7e59c97c445697e2df09b766","fee":0,"realFee":0,"nonce":343568,"intStatus":1,"status":"ok"},
{"from":"0x00a88a888d16a23991e73b4081b745eec0f56cdc7063baa360","to":"0x00a88a888d16a23991e73b4081b745eec0f56cdc7063baa360","value":0,"transaction":"de8978efb3cb633594af0d9937ac274649487efea8c727383bc8a926e6aa7a06","data":"2a763fae174fecf0851263fbb35438f85561c7edd081bef1014a001c7c52fbad","timestamp":1555685341,"type":"block","blockNumber":0,"signature":"304502204e89ca72f4bf3ceec2a5b1b45589157ee97eb76b667ed4af8cdbdd547d1eb3a4022100e171f2e51c9e26b13a90b851d6329a6861e2b439fbbdf9afa13e5d9193834302","publickey":"3059301306072a8648ce3d020106082a8648ce3d03010703420004886d9fe32423473984eb0c6782c69e64d08e33c1c89c74d3925dab93c73aff72b670f482e2f753f9f7811198f37abe8fa873d8afc665a5801a183246cc997dcb","fee":0,"realFee":0,"nonce":343568,"intStatus":1,"status":"ok"},
{"from":"0x00f3dc22cbe3519ce94e9bf12145d61789da0bfd26bbdf7999","to":"0x00f3dc22cbe3519ce94e9bf12145d61789da0bfd26bbdf7999","value":0,"transaction":"0451d9214e84b1a4cbbdccd01b5c82a30eda2232785e78e341e9208c12f94fa6","data":"2a763fae174fecf0851263fbb35438f85561c7edd081bef1014a001c7c52fbad","timestamp":1555685341,"type":"block","blockNumber":0,"signature":"3045022033d80754b37a69d515dfb6453367ab40979ce8eed0c780026e30927d6c8d898e022100dbe05a31cf65074381edc539b517e38accc636403de8bf31b8e43869ed92133f","publickey":"3059301306072a8648ce3d020106082a8648ce3d03010703420004a8dc0b349c7bbff11ee6d3106de19c13fddda24ddda3bbc0961f17d389e2f4426fd6ca8feaa8773bf316056906f2c0d9bc16e5f341e3ed389379329be039b0eb","fee":0,"realFee":0,"nonce":343568,"intStatus":1,"status":"ok"}
],
"txs":
[
"08c18dd03422d58c0a5b654ee3a2fba6d60512b9c0812b509f432bdf0f04cb1c",
"5838abd5c1660e7c0387ab48afc46fcd8d03c634bb42c815d4c7e2d613fad1bd",
"8a6407c2647bcb5ceef179b99a5dd048c71bac3c377802b488e4929e360fbe22",
"c8f21b8327e1b4c280d9c2a6f8bd2aca16da490905c87c8005f602152fbc836d",
"595e111997f70917da4979955e15f473b129e9d11f7ff190178c1f2d9124a45d",
"f9fbdfc60070db033ce3d29eb7f412de74c11d41875d782942557f51c65ec234",
"8e90a2f74e80eb041f60499bfbc8e02ade728b327ee8a6d337e583793006f608",
"2ac2409be26defdd6c18b250e1946eccd1bc6e7b962bf23d8fcd59afdfe5e075"
]
}
}
// Request
curl -s -X POST --data '{"id":1, "version":"1.0.0", "method":"get-block-by-number", "params":{"number":356619, "type":2}}' 0.0.0.0:9999
// Result
{
"jsonrpc":"2.0",
"id":1,
"result":
{
"type":"block",
"hash":"2a763fae174fecf0851263fbb35438f85561c7edd081bef1014a001c7c52fbad",
"prev_hash":"795b6eece701bb7a0a36a44d576b1a23c6d15250d794b7086cb3db37401d7667",
"tx_hash":"ce1dbd1936ad573b29744ddcbf4e95bdd87e806cc3dc3eb6a4b1a6e284cd83cf",
"number":356619,
"timestamp":1555685314,
"count_txs":8,
"sign":"795b6eece701bb7a0a36a44d576b1a23c6d15250d794b7086cb3db37401d7667",
"size":1897,
"fileName":"/data/metahash/20190419.blk",
"signatures":
[
{"from":"0x0028dd1ca2951fe554ef526d60ff55a64776ee5e033120ca91","to":"0x0028dd1ca2951fe554ef526d60ff55a64776ee5e033120ca91","value":0,"transaction":"232f974a28c2b36a30bbd7d9cf9b0b2982211d78b2dafda6c919fc86c3168287","data":"2a763fae174fecf0851263fbb35438f85561c7edd081bef1014a001c7c52fbad","timestamp":1555685341,"type":"block","blockNumber":0,"signature":"30440220431429300c9afcb5828bdcd94a3162151a9717018f64723febad7f09b8faf4d6022071e5ec71e676edd5e789e4ff92029eb5b7ce68ae3178fdceb83c3e13ad9ea2de","publickey":"3059301306072a8648ce3d020106082a8648ce3d0301070342000444f13813e9688c4c41b1583b3241eb1efe9139de592b387ea27b5259e054db2acd2a3b72843876bd1b60f67ea73df14943ba3cc2cbf4b48d5a133e7a1233cccc","fee":0,"realFee":0,"nonce":343568,"intStatus":1,"status":"ok"},
{"from":"0x005140a0ae997aeae77c09d7d4ccf97aa65695a9a1e28812bd","to":"0x005140a0ae997aeae77c09d7d4ccf97aa65695a9a1e28812bd","value":0,"transaction":"549b493d0384719aa13ac33138665bfdd6c9d3fad33ac9b6523b26943f684fcb","data":"2a763fae174fecf0851263fbb35438f85561c7edd081bef1014a001c7c52fbad","timestamp":1555685341,"type":"block","blockNumber":0,"signature":"30450220012a1497e680e7b500f64b3d95d402a5b3acf42f225fc53621eebcab839790c0022100f0e44178b9bbf15748d8f543f2ec28c7c118462b18b43c15c841cdacd8b5d135","publickey":"3059301306072a8648ce3d020106082a8648ce3d03010703420004a4f4c0050ba6f7b07d78307f1d4ad9961f4f4a34d2f3407e9d58f80b360e8ace0d0e16bae71488e0fc5284b31ef960e4bfa1d7da548dd43c625875aee868dfce","fee":0,"realFee":0,"nonce":343568,"intStatus":1,"status":"ok"},
{"from":"0x0057b301028c5e0c234bb35b611fc8d3d15c797fb39ef768a4","to":"0x0057b301028c5e0c234bb35b611fc8d3d15c797fb39ef768a4","value":0,"transaction":"e8940ba1678702c6bd2ab98c950b02e2094fcb429ae784addab54d1a432f1891","data":"2a763fae174fecf0851263fbb35438f85561c7edd081bef1014a001c7c52fbad","timestamp":1555685341,"type":"block","blockNumber":0,"signature":"3046022100ee6a8f8e45bfec956114679a47178b48300940731a2b3628d2520ed5ec5bceaf022100f517aa4306353576e00cb26e0e49f7811494d6e2e044a46fe6e5ac7b3432eddb","publickey":"3059301306072a8648ce3d020106082a8648ce3d0301070342000426abf3781bd6de97e59bf247aff0cd60ddb0053932b35c18215da637398837f9f22fddada7dd16c568bfa0ed5fdf81801e54035105ea958d2cd9d2627af52df4","fee":0,"realFee":0,"nonce":343568,"intStatus":1,"status":"ok"},
{"from":"0x0069fce976a40fbd2c894f1fe635255fc16c80bfe17ce65f5e","to":"0x0069fce976a40fbd2c894f1fe635255fc16c80bfe17ce65f5e","value":0,"transaction":"69b1c7f1e6d89d15d8272da3c1d76a9bd1e8d5215f32c9ab693244fe51ecb019","data":"2a763fae174fecf0851263fbb35438f85561c7edd081bef1014a001c7c52fbad","timestamp":1555685341,"type":"block","blockNumber":0,"signature":"3044022033499b47fa2230372cfbc85ff0e3457fa5d4607a7b6b28df7f9ed7aa5fd9e18802200dab49da0fa3db9f79d39f91e146ec596135f0c7ebc6fa71ba4232cd32680a1f","publickey":"3059301306072a8648ce3d020106082a8648ce3d03010703420004edd10457be891611b3905408284c527d3743217aed719cf9fe4b3337b74b8556376a0ad2bb2a997a4f681dcfca42bbfbfc4874aac7c8fff851f1f693e0986319","fee":0,"realFee":0,"nonce":343568,"intStatus":1,"status":"ok"},
{"from":"0x007fce3c1e56c67f963428b3dcdfc4400408918b843d1652ec","to":"0x007fce3c1e56c67f963428b3dcdfc4400408918b843d1652ec","value":0,"transaction":"bf95892904f0d8c72fc1412cf77ec7528447976298fd76b1d20d55e29de45f52","data":"2a763fae174fecf0851263fbb35438f85561c7edd081bef1014a001c7c52fbad","timestamp":1555685341,"type":"block","blockNumber":0,"signature":"304502206e18fae366bd2cea4cfbdd9940ddd1647ac4776b6b6032bbd2ae4653488ce454022100b8dbee7b628d2f5af09bb674fbfb59ff3d22200094026cc6e6e6fd44ce8c2cec","publickey":"3059301306072a8648ce3d020106082a8648ce3d03010703420004d42e2c2f44bdc90cf0ef1b6c04d6c72890230e3fc71962ed1cf8846697976b323b2ac5b077e86d4379919b7072ab4d8605b0db1d7e59c97c445697e2df09b766","fee":0,"realFee":0,"nonce":343568,"intStatus":1,"status":"ok"},
{"from":"0x00a88a888d16a23991e73b4081b745eec0f56cdc7063baa360","to":"0x00a88a888d16a23991e73b4081b745eec0f56cdc7063baa360","value":0,"transaction":"de8978efb3cb633594af0d9937ac274649487efea8c727383bc8a926e6aa7a06","data":"2a763fae174fecf0851263fbb35438f85561c7edd081bef1014a001c7c52fbad","timestamp":1555685341,"type":"block","blockNumber":0,"signature":"304502204e89ca72f4bf3ceec2a5b1b45589157ee97eb76b667ed4af8cdbdd547d1eb3a4022100e171f2e51c9e26b13a90b851d6329a6861e2b439fbbdf9afa13e5d9193834302","publickey":"3059301306072a8648ce3d020106082a8648ce3d03010703420004886d9fe32423473984eb0c6782c69e64d08e33c1c89c74d3925dab93c73aff72b670f482e2f753f9f7811198f37abe8fa873d8afc665a5801a183246cc997dcb","fee":0,"realFee":0,"nonce":343568,"intStatus":1,"status":"ok"},
{"from":"0x00f3dc22cbe3519ce94e9bf12145d61789da0bfd26bbdf7999","to":"0x00f3dc22cbe3519ce94e9bf12145d61789da0bfd26bbdf7999","value":0,"transaction":"0451d9214e84b1a4cbbdccd01b5c82a30eda2232785e78e341e9208c12f94fa6","data":"2a763fae174fecf0851263fbb35438f85561c7edd081bef1014a001c7c52fbad","timestamp":1555685341,"type":"block","blockNumber":0,"signature":"3045022033d80754b37a69d515dfb6453367ab40979ce8eed0c780026e30927d6c8d898e022100dbe05a31cf65074381edc539b517e38accc636403de8bf31b8e43869ed92133f","publickey":"3059301306072a8648ce3d020106082a8648ce3d03010703420004a8dc0b349c7bbff11ee6d3106de19c13fddda24ddda3bbc0961f17d389e2f4426fd6ca8feaa8773bf316056906f2c0d9bc16e5f341e3ed389379329be039b0eb","fee":0,"realFee":0,"nonce":343568,"intStatus":1,"status":"ok"}
],
"txs":
[
{"from":"0x0028dd1ca2951fe554ef526d60ff55a64776ee5e033120ca91","to":"0x0028dd1ca2951fe554ef526d60ff55a64776ee5e033120ca91","value":0,"transaction":"08c18dd03422d58c0a5b654ee3a2fba6d60512b9c0812b509f432bdf0f04cb1c","data":"795b6eece701bb7a0a36a44d576b1a23c6d15250d794b7086cb3db37401d7667","timestamp":1555685314,"type":"block","blockNumber":356619,"signature":"3045022078626300369176c9d1d7007cc82d59e061372a7e3eea2cd4364ee50a84f3ca02022100cc5f2a95933701c4661c49a48bd6ce163a6e6e00d02332e4c8bf7a6808e7cefc","publickey":"3059301306072a8648ce3d020106082a8648ce3d0301070342000444f13813e9688c4c41b1583b3241eb1efe9139de592b387ea27b5259e054db2acd2a3b72843876bd1b60f67ea73df14943ba3cc2cbf4b48d5a133e7a1233cccc","fee":0,"realFee":0,"nonce":343567,"intStatus":1,"status":"ok"},
{"from":"0x005140a0ae997aeae77c09d7d4ccf97aa65695a9a1e28812bd","to":"0x005140a0ae997aeae77c09d7d4ccf97aa65695a9a1e28812bd","value":0,"transaction":"5838abd5c1660e7c0387ab48afc46fcd8d03c634bb42c815d4c7e2d613fad1bd","data":"795b6eece701bb7a0a36a44d576b1a23c6d15250d794b7086cb3db37401d7667","timestamp":1555685314,"type":"block","blockNumber":356619,"signature":"3045022100a66e0571d2c0aadea50366d827445000f815ff351ab2228c634ac94b17717924022001f4c6a425a148443eb337308ed4ba360982f8ad31a8f2ebfa644db26e46dd3b","publickey":"3059301306072a8648ce3d020106082a8648ce3d03010703420004a4f4c0050ba6f7b07d78307f1d4ad9961f4f4a34d2f3407e9d58f80b360e8ace0d0e16bae71488e0fc5284b31ef960e4bfa1d7da548dd43c625875aee868dfce","fee":0,"realFee":0,"nonce":343567,"intStatus":1,"status":"ok"},
{"from":"0x0057b301028c5e0c234bb35b611fc8d3d15c797fb39ef768a4","to":"0x0057b301028c5e0c234bb35b611fc8d3d15c797fb39ef768a4","value":0,"transaction":"8a6407c2647bcb5ceef179b99a5dd048c71bac3c377802b488e4929e360fbe22","data":"795b6eece701bb7a0a36a44d576b1a23c6d15250d794b7086cb3db37401d7667","timestamp":1555685314,"type":"block","blockNumber":356619,"signature":"3046022100abdb6304b822c975ff67426384aa3b24bb053afa2c477ff61fcc5f9d799408aa0221009b8765041f5424a4b0a74ba370fff6a8a83665c4e8ef8a8d41b22836ebb2d687","publickey":"3059301306072a8648ce3d020106082a8648ce3d0301070342000426abf3781bd6de97e59bf247aff0cd60ddb0053932b35c18215da637398837f9f22fddada7dd16c568bfa0ed5fdf81801e54035105ea958d2cd9d2627af52df4","fee":0,"realFee":0,"nonce":343567,"intStatus":1,"status":"ok"},
{"from":"0x0069fce976a40fbd2c894f1fe635255fc16c80bfe17ce65f5e","to":"0x0069fce976a40fbd2c894f1fe635255fc16c80bfe17ce65f5e","value":0,"transaction":"c8f21b8327e1b4c280d9c2a6f8bd2aca16da490905c87c8005f602152fbc836d","data":"795b6eece701bb7a0a36a44d576b1a23c6d15250d794b7086cb3db37401d7667","timestamp":1555685314,"type":"block","blockNumber":356619,"signature":"3046022100e5326675a02372c3a6ef67094d0252e44b87ef1c63ec0f2417a9832d12d82c4e022100919542872df496dcc81948c09b792a7302ba1e07cb5f37018754439ccb08fa64","publickey":"3059301306072a8648ce3d020106082a8648ce3d03010703420004edd10457be891611b3905408284c527d3743217aed719cf9fe4b3337b74b8556376a0ad2bb2a997a4f681dcfca42bbfbfc4874aac7c8fff851f1f693e0986319","fee":0,"realFee":0,"nonce":343567,"intStatus":1,"status":"ok"},
{"from":"0x007fce3c1e56c67f963428b3dcdfc4400408918b843d1652ec","to":"0x007fce3c1e56c67f963428b3dcdfc4400408918b843d1652ec","value":0,"transaction":"595e111997f70917da4979955e15f473b129e9d11f7ff190178c1f2d9124a45d","data":"795b6eece701bb7a0a36a44d576b1a23c6d15250d794b7086cb3db37401d7667","timestamp":1555685314,"type":"block","blockNumber":356619,"signature":"304402205285d03568f8b9d80c0282a039f80256bc49994995febb60c7dcec798c019d51022005c32cf3e7cdb9700d934e486c267a33e6db0e1f6114b532f36adafad64c3811","publickey":"3059301306072a8648ce3d020106082a8648ce3d03010703420004d42e2c2f44bdc90cf0ef1b6c04d6c72890230e3fc71962ed1cf8846697976b323b2ac5b077e86d4379919b7072ab4d8605b0db1d7e59c97c445697e2df09b766","fee":0,"realFee":0,"nonce":343567,"intStatus":1,"status":"ok"},
{"from":"0x00a88a888d16a23991e73b4081b745eec0f56cdc7063baa360","to":"0x00a88a888d16a23991e73b4081b745eec0f56cdc7063baa360","value":0,"transaction":"f9fbdfc60070db033ce3d29eb7f412de74c11d41875d782942557f51c65ec234","data":"795b6eece701bb7a0a36a44d576b1a23c6d15250d794b7086cb3db37401d7667","timestamp":1555685314,"type":"block","blockNumber":356619,"signature":"3045022100a57b1bc5c7e0bedd4a161177c2c004d84586b289fc51a50478b56b342926c38102201c7549c745c4baf23314af2508394226d39ab948fc2b77bff84e7a5eb0f14740","publickey":"3059301306072a8648ce3d020106082a8648ce3d03010703420004886d9fe32423473984eb0c6782c69e64d08e33c1c89c74d3925dab93c73aff72b670f482e2f753f9f7811198f37abe8fa873d8afc665a5801a183246cc997dcb","fee":0,"realFee":0,"nonce":343567,"intStatus":1,"status":"ok"},
{"from":"0x00f3dc22cbe3519ce94e9bf12145d61789da0bfd26bbdf7999","to":"0x00f3dc22cbe3519ce94e9bf12145d61789da0bfd26bbdf7999","value":0,"transaction":"8e90a2f74e80eb041f60499bfbc8e02ade728b327ee8a6d337e583793006f608","data":"795b6eece701bb7a0a36a44d576b1a23c6d15250d794b7086cb3db37401d7667","timestamp":1555685314,"type":"block","blockNumber":356619,"signature":"30450221008b9f1b270506c4c72946d92adeb8e5d599b8d3e54df765d5d706abfa9f45b6fc02201ed54b74a78c33eb27d6b720f504337150b11767e20210ed822b9c8a65e1981f","publickey":"3059301306072a8648ce3d020106082a8648ce3d03010703420004a8dc0b349c7bbff11ee6d3106de19c13fddda24ddda3bbc0961f17d389e2f4426fd6ca8feaa8773bf316056906f2c0d9bc16e5f341e3ed389379329be039b0eb","fee":0,"realFee":0,"nonce":343567,"intStatus":1,"status":"ok"},
{"from":"0x0044ee9eaae3813964ae88c497c49fab3d1aa98572873065a9","to":"0x009b6b84aa1e01f78e44f3975e5cb9abbcffbf5a4d6b4a8416","value":1100000000,"transaction":"2ac2409be26defdd6c18b250e1946eccd1bc6e7b962bf23d8fcd59afdfe5e075","data":"","timestamp":1555685314,"type":"block","blockNumber":356619,"signature":"304402202216721a3a3408448e4bf2f87fcaa1f49093be344db268fc906869dd30b48157022051b3b7cb051265e4c78e4361d3ce82ae57cb0c431873b4f330ceccaded844b34","publickey":"3059301306072a8648ce3d020106082a8648ce3d030107034200049ccbde1b087478744b858008b096379b5b4e42666925789e0b741d654c37df101afd7e959d6526815d74f8a74f9f0f4c73d03034b8c918e70d923becd7d7a1c4","fee":0,"realFee":0,"nonce":21,"intStatus":20,"status":"ok"}
]
}
}
Getting info on the total number of blocks in the blockchain (the length of the chain of blocks)
none
count_blocks
- number of blocks in the blockchain
// Request
curl -s -X POST --data '{"id":1, "version":"1.0.0", "method":"get-count-blocks"}' 0.0.0.0:9999
// Result
{
"jsonrpc":"2.0",
"id":1,
"result":
{
"count_blocks":7907
}
}
Getting block dump by its hash.
hash
- block hash
dump
- block dump
// Request
curl -s -X POST --data '{"id":1, "version":"1.0.0", "method":"get-dump-block-by-hash", "params":{"hash":"1172121c30fa86757a193170966903ef7a3dbb9dcdbad906040730f90465fb82"}}' 0.0.0.0:9999
// Result
{"jsonrpc":"2.0","id":1,"result":{"dump":"0123456789abcdefcead1a5c000000005d21042bc72ccdef03e27881375668abb3be33579714db3dfec101eba152164645df25ee86ae2245bde6bdc05e5b9910e45518b8825e361f5848ceae5bbd66a6c1001e954698a8d7d32d491866c19e4ceaab3458696492e96d670100fa6c0900483046022100f443ae752e606fa162dfffc66e7a03788deb38d9c5ba56111bb6a93665de46440221008afa421023f9d93e3037ca3dced2288ba89c62c67875e832a79925e82ab46bb2583056301006072a8648ce3d020106052b8104000a034200047f2c35bdb88d6a1d778322c0604d3dd96eaf83e624f4bd4bbe0aa0d5d84f955e88023886c49294fa6eb080043755e5f895746c1afa3f47e277c30bb9ba013a6d00"}}
Getting block dump by its number.
number
- block number
dump
- block dump
// Request
curl -s -X POST --data '{"id":1, "version":"1.0.0", "method":"get-dump-block-by-number", "params":{"number":7907}}' 0.0.0.0:9999
// Result
{"jsonrpc":"2.0","id":1,"result":{"dump":"0123456789abcdefcead1a5c000000005d21042bc72ccdef03e27881375668abb3be33579714db3dfec101eba152164645df25ee86ae2245bde6bdc05e5b9910e45518b8825e361f5848ceae5bbd66a6c1001e954698a8d7d32d491866c19e4ceaab3458696492e96d670100fa6c0900483046022100f443ae752e606fa162dfffc66e7a03788deb38d9c5ba56111bb6a93665de46440221008afa421023f9d93e3037ca3dced2288ba89c62c67875e832a79925e82ab46bb2583056301006072a8648ce3d020106052b8104000a034200047f2c35bdb88d6a1d778322c0604d3dd96eaf83e624f4bd4bbe0aa0d5d84f955e88023886c49294fa6eb080043755e5f895746c1afa3f47e277c30bb9ba013a6d00"}}
View info on transaction
hash
- transaction hash
from
- address amount was transferred from
to
- address amount was transferred to
value
- amount of transfer
transaction
- transaction hash
data
- transaction-related data in HEX format
timestamp
- date and time of the transaction in timestamp format
type
- block type, there are the following types: block, state, forging. For more details read MetaHash-Wiki
blockNumber
- block number in blockchain
signature
- generated transaction signature
publickey
- sender public key
fee
- estimated fee
realFee
- actual fee paid for transaction
nonce
- number of outgoing transactions from the address at the time of this transaction
status
- transaction status, there are the following: "ok", "error", "pending", "module_not_set". For more details read MetaHash-Wiki
countBlocks
- number of downloaded blocks
knownBlocks
- number of currently known blocks (but possible not downloaded)
// Request
curl -s -X POST --data '{"id":1, "version":"1.0.0", "method":"get-tx", "params":{"hash":"27857e9bf3e00c35cbfb0d09870250af7585dfdf7b946265e97c8c5f244beaa5"}}' 0.0.0.0:9999
// Result
{
"jsonrpc":"2.0",
"id":1,
"result":
{
"transaction":
{
"from":"0x002382e6e78e4f97ee636ba6ff42e80a34c076c118cb288e3c",
"to":"0x0004cd0ecb06e091efd2fc486d13c94eafd422486d0d3fc80c",
"value":1,
"transaction":"27857e9bf3e00c35cbfb0d09870250af7585dfdf7b946265e97c8c5f244beaa5",
"data":"",
"timestamp":1545308555,
"type":"block",
"blockNumber":7972,
"signature":"3044022076...2bad167d93b",
"publickey":"3056301006072a86...c9ba98268c33c329bd59781ed0af",
"fee":0,
"realFee":0,
"nonce":1,
"status":"ok"
},
"countBlocks":141069,
"knownBlocks":141069
}
}
Method that allows to find all transactions with a specific value of data
field.
address
- wallet address in HEX format.
data
- data to be looked for in the data field in all transactions of this wallet in HEX format.
from
- address amount was transferred from
to
- address amount was transferred to
value
- amount of transfer
transaction
- transaction hash
data
- transaction-related data in HEX format
timestamp
- date and time of the transaction in timestamp format
type
- block type, there are the following types: block, state, forging. For more details read MetaHash-Wiki
blockNumber
- block number in blockchain
signature
- generated transaction signature
publickey
- sender public key
fee
- estimated fee
realFee
- actual fee paid for transaction
nonce
- number of outgoing transactions from the address at the time of this transaction
intStatus
- numerical value that specifies the type of transaction. For more details read MetaHash-Wiki
status
- transaction status, there are the following: "ok", "error", "pending", "module_not_set". For more details read MetaHash-Wiki
// Request
curl -X POST --data '{"id":1, "version":"1.0.0","method":"fetch-transaction", "params":{"address":"0x00e5cc4426dffdb85ab2773c4d2537b9f319989eac9ab9ba22", "data":"35"}}' 0.0.0.0:9999
// Result
{
"jsonrpc":"2.0",
"id":1,
"result":
[
{
"from":"0x00e5cc4426dffdb85ab2773c4d2537b9f319989eac9ab9ba22",
"to":"0x001b3b70b8710b7fc1b12b3c1668d667dce83b8dac7d987c33",
"value":500,
"transaction":"6bfba3a9dc340f3befc974d3d707c9be321fb56a0cad36af2f43356730321dda",
"data":"3335",
"timestamp":1552436277,
"type":"block",
"blockNumber":142055,
"signature":"3045022026ccc809047fe4...a597a7a0d",
"publickey":"3056301006072a8648...a09bb1b070309c",
"fee":0,
"realFee":0,
"nonce":17,
"intStatus":20,
"status":"ok"
},
{
"from":"0x00e5cc4426dffdb85ab2773c4d2537b9f319989eac9ab9ba22",
"to":"0x001b3b70b8710b7fc1b12b3c1668d667dce83b8dac7d987c33",
"value":500,
"transaction":"76dfaebc78455164d1f350f54222fde4d766e6b0085a96f97f6e23de228b2858",
"data":"3335",
"timestamp":1552435996,
"type":"block",
"blockNumber":141976,
"signature":"3045022100f7bb949a1abd140...e6699",
"publickey":"3056301006...e5ab35a4a1018d9ddb41a09bb1b070309c",
"fee":0,
"realFee":0,
"nonce":16,
"intStatus":20,
"status":"ok"
}
]
}