/txs

Search transactions by events.

Parameters

Name

Description

message.actionstring (query)

transaction events such as 'message.action=send' which results in the following endpoint: 'GET /txs?message.action=send'

message.senderstring (query)

transaction tags with sender: 'GET /txs?message.action=send&message.sender=cosmos16xyempempp92x9hyzz9wrgf94r6j9h5f06pxxv'

pageinteger (query)

Page number

limitinteger (query)

Maximum number of items per page

tx.minheightinteger (query)

transactions on blocks with height greater or equal this value

tx.maxheightinteger (query)

transactions on blocks with height less than or equal this valu

Returns

Transactions that match the provided events

Example

//Request
curl -X GET "http://stargate.cosmos.network/txs?message.action=send&message.sender=cosmos16xyempempp92x9hyzz9wrgf94r6j9h5f06pxxv&page=1&limit=1&tx.minheight=25&tx.maxheight=800000" -H "accept: application/json"
//Response
{
"total_count": 1,
"count": 1,
"page_number": 1,
"page_total": 1,
"limit": 30,
"txs": [
{
"hash": "D085138D913993919295FF4B0A9107F1F2CDE0D37A87CE0644E217CBF3B49656",
"height": 368,
"tx": {
"msg": [
"string"
],
"fee": {
"gas": "string",
"amount": [
{
"denom": "stake",
"amount": "50"
}
]
},
"memo": "string",
"signature": {
"signature": "MEUCIQD02fsDPra8MtbRsyB1w7bqTM55Wu138zQbFcWx4+CFyAIge5WNPfKIuvzBZ69MyqHsqD8S1IwiEp+iUb6VSdtlpgY=",
"pub_key": {
"type": "tendermint/PubKeySecp256k1",
"value": "Avz04VhtKJh8ACCVzlI8aTosGy0ikFXKIVHQ3jKMrosH"
},
"account_number": "0",
"sequence": "0"
}
},
"result": {
"log": "string",
"gas_wanted": "200000",
"gas_used": "26354",
"tags": [
{
"key": "string",
"value": "string"
}
]
}
}
]
}