/construction/preprocess REST API Endpoint
신체 매개변수
network_identifier
객체
필수
로딩 중...
블록체인
문자열
필수
로딩 중...
네트워크
문자열
필수
로딩 중...
sub_network_identifier
객체
로딩 중...
네트워크
문자열
필수
로딩 중...
메타데이터
객체
로딩 중...
operations
배열
필수
로딩 중...
operation_identifier
객체
필수
로딩 중...
목차
정수
필수
로딩 중...
network_index
정수
로딩 중...
related_operations
배열
로딩 중...
목차
정수
필수
로딩 중...
network_index
정수
로딩 중...
유형
문자열
필수
로딩 중...
상태
문자열
로딩 중...
계정
객체
로딩 중...
주소
문자열
필수
로딩 중...
sub_account
객체
로딩 중...
주소
문자열
필수
로딩 중...
메타데이터
객체
로딩 중...
메타데이터
객체
로딩 중...
금액
객체
로딩 중...
값
문자열
필수
로딩 중...
통화
객체
필수
로딩 중...
기호
문자열
필수
로딩 중...
소수
정수
필수
로딩 중...
메타데이터
객체
로딩 중...
메타데이터
객체
로딩 중...
coin_change
객체
로딩 중...
coin_identifier
객체
필수
로딩 중...
identifier
문자열
필수
로딩 중...
coin_action
문자열
필수
로딩 중...
메타데이터
객체
로딩 중...
메타데이터
객체
로딩 중...
반품
객체
객체
로딩 중...
옵션
객체
로딩 중...
required_public_keys
배열
로딩 중...
주소
문자열
로딩 중...
sub_account
객체
로딩 중...
주소
문자열
로딩 중...
메타데이터
객체
로딩 중...
메타데이터
객체
로딩 중...
요청
1curl --location 'https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/construction/preprocess' \2--헤더 'Content-Type: application/json' \3--data '{4"network_identifier": {5"blockchain": "stacks",6"network": "mainnet"7},8"operations": [9{10"operation_identifier": {11"index": 012},13"type": "<OPERATION_TYPE>",14"account": {15"address": "<ADDRESS>"16},17"amount": {18"value": "<AMOUNT_IN_MICROSTX>",19"currency": {20"symbol": "STX",21"decimals": 622}23}24}25],26"metadata": {}27}'
1curl --location 'https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/construction/preprocess' \2--헤더 'Content-Type: application/json' \3--data '{4"network_identifier": {5"blockchain": "stacks",6"network": "mainnet"7},8"operations": [9{10"operation_identifier": {11"index": 012},13"type": "<OPERATION_TYPE>",14"account": {15"address": "<ADDRESS>"16},17"amount": {18"value": "<AMOUNT_IN_MICROSTX>",19"currency": {20"symbol": "STX",21"decimals": 622}23}24}25],26"metadata": {}27}'
1const myHeaders = new Headers();2myHeaders.추가("Content-Type", "application/json");34const raw = JSON.stringify({5"network_identifier": {6"blockchain": "stacks",7"network": "mainnet"8},9"operations": [10{11"operation_identifier": {12"index": 013},14"type": "<OPERATION_TYPE>",15"account": {16"address": "<ADDRESS>"17},18"amount": {19"value": "<AMOUNT_IN_MICROSTX>",20"currency": {21"symbol": "STX",22"decimals": 623}24}25}26],27"metadata": {}28});2930const requestOptions = {31메서드: "POST",32헤더: myHeaders,33본문: raw,34리디렉션: "follow"35};3637fetch("https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/construction/preprocess", requestOptions)38.그런 다음((응답) => 응답.text())39.그런 다음((결과) => console.log(result))40.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"operations": [10{11"operation_identifier": {12"index": 013},14"type": "<OPERATION_TYPE>",15"account": {16"address": "<ADDRESS>"17},18"amount": {19"value": "<AMOUNT_IN_MICROSTX>",20"currency": {21"symbol": "STX",22"decimals": 623}24}25}26],27"metadata": {}28});2930const requestOptions = {31메서드: "POST",32헤더: myHeaders,33본문: raw,34리디렉션: "follow"35};3637fetch("https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/construction/preprocess", requestOptions)38.그런 다음((응답) => 응답.text())39.그런 다음((결과) => console.log(result))40.catchcatch ((오류) => 콘솔.오류(오류));
1import 요청2import json34url = "https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/construction/preprocess"56페이로드 = json.dumps({7"network_identifier": {8"blockchain": "stacks",9"network": "mainnet"10},11"operations": [12{13"operation_identifier": {14"index": 015},16"type": "<OPERATION_TYPE>",17"account": {18"address": "<ADDRESS>"19},20"amount": {21"value": "<AMOUNT_IN_MICROSTX>",22"currency": {23"symbol": "STX",24"decimals": 625}26}27}28],29"metadata": {}30})31헤더 = {32'Content-Type': 'application/json'33}3435답변 = 요청.요청("POST", url, 헤더=헤더, data=페이로드)3637인쇄(응답.text)
1import 요청2import json34url = "https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/construction/preprocess"56페이로드 = json.dumps({7"network_identifier": {8"blockchain": "stacks",9"network": "mainnet"10},11"operations": [12{13"operation_identifier": {14"index": 015},16"type": "<OPERATION_TYPE>",17"account": {18"address": "<ADDRESS>"19},20"amount": {21"value": "<AMOUNT_IN_MICROSTX>",22"currency": {23"symbol": "STX",24"decimals": 625}26}27}28],29"metadata": {}30})31헤더 = {32'Content-Type': 'application/json'33}3435답변 = 요청.요청("POST", url, 헤더=헤더, data=페이로드)3637인쇄(응답.text)
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/construction/preprocess")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"operations": [18{19"operation_identifier": {20"index": 021},22"type": "<OPERATION_TYPE>",23"account": {24"address": "<ADDRESS>"25},26"amount": {27"value": "<AMOUNT_IN_MICROSTX>",28"currency": {29"symbol": "STX",30"decimals": 631}32}33}34],35"metadata": {}36})3738답변 = http.요청(요청)39응답을 넣습니다.read_body
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/construction/preprocess")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"operations": [18{19"operation_identifier": {20"index": 021},22"type": "<OPERATION_TYPE>",23"account": {24"address": "<ADDRESS>"25},26"amount": {27"value": "<AMOUNT_IN_MICROSTX>",28"currency": {29"symbol": "STX",30"decimals": 631}32}33}34],35"metadata": {}36})3738답변 = http.요청(요청)39응답을 넣습니다.read_body