hmyv2_getTransactionsHistory
Parameters
Object
- Transaction history args
-
address
-String
: Wallet address -
pageIndex
-Number
: Optional, which page of transactions to return, default 0 -
pageSize
-Number
: Optional, how many transactions to display per page, default 1000 -
fullTx
-Bool
: Optional, return full transaction data or just transaction hashes, default false -
txType
-String
: Optional, which type of transactions to display (ALL
,RECEIVED
, orSENT
), defaultALL
-
order
-String
: Optional, sort transactions in ascending or descending order based on timestamp (ASC
orDESC
), defaultASC
Returns
If fullTx
true
Array
of Object
-
blockHash
-String
: Block hash that transaction was finalized.null
if the transaction is pending. -
blockNumber
-Number
: Block number that transaction was finalized.null
if the transaction is pending. -
from
-String
: Wallet address -
timestamp
-Number
: Timestamp in Unix time when transaction was finalized -
gas
-Number
: Gas limit in Atto -
gasPrice
-Number
: Gas price in Atto -
hash
-String
: Transaction hash -
input
-String
: Transaction data, used for smart contracts -
nonce
-Number
: Wallet nonce for the transaction -
to
-String
: Wallet address of receiver -
transactionIndex
-Number
: Index of transaction in block.null
if the transaction is pending. -
value
-Number
: Amount transfered in Atto -
shardID
-Number
: Shard where amount is from -
toShardID
-Number
: Shard where the amount is sent
If fullTx
is false
-
Array
ofString
: List of transaction hashes
Request Body
{"jsonrpc"=>"2.0", "id"=>1, "method"=>"hmyv2_getTransactionsHistory", "params"=>[{"address"=>"one15vlc8yqstm9algcf6e94dxqx6y04jcsqjuc3gt", "pageIndex"=>0, "pageSize"=>1, "fullTx"=>true, "txType"=>"ALL", "order"=>"ASC"}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"jsonrpc":"2.0","id":1,"result":{"transactions":[{"blockHash":"0x77ef489dce6deee69374aa878a67a9cf1f653ec4f7b697bbeed2931669f6be77","blockNumber":3687181,"from":"one1a5fznwvnr3fed9676g42u7q30crtmmkk5qspe9","gas":21000,"gasPrice":1000000000,"hash":"0x41d6e74ff3a7e615080b98fcfb7bce8be7b1ba4a8671e1ba2e9527eb3e1da20d","input":"0x","nonce":354,"r":"0x509fad8c9aca4ef3a6732ebfb544261d527e062c1d8169569f91e18cb60fade9","s":"0x14f1dc80082be16aabca42079807ba9f8312545586020b33d1d470c391828246","shardID":0,"timestamp":1592529632,"to":"one15vlc8yqstm9algcf6e94dxqx6y04jcsqjuc3gt","toShardID":0,"transactionIndex":0,"v":"0x26","value":1.0001e+22}]}}