/construction/combine REST API Endpoint
身体パラメータ
network_identifier
オブジェクト
必須
読み込み中...
ブロックチェーン
文字列
必須
読み込み中...
ネットワーク
文字列
必須
読み込み中...
sub_network_identifier
オブジェクト
読み込み中...
ネットワーク
文字列
必須
読み込み中...
メタデータ
オブジェクト
読み込み中...
unsigned_transaction
文字列
必須
読み込み中...
署名
配列
必須
読み込み中...
signing_payload
オブジェクト
必須
読み込み中...
住所
文字列
読み込み中...
account_identifier
オブジェクト
読み込み中...
住所
文字列
必須
読み込み中...
sub_account
オブジェクト
読み込み中...
住所
文字列
必須
読み込み中...
メタデータ
オブジェクト
読み込み中...
メタデータ
オブジェクト
読み込み中...
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.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 = {30メソッド: "POST",31ヘッダー: myHeaders,32本文: raw,33リダイレクト: "follow"34};3536fetch("https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/construction/combine", requestOptions)37.その後((レスポンス) => レスポンス.text())38.その後((結果) => コンソール.log(result))39.catchcatch((エラー) => コンソール.エラー(エラー));
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 = {30メソッド: "POST",31ヘッダー: myHeaders,32本文: raw,33リダイレクト: "follow"34};3536fetch("https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/construction/combine", requestOptions)37.その後((レスポンス) => レスポンス.text())38.その後((結果) => コンソール.log(result))39.catchcatch((エラー) => コンソール.エラー(エラー));
1import リクエスト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, データ=ペイロード)3536印刷(レスポンス.text)
1import リクエスト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, データ=ペイロード)3536印刷(レスポンス.text)
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/construction/combine")67http = ネット::HTTP.new(url.ホスト, url.ポート)8http.use_ssl = true910リクエスト = ネット::HTTP::POST.new(URL)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
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/construction/combine")67http = ネット::HTTP.new(url.ホスト, url.ポート)8http.use_ssl = true910リクエスト = ネット::HTTP::POST.new(URL)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