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

Submit raw transaction

Submit a version agnostic signed transaction

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]

Responses

A successful response.


Schema
    code int64
    data string
    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
POST /transaction/raw

Request

Base URL
https://n06.testnet.vega.xyz
Body required
{
"tx": "string",
"type": "TYPE_UNSPECIFIED"
}
curl / cURL
curl -L -X POST 'https://n06.testnet.vega.xyz/transaction/raw' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"tx": "string",
"type": "TYPE_UNSPECIFIED"
}'