Txs
Retrieve a transaction using its hash.
Path parameters
hashstringRequired
Tx hash
Responses
200
Tx with the provided hash
application/json
500
Internal Server Error
get
GET /txs/{hash} HTTP/1.1
Host: akt.nownodes.io
Accept: */*
{
"hash": "D085138D913993919295FF4B0A9107F1F2CDE0D37A87CE0644E217CBF3B49656",
"height": 368,
"tx": {
"msg": [
"text"
],
"fee": {
"gas": "text",
"amount": [
{
"denom": "stake",
"amount": "50"
}
]
},
"memo": "text",
"signature": {
"signature": "MEUCIQD02fsDPra8MtbRsyB1w7bqTM55Wu138zQbFcWx4+CFyAIge5WNPfKIuvzBZ69MyqHsqD8S1IwiEp+iUb6VSdtlpgY=",
"pub_key": {
"type": "tendermint/PubKeySecp256k1",
"value": "Avz04VhtKJh8ACCVzlI8aTosGy0ikFXKIVHQ3jKMrosH"
},
"account_number": "0",
"sequence": "0"
}
},
"result": {
"log": "text",
"gas_wanted": "200000",
"gas_used": "26354",
"tags": [
{
"key": "text",
"value": "text"
}
]
}
}
Search transactions by events.
Query parameters
message.actionstringOptional
transaction events such as 'message.action=send' which results in the following endpoint: 'GET /txs?message.action=send'. note that each module documents its own events. look for xx_events.md in the corresponding cosmos-sdk/docs/spec directory
message.senderstringOptional
transaction tags with sender: 'GET /txs?message.action=send&message.sender=cosmos16xyempempp92x9hyzz9wrgf94r6j9h5f06pxxv'
pageintegerOptional
Page number
limitintegerOptional
Maximum number of items per page
tx.minheightintegerOptional
transactions on blocks with height greater or equal this value
tx.maxheightintegerOptional
transactions on blocks with height less than or equal this value
Responses
200
All txs matching the provided events
application/json
400
Invalid search events
500
Internal Server Error
get
GET /txs HTTP/1.1
Host: akt.nownodes.io
Accept: */*
{
"total_count": 1,
"count": 1,
"page_number": 1,
"page_total": 1,
"limit": 30,
"txs": [
{
"hash": "D085138D913993919295FF4B0A9107F1F2CDE0D37A87CE0644E217CBF3B49656",
"height": 368,
"tx": {
"msg": [
"text"
],
"fee": {
"gas": "text",
"amount": [
{
"denom": "stake",
"amount": "50"
}
]
},
"memo": "text",
"signature": {
"signature": "MEUCIQD02fsDPra8MtbRsyB1w7bqTM55Wu138zQbFcWx4+CFyAIge5WNPfKIuvzBZ69MyqHsqD8S1IwiEp+iUb6VSdtlpgY=",
"pub_key": {
"type": "tendermint/PubKeySecp256k1",
"value": "Avz04VhtKJh8ACCVzlI8aTosGy0ikFXKIVHQ3jKMrosH"
},
"account_number": "0",
"sequence": "0"
}
},
"result": {
"log": "text",
"gas_wanted": "200000",
"gas_used": "26354",
"tags": [
{
"key": "text",
"value": "text"
}
]
}
}
]
}
Broadcast a signed tx to a full node
Body
modestringOptionalExample:
block
Responses
200
Tx broadcasting result
application/json
500
Internal Server Error
post
POST /txs HTTP/1.1
Host: akt.nownodes.io
Content-Type: application/json
Accept: */*
Content-Length: 380
{
"tx": {
"msg": [
"text"
],
"fee": {
"gas": "text",
"amount": [
{
"denom": "stake",
"amount": "50"
}
]
},
"memo": "text",
"signature": {
"signature": "MEUCIQD02fsDPra8MtbRsyB1w7bqTM55Wu138zQbFcWx4+CFyAIge5WNPfKIuvzBZ69MyqHsqD8S1IwiEp+iUb6VSdtlpgY=",
"pub_key": {
"type": "tendermint/PubKeySecp256k1",
"value": "Avz04VhtKJh8ACCVzlI8aTosGy0ikFXKIVHQ3jKMrosH"
},
"account_number": "0",
"sequence": "0"
}
},
"mode": "block"
}
{
"check_tx": {
"code": 0,
"data": "data",
"log": "log",
"gas_used": 5000,
"gas_wanted": 10000,
"info": "info",
"tags": [
"",
""
]
},
"deliver_tx": {
"code": 5,
"data": "data",
"log": "log",
"gas_used": 5000,
"gas_wanted": 10000,
"info": "info",
"tags": [
"",
""
]
},
"hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
"height": 1
}