Construction

Create Network Transaction from Signatures

Changed on

Combine creates a network-specific transaction from an unsigned transaction and an array of provided signatures.

The signed transaction returned from this method will be sent to the /construction/submit endpoint by the caller.

post/construction/combine

Request

  • The document declares no server URL.
  • Auth
    none declared

Request body

ConstructionCombineRequest required

ConstructionCombineRequest is the input to the /construction/combine endpoint. It contains the unsigned transaction blob returned by /construction/payloads and all required signatures to create a network transaction.

network_identifier, NetworkIdentifier required

The network_identifier specifies which network a particular object is associated with.

unsigned_transaction, string required
signatures, Signature[] required

Example request

{
  "network_identifier": {
    "blockchain": "bitcoin",
    "network": "mainnet",
    "sub_network_identifier": {
      "network": "shard 1",
      "metadata": {
        "producer": "0x52bc44d5378309ee2abf1539bf71de1b7d7be3b5"
      }
    }
  },
  "signatures": [
    {
      "signing_payload": {
        "account_identifier": {
          "address": "0x3a065000ab4183c6bf581dc1e55a605455fc6d61",
          "sub_account": {
            "address": "0x6b175474e89094c44da98b954eedeac495271d0f"
          }
        }
      }
    }
  ]
}

Response

Expected response to a valid request

ConstructionCombineResponse required

ConstructionCombineResponse is returned by /construction/combine. The network payload will be sent directly to the construction/submit endpoint.

signed_transaction, string required

Changes

    • breaking

      added the new required request property network_identifier/blockchain

    • breaking

      added the new required request property network_identifier/network

    • breaking

      added the new required request property signatures/items/hex_bytes

    6 more changes in this revision