/block/transaction REST API Endpoint
身体パラメータ
network_identifier
オブジェクト
必須
読み込み中...
ブロックチェーン
文字列
必須
読み込み中...
ネットワーク
文字列
必須
読み込み中...
sub_network_identifier
オブジェクト
読み込み中...
ネットワーク
文字列
必須
読み込み中...
メタデータ
オブジェクト
読み込み中...
block_identifier
オブジェクト
必須
読み込み中...
目次
整数
読み込み中...
ハッシュ
文字列
読み込み中...
transaction_identifier
オブジェクト
必須
読み込み中...
ハッシュ
文字列
必須
読み込み中...
返品
オブジェクト
オブジェクト
読み込み中...
transaction_identifier
オブジェクト
読み込み中...
ハッシュ
文字列
読み込み中...
operations
配列
読み込み中...
operation_identifier
オブジェクト
読み込み中...
目次
整数
読み込み中...
タイプ
文字列
読み込み中...
ステータス
文字列
読み込み中...
アカウント
オブジェクト
読み込み中...
住所
文字列
読み込み中...
金額
オブジェクト
読み込み中...
値
文字列
読み込み中...
通貨
オブジェクト
読み込み中...
小数
整数
読み込み中...
記号
文字列
読み込み中...
メタデータ
オブジェクト
読み込み中...
contract_id
文字列
読み込み中...
function_name
文字列
読み込み中...
function_signature
文字列
読み込み中...
function_args
配列
読み込み中...
hex
文字列
読み込み中...
repr
文字列
読み込み中...
名前
文字列
読み込み中...
タイプ
文字列
読み込み中...
リクエスト
1curl --location 'https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/block/transaction' \2--ヘッダー 'Content-Type: application/json' \3--data '{4"network_identifier": {5"blockchain": "stacks",6"network": "mainnet"7},8"block_identifier": {9"index": 12345,10"hash": "0x00b4db73531373778711133f393f27ab49039e8352dd591d961532329f514fc4"11},12"transaction_identifier": {13"hash": "0xbb3fa01de972d24e04f9523c3bdb34ee34b8736e991a5fd4f2b1569313a4b9d3"14}15}'
1curl --location 'https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/block/transaction' \2--ヘッダー 'Content-Type: application/json' \3--data '{4"network_identifier": {5"blockchain": "stacks",6"network": "mainnet"7},8"block_identifier": {9"index": 12345,10"hash": "0x00b4db73531373778711133f393f27ab49039e8352dd591d961532329f514fc4"11},12"transaction_identifier": {13"hash": "0xbb3fa01de972d24e04f9523c3bdb34ee34b8736e991a5fd4f2b1569313a4b9d3"14}15}'
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"block_identifier": {10"index": 12345,11"hash": "0x00b4db73531373778711133f393f27ab49039e8352dd591d961532329f514fc4"12},13"transaction_identifier": {14"hash": "0xbb3fa01de972d24e04f9523c3bdb34ee34b8736e991a5fd4f2b1569313a4b9d3"15}16});1718const requestOptions = {19メソッド: "POST",20ヘッダー: myHeaders,21本文: raw,22リダイレクト: "follow"23};2425fetch("https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/block/transaction", requestOptions)26.その後((レスポンス) => レスポンス.text())27.その後((結果) => コンソール.log(result))28.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"block_identifier": {10"index": 12345,11"hash": "0x00b4db73531373778711133f393f27ab49039e8352dd591d961532329f514fc4"12},13"transaction_identifier": {14"hash": "0xbb3fa01de972d24e04f9523c3bdb34ee34b8736e991a5fd4f2b1569313a4b9d3"15}16});1718const requestOptions = {19メソッド: "POST",20ヘッダー: myHeaders,21本文: raw,22リダイレクト: "follow"23};2425fetch("https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/block/transaction", requestOptions)26.その後((レスポンス) => レスポンス.text())27.その後((結果) => コンソール.log(result))28.catchcatch((エラー) => コンソール.エラー(エラー));
1import リクエスト2import json34url = "https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/block/transaction"56ペイロード = json.dumps({7"network_identifier": {8"blockchain": "stacks",9"network": "mainnet"10},11"block_identifier": {12"index": 12345,13"hash": "0x00b4db73531373778711133f393f27ab49039e8352dd591d961532329f514fc4"14},15"transaction_identifier": {16"hash": "0xbb3fa01de972d24e04f9523c3bdb34ee34b8736e991a5fd4f2b1569313a4b9d3"17}18})19ヘッダー = {20「Content-Type」: 'application/json'21}2223回答 = リクエスト.リクエスト("POST", url, headers=headers, データ=ペイロード)2425印刷(レスポンス.text)
1import リクエスト2import json34url = "https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/block/transaction"56ペイロード = json.dumps({7"network_identifier": {8"blockchain": "stacks",9"network": "mainnet"10},11"block_identifier": {12"index": 12345,13"hash": "0x00b4db73531373778711133f393f27ab49039e8352dd591d961532329f514fc4"14},15"transaction_identifier": {16"hash": "0xbb3fa01de972d24e04f9523c3bdb34ee34b8736e991a5fd4f2b1569313a4b9d3"17}18})19ヘッダー = {20「Content-Type」: 'application/json'21}2223回答 = リクエスト.リクエスト("POST", url, headers=headers, データ=ペイロード)2425印刷(レスポンス.text)
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/block/transaction")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"block_identifier": {18"index": 12345,19"hash": "0x00b4db73531373778711133f393f27ab49039e8352dd591d961532329f514fc4"20},21"transaction_identifier": {22"hash": "0xbb3fa01de972d24e04f9523c3bdb34ee34b8736e991a5fd4f2b1569313a4b9d3"23}24})2526回答 = http.リクエスト(リクエスト)27レスポンスを格納する.read_body
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/block/transaction")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"block_identifier": {18"index": 12345,19"hash": "0x00b4db73531373778711133f393f27ab49039e8352dd591d961532329f514fc4"20},21"transaction_identifier": {22"hash": "0xbb3fa01de972d24e04f9523c3bdb34ee34b8736e991a5fd4f2b1569313a4b9d3"23}24})2526回答 = http.リクエスト(リクエスト)27レスポンスを格納する.read_body