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?
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
Most helpful comment
The
/txsendpoint 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. Theactiontag 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