/construction/metadata REST API Endpoint
신체 매개변수
network_identifier
객체
필수
로딩 중...
블록체인
문자열
필수
로딩 중...
네트워크
문자열
필수
로딩 중...
sub_network_identifier
객체
로딩 중...
네트워크
문자열
필수
로딩 중...
메타데이터
객체
로딩 중...
옵션
객체
로딩 중...
public_keys
배열
로딩 중...
hex_bytes
문자열
필수
로딩 중...
curve_type
문자열
필수
로딩 중...
반품
객체
객체
로딩 중...
메타데이터
객체
로딩 중...
account_sequence
정수
로딩 중...
recent_block_hash
문자열
로딩 중...
suggested_fee
배열
로딩 중...
값
문자열
로딩 중...
통화
객체
로딩 중...
기호
문자열
로딩 중...
소수
정수
로딩 중...
메타데이터
객체
로딩 중...
메타데이터
객체
로딩 중...
요청
1curl --location 'https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/construction/metadata' \2--헤더 'Content-Type: application/json' \3--data '{4"network_identifier": {5"blockchain": "stacks",6"network": "mainnet"7},8"options": {9"<OPTION_KEY>": "<OPTION_VALUE>"10},11"public_keys": [12{13"hex_bytes": "<PUBLIC_KEY_HEX>",14"curve_type": "secp256k1"15}16]17}'
1curl --location 'https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/construction/metadata' \2--헤더 'Content-Type: application/json' \3--data '{4"network_identifier": {5"blockchain": "stacks",6"network": "mainnet"7},8"options": {9"<OPTION_KEY>": "<OPTION_VALUE>"10},11"public_keys": [12{13"hex_bytes": "<PUBLIC_KEY_HEX>",14"curve_type": "secp256k1"15}16]17}'
1const myHeaders = new Headers();2myHeaders.추가("Content-Type", "application/json");34const raw = JSON.stringify({5"network_identifier": {6"blockchain": "stacks",7"network": "mainnet"8},9"options": {10"<OPTION_KEY>": "<OPTION_VALUE>"11},12"public_keys": [13{14"hex_bytes": "<PUBLIC_KEY_HEX>",15"curve_type": "secp256k1"16}17]18});1920const requestOptions = {21메서드: "POST",22헤더: myHeaders,23본문: raw,24리디렉션: "follow"25};2627fetch("https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/construction/metadata", requestOptions)28.그런 다음((응답) => 응답.text())29.그런 다음((결과) => console.log(result))30.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"options": {10"<OPTION_KEY>": "<OPTION_VALUE>"11},12"public_keys": [13{14"hex_bytes": "<PUBLIC_KEY_HEX>",15"curve_type": "secp256k1"16}17]18});1920const requestOptions = {21메서드: "POST",22헤더: myHeaders,23본문: raw,24리디렉션: "follow"25};2627fetch("https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/construction/metadata", requestOptions)28.그런 다음((응답) => 응답.text())29.그런 다음((결과) => console.log(result))30.catchcatch ((오류) => 콘솔.오류(오류));
1import 요청2import json34url = "https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/construction/metadata"56페이로드 = json.dumps({7"network_identifier": {8"blockchain": "stacks",9"network": "mainnet"10},11"options": {12"<OPTION_KEY>": "<OPTION_VALUE>"13},14"public_keys": [15{16"hex_bytes": "<PUBLIC_KEY_HEX>",17"curve_type": "secp256k1"18}19]20})21헤더 = {22'Content-Type': 'application/json'23}2425답변 = 요청.요청("POST", url, 헤더=헤더, data=페이로드)2627인쇄(응답.text)
1import 요청2import json34url = "https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/construction/metadata"56페이로드 = json.dumps({7"network_identifier": {8"blockchain": "stacks",9"network": "mainnet"10},11"options": {12"<OPTION_KEY>": "<OPTION_VALUE>"13},14"public_keys": [15{16"hex_bytes": "<PUBLIC_KEY_HEX>",17"curve_type": "secp256k1"18}19]20})21헤더 = {22'Content-Type': 'application/json'23}2425답변 = 요청.요청("POST", url, 헤더=헤더, data=페이로드)2627인쇄(응답.text)
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/construction/metadata")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"options": {18"<OPTION_KEY>": "<OPTION_VALUE>"19},20"public_keys": [21{22"hex_bytes": "<PUBLIC_KEY_HEX>",23"curve_type": "secp256k1"24}25]26})2728답변 = http.요청(요청)29응답을 넣습니다.read_body
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/construction/metadata")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"options": {18"<OPTION_KEY>": "<OPTION_VALUE>"19},20"public_keys": [21{22"hex_bytes": "<PUBLIC_KEY_HEX>",23"curve_type": "secp256k1"24}25]26})2728답변 = http.요청(요청)29응답을 넣습니다.read_body