Avalanche - P
/gethistoricalrewards
Get the historical transaction details focusing on staking rewards for a specific user address.
GET
https://api.expand.network/chain/gethistoricalrewards
Query Parameters
rpc
String
Remote procedural call URL.
address*
String
Comma-separated value of user addresses.
pageToken
String
The next page's token. Can be found at the end of the response.
sortOrder
String
The transaction sorting order. asc or desc.
https://api.expand.network/chain/gethistoricalrewards?chainSymbol=p-AVAx&address=avax189rs3vx07p5y7uu27lk52vltksjue980fevxgm&sortOrder=asc
{
"status": 200,
"msg": "success",
"data": {
"historicalRewards": [
{
"addresses": [
"avax189rs3vx07p5y7uu27lk52vltksjue980fevxgm"
],
"txHash": "21Ji5iD9v3oDmZBBmZt591akrk3YMG27yRK5ArXNhhvrSJi5zs",
"utxoId": "2KDPLiCTuZGovZKtBD4hStFV6nvhSDKEMmjeXn9fKoGmq3i81m",
"outputIndex": 1,
"amountStaked": "4958623659071",
"nodeId": "NodeID-HpMSfYT2ox1vkr1hFNMwmdWuq8QWhvH2u",
"startTimestamp": 1699954003,
"endTimestamp": 1701164176,
"reward": {
"assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
"name": "Avalanche",
"symbol": "AVAX",
"denomination": 9,
"type": "secp256k1",
"amount": "12275074035"
},
"rewardType": "DELEGATOR",
"rewardTxHash": "2YhfzVxmGJjCejS4vkgyEwNwHXHKLn7rfVu5rFviwdEXpMXLYS"
}
]
}
}
/getusertransactions
Get the historical transaction details for a specific user address.
GET
https://historicallp.api.expand.network/chain/getusertransactions
Query Parameters
rpc
String
Remote procedural call URL.
address*
String
Comma-separated value of user addresses.
endBlock
String
Last block of the range.
startBlock
String
Starting block of the range.
pageToken
String
The next page's token. Can be found at the end of the response.
sortOrder
String
The transaction sorting order. asc or desc.
https://historicallp.api.expand.network/chain/getusertransactions?chainSymbol=p-avax&address=avax1n70cnwt8tsjwgnq4m6xm3n9cqk0enw59jptawa
{
"status": 200,
"msg": "success",
"data": {
"transactions": [
{
"txHash": "kkB6wavomFLVxeXgV55QaPVvipGrnJmA8woz9qAdX2Deut9gw",
"txType": "AddDelegatorTx",
"blockTimestamp": 1699945429,
"blockNumber": "9852683",
"blockHash": "2rwz34pyFgMuhTHvFY9ERR64atuzmpYks3TK28oBS1Psx8KHry",
"memo": "0x",
"rewardAddresses": [
"avax1ve4tyryp5mxe3m6s898lvlefg4ezrczvnn7mnn"
],
"estimatedReward": "95136059",
"startTimestamp": 1699945718,
"endTimestamp": 1701760581,
"nodeId": "NodeID-84XTAh1VM9QmfdewNnqFVhz2kbjrFvK4Y",
"subnetId": "11111111111111111111111111111111LpoYY",
"consumedUtxos": [
{
"addresses": [
"avax160zup7kq54s52ltfq2um5vu7uwdy8lxxm8pez9"
],
"utxoId": "131snzt9LGg1kCDBhPf16HS7XDKbbevKNGYwoG5UVVnKfz3Pf",
"txHash": "29wbsRnSAhZ4DnbNTemMv1maW71n3tQPfUg2gzVXqrNzMZpYgx",
"outputIndex": 0,
"blockTimestamp": 1699945126,
"blockNumber": "9852560",
"consumingTxHash": "kkB6wavomFLVxeXgV55QaPVvipGrnJmA8woz9qAdX2Deut9gw",
"consumingBlockTimestamp": 1699945429,
"consumingBlockNumber": "9852683",
"assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
"asset": {
"assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
"name": "Avalanche",
"symbol": "AVAX",
"denomination": 9,
"type": "secp256k1",
"amount": "24610000000"
},
"utxoType": "TRANSFER",
"amount": "24610000000",
"platformLocktime": 0,
"threshold": 1,
"createdOnChainId": "11111111111111111111111111111111LpoYY",
"consumedOnChainId": "11111111111111111111111111111111LpoYY",
"staked": false
},
{
"addresses": [
"avax1n70cnwt8tsjwgnq4m6xm3n9cqk0enw59jptawa"
],
"utxoId": "2miAzyiNFrGza2tCAbCudQZzeettdbK56sBnWnbKRC9DSHiLgh",
"txHash": "2vq35qTh4iqb5ZkzxiZsD6R6RoX245u4dzVsSgyqHdPLAJMWSY",
"outputIndex": 0,
"blockTimestamp": 1699945024,
"blockNumber": "9852548",
"consumingTxHash": "kkB6wavomFLVxeXgV55QaPVvipGrnJmA8woz9qAdX2Deut9gw",
"consumingBlockTimestamp": 1699945429,
"consumingBlockNumber": "9852683",
"assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
"asset": {
"assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
"name": "Avalanche",
"symbol": "AVAX",
"denomination": 9,
"type": "secp256k1",
"amount": "406841363"
},
"utxoType": "TRANSFER",
"amount": "406841363",
"platformLocktime": 0,
"threshold": 1,
"createdOnChainId": "11111111111111111111111111111111LpoYY",
"consumedOnChainId": "11111111111111111111111111111111LpoYY",
"staked": false
}
],
"emittedUtxos": [
{
"addresses": [
"avax1ve4tyryp5mxe3m6s898lvlefg4ezrczvnn7mnn"
],
"utxoId": "24bbri5KJbNz3uG16hLhrzrKq44noATLrVPhyr51DYVBT5j4gg",
"txHash": "kkB6wavomFLVxeXgV55QaPVvipGrnJmA8woz9qAdX2Deut9gw",
"outputIndex": 0,
"blockTimestamp": 1699945429,
"blockNumber": "9852683",
"assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
"asset": {
"assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
"name": "Avalanche",
"symbol": "AVAX",
"denomination": 9,
"type": "secp256k1",
"amount": "25016841363"
},
"utxoType": "TRANSFER",
"amount": "25016841363",
"platformLocktime": 0,
"threshold": 1,
"createdOnChainId": "11111111111111111111111111111111LpoYY",
"consumedOnChainId": "11111111111111111111111111111111LpoYY",
"staked": true,
"utxoStartTimestamp": 1699945718,
"utxoEndTimestamp": 1701760581
}
],
"value": [
{
"assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
"name": "Avalanche",
"symbol": "AVAX",
"denomination": 9,
"type": "secp256k1",
"amount": "25016841363"
}
],
"amountBurned": [
{
"assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
"name": "Avalanche",
"symbol": "AVAX",
"denomination": 9,
"type": "secp256k1",
"amount": "0"
}
],
"amountStaked": [
{
"assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
"name": "Avalanche",
"symbol": "AVAX",
"denomination": 9,
"type": "secp256k1",
"amount": "25016841363"
}
]
},
{
"txHash": "2vq35qTh4iqb5ZkzxiZsD6R6RoX245u4dzVsSgyqHdPLAJMWSY",
"txType": "ImportTx",
"blockTimestamp": 1699945024,
"blockNumber": "9852548",
"blockHash": "RK258J8Pn3tKxQzcYAPxnE8RSJ2AWkTmFwJzhcS8Q9STTDYRh",
"sourceChain": "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
"destinationChain": "11111111111111111111111111111111LpoYY",
"memo": "0x",
"consumedUtxos": [
{
"addresses": [
"avax1n70cnwt8tsjwgnq4m6xm3n9cqk0enw59jptawa"
],
"utxoId": "jqNLomDdiWSQDHYotDU1RcHgo4VtNmYmM8eaBiJEe7vXKuK2P",
"txHash": "fetvPgXzjphbuEjAp4ezAv4he9zSrhMgpA2mNJJU9MLGbrX88",
"outputIndex": 0,
"blockTimestamp": 1699945009,
"blockNumber": "37742387",
"consumingTxHash": "2vq35qTh4iqb5ZkzxiZsD6R6RoX245u4dzVsSgyqHdPLAJMWSY",
"consumingBlockTimestamp": 1699945024,
"consumingBlockNumber": "9852548",
"assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
"asset": {
"assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
"name": "Avalanche",
"symbol": "AVAX",
"denomination": 9,
"type": "secp256k1",
"amount": "407841363"
},
"utxoType": "TRANSFER",
"amount": "407841363",
"threshold": 1,
"createdOnChainId": "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
"consumedOnChainId": "11111111111111111111111111111111LpoYY",
"staked": false
}
],
"emittedUtxos": [
{
"addresses": [
"avax1n70cnwt8tsjwgnq4m6xm3n9cqk0enw59jptawa"
],
"utxoId": "2miAzyiNFrGza2tCAbCudQZzeettdbK56sBnWnbKRC9DSHiLgh",
"txHash": "2vq35qTh4iqb5ZkzxiZsD6R6RoX245u4dzVsSgyqHdPLAJMWSY",
"outputIndex": 0,
"blockTimestamp": 1699945024,
"blockNumber": "9852548",
"consumingTxHash": "kkB6wavomFLVxeXgV55QaPVvipGrnJmA8woz9qAdX2Deut9gw",
"consumingBlockTimestamp": 1699945429,
"consumingBlockNumber": "9852683",
"assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
"asset": {
"assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
"name": "Avalanche",
"symbol": "AVAX",
"denomination": 9,
"type": "secp256k1",
"amount": "406841363"
},
"utxoType": "TRANSFER",
"amount": "406841363",
"platformLocktime": 0,
"threshold": 1,
"createdOnChainId": "11111111111111111111111111111111LpoYY",
"consumedOnChainId": "11111111111111111111111111111111LpoYY",
"staked": false
}
],
"value": [
{
"assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
"name": "Avalanche",
"symbol": "AVAX",
"denomination": 9,
"type": "secp256k1",
"amount": "406841363"
}
],
"amountBurned": [
{
"assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
"name": "Avalanche",
"symbol": "AVAX",
"denomination": 9,
"type": "secp256k1",
"amount": "1000000"
}
],
"amountStaked": [
{
"assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
"name": "Avalanche",
"symbol": "AVAX",
"denomination": 9,
"type": "secp256k1",
"amount": "0"
}
]
}
]
}
}
Last updated