Cosmos-sdk: list all actions for tx on LCD

Created on 11 Jul 2019  路  2Comments  路  Source: cosmos/cosmos-sdk

we can query txs by following url.
http://host:1317/txs?action=burn/send

However, we don't know what actions are available.
So, Is it possible to list all actions in document or swagger?

Most helpful comment

The /txs endpoint is actually searching for the tags and the tags are defined in each module. Maybe we can dig out all actions and add them to the swagger ui. The action tag is assigned with the message type when the message is being handled.

This is an example of the action tag of create validator tx.
https://github.com/cosmos/cosmos-sdk/blob/280734d0e37f16b725906ec2b151c0b20e7dfaf1/x/staking/types/msg.go#L63

All 2 comments

The /txs endpoint is actually searching for the tags and the tags are defined in each module. Maybe we can dig out all actions and add them to the swagger ui. The action tag is assigned with the message type when the message is being handled.

This is an example of the action tag of create validator tx.
https://github.com/cosmos/cosmos-sdk/blob/280734d0e37f16b725906ec2b151c0b20e7dfaf1/x/staking/types/msg.go#L63

All the events are defined within each of the specifications of the modules, located in docs/spec/<module_name>/0X_events.go.

Closing this

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kevlubkcm picture kevlubkcm  路  3Comments

hendrikhofstadt picture hendrikhofstadt  路  3Comments

mossid picture mossid  路  3Comments

johnmcdowall picture johnmcdowall  路  3Comments

rigelrozanski picture rigelrozanski  路  3Comments