Submit

POST /wallets/{walletId}/transactions-submit

status: stable

Submit a transaction that was already created and signed. Fails for foreign transactions that is transactions which lack the wallet's inputs and withdrawals.

Path parameters

  • walletId string(hex) Required

    Minimum length is 40, maximum length is 40.

application/json

Body Required

  • transaction string(base64|base16) Required

    The CBOR-encoded transaction, represented in either hex or base64 encoding. This always includes the transaction body and the witness set, even if the latter is empty.

Responses

  • 425 application/json

    Mempool is Full

    Hide response attributes Show response attributes object
    • message string Required

      May occur when submitting a serialized transaction to a node with full mempool.

    • code string Required

      Value is mempool_is_full.

  • 415 application/json

    Unsupported Media Type

    Hide response attributes Show response attributes object
    • message string Required

      May occur when providing an invalid 'Content-Type' header.

    • code string Required

      Value is unsupported_media_type.

  • 406 application/json

    Not Acceptable

    Hide response attributes Show response attributes object
    • message string Required

      May occur when providing an invalid 'Accept' header.

    • code string Required

      Value is not_acceptable.

  • 400 application/json

    Bad Request

    Hide response attributes Show response attributes object
    • message string Required

      May occur when a request is not well-formed; that is, it fails to parse successfully. This could be the case when some required parameters are missing or, when malformed values are provided.

    • code string Required

      Value is bad_request.

  • 202 application/json

    Accepted

    Hide response attribute Show response attribute object
    • id string(hex) Required

      A unique identifier for this transaction

      Minimum length is 64, maximum length is 64.

POST /wallets/{walletId}/transactions-submit
curl \
 --request POST https://localhost:8090/v2/wallets/{walletId}/transactions-submit \
 --header "Content-Type: application/json" \
 --data '{"transaction":"string"}'
Request examples
{
  "transaction": "string"
}
Response examples (425)
{
  "message": "string",
  "code": "mempool_is_full"
}
Response examples (415)
{
  "message": "string",
  "code": "unsupported_media_type"
}
Response examples (406)
{
  "message": "string",
  "code": "not_acceptable"
}
Response examples (400)
{
  "message": "string",
  "code": "bad_request"
}
Response examples (202)
{
  "id": "1423856bc91c49e928f6f30f4e8d665d53eb4ab6028bd0ac971809d514c92db1"
}