/construction/combine REST API Endpoint
身體參數
network_identifier
物件
必填
載入中...
區塊鏈
字串
必填
載入中...
網路
字串
必填
載入中...
sub_network_identifier
物件
載入中...
網路
字串
必填
載入中...
metadata
物件
載入中...
unsigned_transaction
字串
必填
載入中...
簽名
陣列
必填
載入中...
signing_payload
物件
必填
載入中...
地址
字串
載入中...
account_identifier
物件
載入中...
地址
字串
必填
載入中...
sub_account
物件
載入中...
地址
字串
必填
載入中...
metadata
物件
載入中...
metadata
物件
載入中...
hex_bytes
字串
必填
載入中...
signature_type
字串
載入中...
公開金鑰
物件
必填
載入中...
hex_bytes
字串
必填
載入中...
curve_type
字串
必填
載入中...
signature_type
字串
必填
載入中...
hex_bytes
字串
必填
載入中...
退貨
物件
物件
載入中...
signed_transaction
字串
載入中...
請求
1curl --location 'https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/construction/combine' \2--標頭 '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--標頭 '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.追加("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 = {30方法: 「POST」,31標題: myHeaders,32正文: 原始,33重定向: 「追蹤」34};3536fetch("https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/construction/combine", requestOptions)37.接著((回應) => 回應.文字())38.接著((結果) => 控制台.log(結果))39.catch((錯誤) => 控制台.錯誤(錯誤));
1const myHeaders = new Headers();2myHeaders.追加("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 = {30方法: 「POST」,31標題: myHeaders,32正文: 原始,33重定向: 「追蹤」34};3536fetch("https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/construction/combine", requestOptions)37.接著((回應) => 回應.文字())38.接著((結果) => 控制台.log(結果))39.catch((錯誤) => 控制台.錯誤(錯誤));
1匯入 請求2import json34url = "https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/construction/combine"56有效載荷 = 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})30標題 = {31「Content-Type」: 'application/json'32}3334回應 = 請求.請求("POST", url, headers=headers, data=有效載荷)3536列印(回應.text)
1匯入 請求2import json34url = "https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/construction/combine"56有效載荷 = 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})30標題 = {31「Content-Type」: 'application/json'32}3334回應 = 請求.請求("POST", url, headers=headers, data=有效載荷)3536列印(回應.text)
1需要 "uri"2require "json"3需要 "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 = true910請求 = 淨::HTTP::POST.new(網址)11請求["Content-Type"] = "application/json"12請求。正文 = 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})3637回應 = http.請求(請求)38將回應。read_body
1需要 "uri"2require "json"3需要 "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 = true910請求 = 淨::HTTP::POST.new(網址)11請求["Content-Type"] = "application/json"12請求。正文 = 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})3637回應 = http.請求(請求)38將回應。read_body