Submit transaction
Submit a signed transaction
Request Body required
- TYPE_ASYNC: Transaction will be submitted without waiting for response
- TYPE_SYNC: Transaction will be submitted, and blocking until the tendermint mempool returns a response
- TYPE_COMMIT: Transaction will be submitted, and blocking until the tendermint network has committed it into a block. Used only for debugging, not for submitting transactions
tx object
Represents a transaction to be sent to Vega.
Hex-encoded address of the sender. Not supported yet.
One of the set of Vega commands. These bytes are should be built as follows: chain_id_as_bytes + \0 character as delimiter + proto_marshalled_command.
pow object
Proof of work contains the random transaction id used by the client and the nonce.
Number which, combined with the transaction identifier, will produce a hash with the required number of leading zeros to be accepted by the network.
Unique transaction identifier used to seed the proof-of-work hash.
Hex-encoded public key of the sender.
signature object
Signature of the input data.
Algorithm used to create the signature.
Hex encoded bytes of the signature.
Version of the signature used to create the signature.
Possible values: [TX_VERSION_UNSPECIFIED
, TX_VERSION_V2
, TX_VERSION_V3
]
Default value: TX_VERSION_UNSPECIFIED
Version of the transaction, to be used in the future in case changes are implemented to the transaction format.
Possible values: [TYPE_UNSPECIFIED
, TYPE_ASYNC
, TYPE_SYNC
, TYPE_COMMIT
]
Default value: TYPE_UNSPECIFIED
- 200
- default
A successful response.
Schema
{
"code": 0,
"data": "string",
"height": "string",
"log": "string",
"success": true,
"txHash": "string"
}
An unexpected error response.
Schema
- Array [
- ]
details object[]
{
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
}