GetTransaction
This API returns the details of the transaction being queried with hash.
REST Uri: /transaction/{hash}
Query Parameters
hash: the transaction hash
Returns
block_height: height of the block that contains the transaction
hash: the hash of the transaction itself
data: the details of the transaction
type: transaction type
totalTxsNumber: total number of transactions in database
timestamp: the time stamp of the block contains this block
number: the sequence number of the transaction in database
// {
"type":"transaction",
"body":{
"hash":"0XF16402022FFFADA96C4BA9A78F79730903F8D99EF44D221FC5869EC4191260EC",
"type":5,
"data":{
"fee":{
"SCPTWei":"0",
"SPAYWei":"1000000000000"
},
"source":{
"address":"0x02990c3f7f75865bcd2fb28450f01065754f9372",
"coins":{
" SCPTWei ":"0",
" SPAYWei ":"1150000000000000"
},
"sequence":"0",
"signature":"0x66cb200ad7def6a0b4e9d377fd6a54cf19f952d089772b2dda8bd0f0927434825acec09e5c2c7aaaf9c4d18a2730786ee619a593fd49395913785aa4255e164001"
},
"target":{
"address":"0x49e2268b8962a7b5680512173f2b320418003082",
"coins":{
" SCPTWei ":"0",
" SPAYWei ":"0"
},
"sequence":"126",
"signature":"0xdd6aecdf642a001b9ae299cf44aa5c142dac45dd58666d326870dc53670dc204548951880ebce343afb27c968bb99488c23bc9af43a60c4de6299c6242cf07ac00"
},
"payment_sequence":"1550282279177",
"reserve_sequence":"178",
"resource_id":"vidivz187ttu9eck65d"
},
"number":196771,
"block_height":"30615",
"timestamp":"1550282330"
},
"totalTxsNumber":196771
GetTransactionsByRange
This API returns a list of blocks given the page number and limit number.
REST Uri: /transactions/range
Query Parameters
pageNumber: the page number, 0 stands for the latest
limit: the limit size of each page
Returns
currentPageNumber: the number of current page
totalPageNumber: the total number of pages
For each transaction it is similar to the returns of the GetTransaction API.
// Request
curl
https://explorer.script.tv
/api/transactions/range?pageNumber=1&limit=10
// Result
{
"type":"transaction_list",
"body":[
{...},
{...},
{...},
{...},
{...},
{...},
{...},
{...},
{...},
{...}
],
"totalPageNumber":20354,
"currentPageNumber":"1"
}