/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.append("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.その後((結果) => コンソール.log(result))40.catchcatch((エラー) => コンソール.エラー(エラー));
1const myHeaders = new Headers();2myHeaders.append("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.その後((結果) => コンソール.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, headers=headers, データ=ペイロード)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, headers=headers, データ=ペイロード)3637印刷(レスポンス.text)
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/construction/preprocess")67http = ネット::HTTP.new(url.ホスト, url.ポート)8http.use_ssl = true910リクエスト = ネット::HTTP::POST.new(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 = ネット::HTTP.new(url.ホスト, url.ポート)8http.use_ssl = true910リクエスト = ネット::HTTP::POST.new(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