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 is40
.
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.
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"
}