Submit a Signed Transaction
Changed onSubmit a pre-signed transaction to the node. This call should not block on the transaction being included in a block. Rather, it should return immediately with an indication of whether or not the transaction was included in the mempool.
The transaction submission response should only return a 200 status if the submitted transaction could be included in the mempool. Otherwise, it should return an error.
Request
- The document declares no server URL.
- Authnone declared
Request body
The transaction submission request includes a signed transaction.
The network_identifier specifies which network a particular object is associated with.
Example request
{
"network_identifier": {
"blockchain": "bitcoin",
"network": "mainnet",
"sub_network_identifier": {
"network": "shard 1",
"metadata": {
"producer": "0x52bc44d5378309ee2abf1539bf71de1b7d7be3b5"
}
}
}
}Response
Expected response to a valid request
TransactionIdentifierResponse contains the transaction_identifier of a transaction that was submitted to either /construction/hash or /construction/submit.
The transaction_identifier uniquely identifies a transaction in a particular network and block or in the mempool.
Example response
{
"transaction_identifier": {
"hash": "0x2f23fd8cca835af21f3ac375bac601f97ead75f2e79143bdf71fe2c4be043e8f"
}
}Changes
- breaking
added the new required request property
network_identifier/blockchain - breaking
added the new required request property
network_identifier/network - breaking
the
network_identifierrequest property type changed from no type toobject
3 more changes in this revision
- breaking