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