/construction/combine REST API Endpoint
Body Parameters
network_identifier
object
REQUIRED
Loading...
blockchain
string
REQUIRED
Loading...
network
string
REQUIRED
Loading...
sub_network_identifier
object
Loading...
network
string
REQUIRED
Loading...
metadata
object
Loading...
unsigned_transaction
string
REQUIRED
Loading...
signatures
array
REQUIRED
Loading...
signing_payload
object
REQUIRED
Loading...
address
string
Loading...
account_identifier
object
Loading...
address
string
REQUIRED
Loading...
sub_account
object
Loading...
address
string
REQUIRED
Loading...
metadata
object
Loading...
metadata
object
Loading...
hex_bytes
string
REQUIRED
Loading...
signature_type
string
Loading...
public_key
object
REQUIRED
Loading...
hex_bytes
string
REQUIRED
Loading...
curve_type
string
REQUIRED
Loading...
signature_type
string
REQUIRED
Loading...
hex_bytes
string
REQUIRED
Loading...
Returns
object
object
Loading...
signed_transaction
string
Loading...
Request
1curl --location 'https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/construction/combine' \2--header 'Content-Type: application/json' \3--data '{4"network_identifier": {5"blockchain": "stacks",6"network": "mainnet"7},8"unsigned_transaction": "<UNSIGNED_TRANSACTION_HEX>",9"signatures": [10{11"signing_payload": {12"account_identifier": {13"address": "<SIGNER_ADDRESS>"14},15"hex_bytes": "<SIGNING_PAYLOAD_HEX>",16"signature_type": "ecdsa"17},18"public_key": {19"hex_bytes": "<PUBLIC_KEY_HEX>",20"curve_type": "secp256k1"21},22"signature_type": "ecdsa",23"hex_bytes": "<SIGNATURE_HEX>"24}25]26}'
1curl --location 'https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/construction/combine' \2--header 'Content-Type: application/json' \3--data '{4"network_identifier": {5"blockchain": "stacks",6"network": "mainnet"7},8"unsigned_transaction": "<UNSIGNED_TRANSACTION_HEX>",9"signatures": [10{11"signing_payload": {12"account_identifier": {13"address": "<SIGNER_ADDRESS>"14},15"hex_bytes": "<SIGNING_PAYLOAD_HEX>",16"signature_type": "ecdsa"17},18"public_key": {19"hex_bytes": "<PUBLIC_KEY_HEX>",20"curve_type": "secp256k1"21},22"signature_type": "ecdsa",23"hex_bytes": "<SIGNATURE_HEX>"24}25]26}'
1const myHeaders = new Headers();2myHeaders.append("Content-Type", "application/json");34const raw = JSON.stringify({5"network_identifier": {6"blockchain": "stacks",7"network": "mainnet"8},9"unsigned_transaction": "<UNSIGNED_TRANSACTION_HEX>",10"signatures": [11{12"signing_payload": {13"account_identifier": {14"address": "<SIGNER_ADDRESS>"15},16"hex_bytes": "<SIGNING_PAYLOAD_HEX>",17"signature_type": "ecdsa"18},19"public_key": {20"hex_bytes": "<PUBLIC_KEY_HEX>",21"curve_type": "secp256k1"22},23"signature_type": "ecdsa",24"hex_bytes": "<SIGNATURE_HEX>"25}26]27});2829const requestOptions = {30method: "POST",31headers: myHeaders,32body: raw,33redirect: "follow"34};3536fetch("https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/construction/combine", requestOptions)37.then((response) => response.text())38.then((result) => console.log(result))39.catch((error) => console.error(error));
1const myHeaders = new Headers();2myHeaders.append("Content-Type", "application/json");34const raw = JSON.stringify({5"network_identifier": {6"blockchain": "stacks",7"network": "mainnet"8},9"unsigned_transaction": "<UNSIGNED_TRANSACTION_HEX>",10"signatures": [11{12"signing_payload": {13"account_identifier": {14"address": "<SIGNER_ADDRESS>"15},16"hex_bytes": "<SIGNING_PAYLOAD_HEX>",17"signature_type": "ecdsa"18},19"public_key": {20"hex_bytes": "<PUBLIC_KEY_HEX>",21"curve_type": "secp256k1"22},23"signature_type": "ecdsa",24"hex_bytes": "<SIGNATURE_HEX>"25}26]27});2829const requestOptions = {30method: "POST",31headers: myHeaders,32body: raw,33redirect: "follow"34};3536fetch("https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/construction/combine", requestOptions)37.then((response) => response.text())38.then((result) => console.log(result))39.catch((error) => console.error(error));
1import requests2import json34url = "https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/construction/combine"56payload = json.dumps({7"network_identifier": {8"blockchain": "stacks",9"network": "mainnet"10},11"unsigned_transaction": "<UNSIGNED_TRANSACTION_HEX>",12"signatures": [13{14"signing_payload": {15"account_identifier": {16"address": "<SIGNER_ADDRESS>"17},18"hex_bytes": "<SIGNING_PAYLOAD_HEX>",19"signature_type": "ecdsa"20},21"public_key": {22"hex_bytes": "<PUBLIC_KEY_HEX>",23"curve_type": "secp256k1"24},25"signature_type": "ecdsa",26"hex_bytes": "<SIGNATURE_HEX>"27}28]29})30headers = {31'Content-Type': 'application/json'32}3334response = requests.request("POST", url, headers=headers, data=payload)3536print(response.text)
1import requests2import json34url = "https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/construction/combine"56payload = json.dumps({7"network_identifier": {8"blockchain": "stacks",9"network": "mainnet"10},11"unsigned_transaction": "<UNSIGNED_TRANSACTION_HEX>",12"signatures": [13{14"signing_payload": {15"account_identifier": {16"address": "<SIGNER_ADDRESS>"17},18"hex_bytes": "<SIGNING_PAYLOAD_HEX>",19"signature_type": "ecdsa"20},21"public_key": {22"hex_bytes": "<PUBLIC_KEY_HEX>",23"curve_type": "secp256k1"24},25"signature_type": "ecdsa",26"hex_bytes": "<SIGNATURE_HEX>"27}28]29})30headers = {31'Content-Type': 'application/json'32}3334response = requests.request("POST", url, headers=headers, data=payload)3536print(response.text)
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/construction/combine")67http = Net::HTTP.new(url.host, url.port)8http.use_ssl = true910request = Net::HTTP::Post.new(url)11request["Content-Type"] = "application/json"12request.body = JSON.dump({13"network_identifier": {14"blockchain": "stacks",15"network": "mainnet"16},17"unsigned_transaction": "<UNSIGNED_TRANSACTION_HEX>",18"signatures": [19{20"signing_payload": {21"account_identifier": {22"address": "<SIGNER_ADDRESS>"23},24"hex_bytes": "<SIGNING_PAYLOAD_HEX>",25"signature_type": "ecdsa"26},27"public_key": {28"hex_bytes": "<PUBLIC_KEY_HEX>",29"curve_type": "secp256k1"30},31"signature_type": "ecdsa",32"hex_bytes": "<SIGNATURE_HEX>"33}34]35})3637response = http.request(request)38puts response.read_body
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/construction/combine")67http = Net::HTTP.new(url.host, url.port)8http.use_ssl = true910request = Net::HTTP::Post.new(url)11request["Content-Type"] = "application/json"12request.body = JSON.dump({13"network_identifier": {14"blockchain": "stacks",15"network": "mainnet"16},17"unsigned_transaction": "<UNSIGNED_TRANSACTION_HEX>",18"signatures": [19{20"signing_payload": {21"account_identifier": {22"address": "<SIGNER_ADDRESS>"23},24"hex_bytes": "<SIGNING_PAYLOAD_HEX>",25"signature_type": "ecdsa"26},27"public_key": {28"hex_bytes": "<PUBLIC_KEY_HEX>",29"curve_type": "secp256k1"30},31"signature_type": "ecdsa",32"hex_bytes": "<SIGNATURE_HEX>"33}34]35})3637response = http.request(request)38puts response.read_body
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free