/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.추가("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.그런 다음((결과) => console.log(result))39.catchcatch ((오류) => 콘솔.오류(오류));
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본문: raw,33리디렉션: "follow"34};3536fetch("https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/construction/combine", requestOptions)37.그런 다음((응답) => 응답.text())38.그런 다음((결과) => console.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, 헤더=헤더, data=페이로드)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, 헤더=헤더, data=페이로드)3536인쇄(응답.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 = true910요청 = 순::HTTP::POST.새(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 = Net::HTTP.new(url.host, url.port)8http.use_ssl = true910요청 = 순::HTTP::POST.새(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