Skip to main content
Version: testnet (v0.71)

Submit transaction

Submit a signed transaction

Request Body required
    tx object

    Represents a transaction to be sent to Vega.

    address string
    inputData byte
    pow object

    Proof of work contains the random transaction id used by the client and the nonce.

    nonce uint64
    tid string
    pubKey string
    signature object

    Signature of the input data.

    algo string
    value string
    version int64
    version string

    Possible values: [TX_VERSION_UNSPECIFIED, TX_VERSION_V2, TX_VERSION_V3]

    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]

Responses

A successful response.


Schema
    code int64
    data Data for details
    height int64
    log string
    success Success will be true if the transaction was accepted by the node, **Important** - success does not mean that the event is confirmed by consensus
    txHash Hash of the transaction, if accepted
Loading...