Simulate
Body
SimulateRequest is the request type for the Service.Simulate RPC method.
tx_bytesstring · byteOptional
tx_bytes is the raw transaction.
Since: cosmos-sdk 0.43
Responses
200
A successful response.
application/json
default
An unexpected error response.
application/json
post
POST /cosmos/tx/v1beta1/simulate HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 632
{
"tx": {
"body": {
"messages": [
{
"type_url": "text",
"value": "Ynl0ZXM="
}
],
"memo": "text",
"timeout_height": "text",
"extension_options": [
{
"type_url": "text",
"value": "Ynl0ZXM="
}
],
"non_critical_extension_options": [
{
"type_url": "text",
"value": "Ynl0ZXM="
}
]
},
"auth_info": {
"signer_infos": [
{
"public_key": {
"type_url": "text",
"value": "Ynl0ZXM="
},
"mode_info": {
"single": {
"mode": "SIGN_MODE_UNSPECIFIED"
},
"multi": {
"bitarray": {
"extra_bits_stored": 1,
"elems": "Ynl0ZXM="
},
"mode_infos": []
}
},
"sequence": "text"
}
],
"fee": {
"amount": [
{
"denom": "text",
"amount": "text"
}
],
"gas_limit": "text",
"payer": "text",
"granter": "text"
}
},
"signatures": [
"Ynl0ZXM="
]
},
"tx_bytes": "Ynl0ZXM="
}
{
"gas_info": {
"gas_wanted": "text",
"gas_used": "text"
},
"result": {
"data": "Ynl0ZXM=",
"log": "text",
"events": [
{
"type": "text",
"attributes": [
{
"key": "Ynl0ZXM=",
"value": "Ynl0ZXM=",
"index": true
}
]
}
]
}
}
Last updated