Protobuf JSON
Automatically creates json as a transaction in protobuf format.
When using signAndTransaction
, send a message as shown below.
This is an example. You can request it by filling in the value in [input]
.
Test
You can test it by connecting directly to your wallet. Please refer to the example below and send a transaction.
It will be sent directly to the cosmoshub-4
mainnet, so don't sign if you don't want to.
1. Connect
2. Get Account
3. Sign And Send Transaction
It is editable.
You can send multiple messages.
🚫
The actual transaction is executed. If you don't want to, don't sign.
Example
Send
{
"type_url": "/cosmos.bank.v1beta1.MsgSend",
"value": {
"from_address": "from_address", // [input]: string
"to_address": "to_address", // [input]: string
"amount": [
{
"denom": "denom", // [input]: string
"amount": "amount" // [input]: string
}
]
}
}
MultiSend
{
"type_url": "/cosmos.bank.v1beta1.MsgMultiSend",
"value": {
"inputs": [
{
"address": "address", // [input]: string
"coins": [
{
"denom": "denom", // [input]: string
"amount": "amount" // [input]: string
}
]
}
],
"outputs": [
{
"address": "address", // [input]: string
"coins": [
{
"denom": "denom", // [input]: string
"amount": "amount" // [input]: string
}
]
}
]
}
}
Delegate
{
"type_url": "/cosmos.staking.v1beta1.MsgDelegate",
"value": {
"delegator_address": "delegator_address", // [input]: string
"validator_address": "validator_address", // [input]: string
"amount": {
"denom": "denom", // [input]: string
"amount": "amount" // [input]: string
}
}
}
Redelegate
{
"type_url": "/cosmos.staking.v1beta1.MsgBeginRedelegate",
"value": {
"delegator_address": "[input]", // [input]: string
"validator_src_address": "[input]", // [input]: string
"validator_dst_address": "[input]", // [input]: string
"amount": {
"denom": "[input]", // [input]: string
"amount": "[input]" // [input]: string
}
}
}
Undelegate
{
"type_url": "/cosmos.staking.v1beta1.MsgUndelegate",
"value": {
"delegator_address": "delegator_address", // [input]: string
"validator_address": "validator_address", // [input]: string
"amount": {
"denom": "denom", // [input]: string
"amount": "amount" // [input]: string
}
}
}
Reward
{
"type_url": "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",
"value": {
"delegator_address": "delegator_address", // [input]: string
"validator_address": "validator_address" // [input]: string
}
}
Vote
{
"type_url": "/cosmos.gov.v1beta1.MsgVote",
"value": {
"proposal_id": 823, // [input]: number
"voter": "voter", // [input]: string
"option": 1 // [input]: number (yes: 1, abstain: 2, no: 3, no_with_veto: 4)
}
}
Vote Options
enum VoteOption {
VOTE_OPTION_UNSPECIFIED = 0,
VOTE_OPTION_YES = 1,
VOTE_OPTION_ABSTAIN = 2,
VOTE_OPTION_NO = 3,
VOTE_OPTION_NO_WITH_VETO = 4
}
IBC Transfer
{
"type_url": "/ibc.applications.transfer.v1.MsgTransfer",
"value": {
"source_port": "source_port", // [input]: string
"source_channel": "source_channel", // [input]: string
"token": {
"denom": "denom", // [input]: string
"amount": "amount" // [input]: string
},
"sender": "sender", // [input]: string
"receiver": "receiver", // [input]: string
"timeout_height": {
"revision_height": 13594714, // [input]: number
"revision_number": 2 // [input]: number
},
"memo": "" // [input]: string
}
}
Cosmwasm ExecuteContract
{
"type_url": "/cosmwasm.wasm.v1.MsgExecuteContract",
"value": {
"sender": "sender", // [input]: string
"contract": "contract", // [input]: string
"funds": [], // [input]: unknown[]
"msg": [1, 2] // [input]: Buffer or Uint8Array
}
}
Proposal
TextProposal (v1beta1)
{
"type_url": "/cosmos.gov.v1beta1.MsgSubmitProposal",
"value": {
"content": {
"type_url": "/cosmos.gov.v1beta1.TextProposal",
"value": {
"title": "title", // [input]: string
"description": "description" // [input]: string
}
},
"initial_deposit": [
{
"denom": "denom", // [input]: string
"amount": "amount" // [input]: string
}
],
"proposer": "proposer" // [input]: string
}
}
TextProposal (v1)
{
"type_url": "/cosmos.gov.v1.MsgSubmitProposal",
"value": {
"messages": [],
"initial_deposit": [
{
"denom": "denom", // [input]: string
"amount": "amount" // [input]: string
}
],
"proposer": "proposer", // [input]: string
"metadata": "metadata", // [input]: string
"title": "title", // [input]: string
"summary": "summary" // [input]: string
}
}
ClientUpdateProposal
{
"type_url": "/cosmos.gov.v1beta1.MsgSubmitProposal",
"value": {
"content": {
"type_url": "/ibc.core.client.v1.ClientUpdateProposal",
"value": {
"title": "title", // [input]: string
"description": "description", // [input]: string
"subject_client_id": "subject_client_id", // [input]: string
"substitute_client_id": "substitute_client_id" // [input]: string
}
},
"initial_deposit": [],
"proposer": "proposer" // [input]: string
}
}
CommunityPoolSpendProposal
{
"type_url": "/cosmos.gov.v1beta1.MsgSubmitProposal",
"value": {
"content": {
"type_url": "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal",
"value": {
"title": "title", // [input]: string
"description": "description", // [input]: string
"recipient": "recipient", // [input]: string
"amount": [
{
"denom": "denom", // [input]: string
"amount": "amount" // [input]: string
}
]
}
},
"initial_deposit": [
{
"denom": "denom", // [input]: string
"amount": "amount" // [input]: string
}
],
"proposer": "proposer" // [input]: string
}
}
ParameterChangeProposal
{
"type_url": "/cosmos.gov.v1beta1.MsgSubmitProposal",
"value": {
"content": {
"type_url": "/cosmos.params.v1beta1.ParameterChangeProposal",
"value": {
"title": "title", // [input]: string
"description": "description", // [input]: string
"changes": [
{
"subspace": "subspace", // [input]: string
"key": "key", // [input]: string
"value": "value" // [input]: string
}
]
}
},
"initial_deposit": [
{
"denom": "denom", // [input]: string
"amount": "amount" // [input]: string
}
],
"proposer": "proposer" // [input]: string
}
}
SoftwareUpgradeProposal
{
"type_url": "/cosmos.gov.v1beta1.MsgSubmitProposal",
"value": {
"content": {
"type_url": "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal",
"value": {
"title": "title", // [input]: string
"description": "description", // [input]: string
"plan": {
"name": "name", // [input]: string
"height": "height", // [input]: string
"info": "info", // [input]: string
"upgraded_client_state": null // [input]: null or IAny
}
}
},
"initial_deposit": [
{
"denom": "denom", // [input]: string
"amount": "amount" // [input]: string
}
],
"proposer": "proposer" // [input]: string
}
}
Grant
Delegate Grant
{
"type_url": "/cosmos.authz.v1beta1.MsgGrant",
"value": {
"granter": "granter", // [input]: string
"grantee": "grantee", // [input]: string
"grant": {
"authorization": {
"type_url": "/cosmos.staking.v1beta1.StakeAuthorization",
"value": {
"allow_list": {
"address": ["address", "address"] // [input]: string[]
},
"authorization_type": 1 // [input]: number
}
},
"expiration": {
"type_url": "/google.protobuf.Timestamp",
"value": {
"seconds": 5325252355 // [input]: number (unix time)
}
}
}
}
}
Revoke Delegate Grant
{
"type_url": "/cosmos.authz.v1beta1.MsgRevoke",
"value": {
"granter": "granter", // [input]: string
"grantee": "grantee", // [input]: string
"msg_type_url": "/cosmos.staking.v1beta1.MsgDelegate"
}
}
Authorization Type
type AuthorizationType = {
AUTHORIZATION_TYPE_UNSPECIFIED = 0,
AUTHORIZATION_TYPE_DELEGATE = 1,
AUTHORIZATION_TYPE_UNDELEGATE = 2,
AUTHORIZATION_TYPE_REDELEGATE = 3
}