Skip to main content
Version: mainnet (v0.73)

Submit raw transaction

Submit a pre-serialised signed transaction containing a command to the network to be executed, such that if the submission is successful then it will be included in the chain's mempool. The network will then attempt to execute the transaction in the next available block, where the results of its execution can be seen on the EventBus.

Request Body required
    tx byte required
    type Type of transaction request, for example ASYNC, meaning the transaction will be submitted and not block on a response

    Possible values: [TYPE_UNSPECIFIED, TYPE_ASYNC, TYPE_SYNC, TYPE_COMMIT]

    Default value: TYPE_UNSPECIFIED

    • 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
Responses

A successful response.


Schema
    code int64

    Error code to indicate the category of failure if the transaction was not successfully submitted.

    data string

    Further details for why the transaction was not successfully submitted.

    height int64

    Unused.

    log string

    Further details for the underlying consensus layer of the result of the transaction.

    success boolean

    Whether or not the transaction was validated and submitted to the chain's mempool.

    txHash string

    Hash of the transaction, which can be used to identify the transaction in a node's event stream.

Loading...