query-{view_code} RPC Method
パラメータ
request_type
文字列
読み込み中...
finality
文字列
読み込み中...
block_id
整数/文字列
読み込み中...
account_id
文字列
読み込み中...
返品
ハッシュ
読み込み中...
block_height
読み込み中...
block_hash
読み込み中...
code_base64
読み込み中...
リクエスト
1curl https://docs-demo.near-mainnet.quiknode.pro/ \2--request POST \3--header "Content-Type: application/json" \4--data '{"method": "query","params": {"request_type": "view_code", "finality": "final", "account_id": "prophet.poolv1.near"},"id":1,"jsonrpc":"2.0"}'
1curl https://docs-demo.near-mainnet.quiknode.pro/ \2--request POST \3--header "Content-Type: application/json" \4--data '{"method": "query","params": {"request_type": "view_code", "finality": "final", "account_id": "prophet.poolv1.near"},"id":1,"jsonrpc":"2.0"}'
1var myHeaders = new Headers();2myHeaders.append("Content-Type", "application/json");34var raw = JSON.stringify({5"method": "query",6"params": {7"request_type": "view_code",8"finality": "final",9"account_id": "prophet.poolv1.near"10},11"id": 1,12"jsonrpc": "2.0"13});1415var requestOptions = {16メソッド: 'POST',17ヘッダー: myHeaders,18本文: raw,19リダイレクト: 'follow'20};2122fetch("https://docs-demo.near-mainnet.quiknode.pro/", requestOptions)23.その後(レスポンス => レスポンス.text())24.その後(結果 => コンソール.log(result))25.catchcatch(エラー => console.log('error', error));
1var myHeaders = new Headers();2myHeaders.append("Content-Type", "application/json");34var raw = JSON.stringify({5"method": "query",6"params": {7"request_type": "view_code",8"finality": "final",9"account_id": "prophet.poolv1.near"10},11"id": 1,12"jsonrpc": "2.0"13});1415var requestOptions = {16メソッド: 'POST',17ヘッダー: myHeaders,18本文: raw,19リダイレクト: 'follow'20};2122fetch("https://docs-demo.near-mainnet.quiknode.pro/", requestOptions)23.その後(レスポンス => レスポンス.text())24.その後(結果 => コンソール.log(result))25.catchcatch(エラー => console.log('error', error));
1import リクエスト2import json34url = "https://docs-demo.near-mainnet.quiknode.pro/"56ペイロード = json.dumps({7"method": "query",8"params": {9"request_type": "view_code",10"finality": "final",11"account_id": "prophet.poolv1.near"12},13"id": 1,14"jsonrpc": "2.0"15})16ヘッダー = {17「Content-Type」: 'application/json'18}1920回答 = リクエスト.リクエスト("POST", url, headers=headers, データ=ペイロード)2122印刷(レスポンス.text)23
1import リクエスト2import json34url = "https://docs-demo.near-mainnet.quiknode.pro/"56ペイロード = json.dumps({7"method": "query",8"params": {9"request_type": "view_code",10"finality": "final",11"account_id": "prophet.poolv1.near"12},13"id": 1,14"jsonrpc": "2.0"15})16ヘッダー = {17「Content-Type」: 'application/json'18}1920回答 = リクエスト.リクエスト("POST", url, headers=headers, データ=ペイロード)2122印刷(レスポンス.text)23
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.near-mainnet.quiknode.pro/")67https = Net::HTTP.new(url.host, url.port);8https.use_ssl = true9リクエスト = ネット::HTTP::POST.new(URL)10リクエスト["Content-Type"] = "application/json"11リクエスト.本文 = JSON.dump({12"method": "query",13"params": {14"request_type": "view_code",15"finality": "final",16"account_id": "prophet.poolv1.near"17},18"id": 1,19"jsonrpc": "2.0"20})2122回答 = https.リクエスト(リクエスト)23レスポンスを格納する.read_body24
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.near-mainnet.quiknode.pro/")67https = Net::HTTP.new(url.host, url.port);8https.use_ssl = true9リクエスト = ネット::HTTP::POST.new(URL)10リクエスト["Content-Type"] = "application/json"11リクエスト.本文 = JSON.dump({12"method": "query",13"params": {14"request_type": "view_code",15"finality": "final",16"account_id": "prophet.poolv1.near"17},18"id": 1,19"jsonrpc": "2.0"20})2122回答 = https.リクエスト(リクエスト)23レスポンスを格納する.read_body24