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