GetTxs returns transactions based upon the request params
OK response.
Paging defines the structure for required params for handling pagination
const response = await fetch('https://inj-indexer.nownodes.io/api/explorer/v1/txs', {
method: 'GET',
headers: {},
});
const data = await response.json();
{
"data": [
{
"block_number": 12096032869960399000,
"block_timestamp": "1982-06-19T15:39:06Z",
"claim_ids": [
3873692323631982600,
5450697942010433000
],
"code": 2092492935,
"codespace": "Magni maiores in incidunt.",
"error_log": "Asperiores hic necessitatibus quo tempora sunt.",
"hash": "Ut asperiores repellendus.",
"id": "Voluptate sunt temporibus eveniet ullam aut.",
"logs": "VXQgc2l0Lg==",
"messages": "VXQgbGFib3J1bS4=",
"tx_msg_types": "UXVpYSB0b3RhbS4=",
"tx_number": 12001273661897265000
},
{
"block_number": 12096032869960399000,
"block_timestamp": "1982-06-19T15:39:06Z",
"claim_ids": [
3873692323631982600,
5450697942010433000
],
"code": 2092492935,
"codespace": "Magni maiores in incidunt.",
"error_log": "Asperiores hic necessitatibus quo tempora sunt.",
"hash": "Ut asperiores repellendus.",
"id": "Voluptate sunt temporibus eveniet ullam aut.",
"logs": "VXQgc2l0Lg==",
"messages": "VXQgbGFib3J1bS4=",
"tx_msg_types": "UXVpYSB0b3RhbS4=",
"tx_number": 12001273661897265000
},
{
"block_number": 12096032869960399000,
"block_timestamp": "1982-06-19T15:39:06Z",
"claim_ids": [
3873692323631982600,
5450697942010433000
],
"code": 2092492935,
"codespace": "Magni maiores in incidunt.",
"error_log": "Asperiores hic necessitatibus quo tempora sunt.",
"hash": "Ut asperiores repellendus.",
"id": "Voluptate sunt temporibus eveniet ullam aut.",
"logs": "VXQgc2l0Lg==",
"messages": "VXQgbGFib3J1bS4=",
"tx_msg_types": "UXVpYSB0b3RhbS4=",
"tx_number": 12001273661897265000
},
{
"block_number": 12096032869960399000,
"block_timestamp": "1982-06-19T15:39:06Z",
"claim_ids": [
3873692323631982600,
5450697942010433000
],
"code": 2092492935,
"codespace": "Magni maiores in incidunt.",
"error_log": "Asperiores hic necessitatibus quo tempora sunt.",
"hash": "Ut asperiores repellendus.",
"id": "Voluptate sunt temporibus eveniet ullam aut.",
"logs": "VXQgc2l0Lg==",
"messages": "VXQgbGFib3J1bS4=",
"tx_msg_types": "UXVpYSB0b3RhbS4=",
"tx_number": 12001273661897265000
}
],
"paging": {
"countBySubaccount": 3144167030999342600,
"from": 1916499695,
"next": [
"Ea rerum.",
"Aut dolorem cum voluptas quae.",
"Voluptas repellendus qui ipsam est."
],
"to": 391437627,
"total": 7364854934794692000
}
}
GetTxByTxHash returns certain transaction information by its tx hash.
"Illum quos."
OK response.
TxDetailData wraps tx data includes details information
Error message.
"Something has failed"
Status of the response.
"error"
const response = await fetch('https://inj-indexer.nownodes.io/api/explorer/v1/txs/{hash}', {
method: 'GET',
headers: {},
});
const data = await response.json();
{
"data": {
"block_number": 8314399180387247000,
"block_timestamp": "1993-04-25T20:59:11Z",
"block_unix_timestamp": 11376347445097038000,
"claim_ids": [
3168973390518163500,
903561676231749600,
381101834913989200
],
"code": 1728740547,
"codespace": "Itaque laudantium inventore dolor non.",
"data": "TW9sZXN0aWFlIGFuaW1pIGNvbnNlY3RldHVyIHF1aWEu",
"error_log": "Velit velit esse harum ipsum incidunt sit.",
"events": [
{
"attributes": {
"Alias sint sed a ullam deleniti et.": "Quod similique.",
"Corrupti a velit ad.": "Est dolor.",
"Dolorem repellat nulla quaerat reprehenderit quia.": "Qui aliquam omnis."
},
"type": "Consequatur et dolor odit ipsum neque."
},
{
"attributes": {
"Alias sint sed a ullam deleniti et.": "Quod similique.",
"Corrupti a velit ad.": "Est dolor.",
"Dolorem repellat nulla quaerat reprehenderit quia.": "Qui aliquam omnis."
},
"type": "Consequatur et dolor odit ipsum neque."
}
],
"gas_fee": {
"amount": [
{
"amount": "10000000000000000000",
"denom": "inj"
},
{
"amount": "10000000000000000000",
"denom": "inj"
},
{
"amount": "10000000000000000000",
"denom": "inj"
},
{
"amount": "10000000000000000000",
"denom": "inj"
}
],
"gas_limit": 5325440998129688000,
"granter": "Ea ut molestias reiciendis itaque.",
"payer": "Quas voluptatum."
},
"gas_used": 6907220529879614000,
"gas_wanted": 1536953326908131300,
"hash": "Est et nemo quis nemo.",
"id": "Vel nobis.",
"info": "Sed sit.",
"logs": "UXVpYSB2ZWxpdCBxdWku",
"memo": "Consequatur voluptatem.",
"messages": "RmFjaWxpcyBhYiBpbXBlZGl0IHZlcml0YXRpcyBiZWF0YWUgZW5pbS4=",
"signatures": [
{
"address": "Deleniti omnis omnis est sint veritatis.",
"pubkey": "Temporibus cumque quasi aut fugiat voluptas ab.",
"sequence": 13860614979966204000,
"signature": "Nesciunt velit voluptas."
},
{
"address": "Deleniti omnis omnis est sint veritatis.",
"pubkey": "Temporibus cumque quasi aut fugiat voluptas ab.",
"sequence": 13860614979966204000,
"signature": "Nesciunt velit voluptas."
},
{
"address": "Deleniti omnis omnis est sint veritatis.",
"pubkey": "Temporibus cumque quasi aut fugiat voluptas ab.",
"sequence": 13860614979966204000,
"signature": "Nesciunt velit voluptas."
}
],
"tx_number": 14619497193746444000,
"tx_type": "Sit nihil ut vitae assumenda ipsam."
},
"errmsg": "Something has failed",
"s": "error"
}