/v1/view REST API Endpoint
쿼리 매개변수
ledger_version
문자열
필수
로딩 중...
신체 측정값
function
문자열
필수
로딩 중...
type_arguments
문자열
필수
로딩 중...
arguments
문자열
필수
로딩 중...
반품
결과
로딩 중...
요청
1curl --request POST \2--url https://docs-demo.aptos-mainnet.quiknode.pro/v1/view \3--header 'Accept: application/json, application/x-bcs' \4--header 'Content-Type: application/json' \5--데이터 '{6"function": "FUNCTION",7"type_arguments": [8"string"9],10"arguments": [11null12]13}'
1curl --request POST \2--url https://docs-demo.aptos-mainnet.quiknode.pro/v1/view \3--header 'Accept: application/json, application/x-bcs' \4--header 'Content-Type: application/json' \5--데이터 '{6"function": "FUNCTION",7"type_arguments": [8"string"9],10"arguments": [11null12]13}'
1const userUrl = 'https://docs-demo.aptos-mainnet.quiknode.pro/v1/view';2const requestData = {3function: 'FUNCTION',4type_arguments: ['string'],5arguments: [null]6};78fetch(userUrl, {9메서드: 'POST',10headers: {11'Accept': 'application/json, application/x-bcs',12'Content-Type': 'application/json'13},14body: JSON.stringify(requestData)15})16.그런 다음(응답 => 응답.json())17.그런 다음(데이터 => {18console.log('Response:', data);19})20.catchcatch (오류 => {21console.error('Error:', error);22});23
1const userUrl = 'https://docs-demo.aptos-mainnet.quiknode.pro/v1/view';2const requestData = {3function: 'FUNCTION',4type_arguments: ['string'],5arguments: [null]6};78fetch(userUrl, {9메서드: 'POST',10headers: {11'Accept': 'application/json, application/x-bcs',12'Content-Type': 'application/json'13},14body: JSON.stringify(requestData)15})16.그런 다음(응답 => 응답.json())17.그런 다음(데이터 => {18console.log('Response:', data);19})20.catchcatch (오류 => {21console.error('Error:', error);22});23
1import 요청2import json34url = 'https://docs-demo.aptos-mainnet.quiknode.pro/v1/view'56헤더 = {7'Accept': 'application/json, application/x-bcs',8'Content-Type': 'application/json'9}1011데이터 = {12"function": "FUNCTION",13"type_arguments": [14"string"15],16"arguments": [17없음18]19}2021답변 = 요청.post(url, 헤더=헤더, json=데이터)22print(response.json())23
1import 요청2import json34url = 'https://docs-demo.aptos-mainnet.quiknode.pro/v1/view'56헤더 = {7'Accept': 'application/json, application/x-bcs',8'Content-Type': 'application/json'9}1011데이터 = {12"function": "FUNCTION",13"type_arguments": [14"string"15],16"arguments": [17없음18]19}2021답변 = 요청.post(url, 헤더=헤더, json=데이터)22print(response.json())23
1require 'net/http'2require 'json'34url = URI.parse('https://docs-demo.aptos-mainnet.quiknode.pro/v1/view')5http = Net::HTTP.new(url.호스트, url.포트)6http.use_ssl = true78헤더 = {9'Accept' => 'application/json, application/x-bcs',10'Content-Type' => 'application/json'11}1213데이터 = {14"function" => "FUNCTION",15"type_arguments" => [16"string"17],18"arguments" => [19nil20]21}2223요청 = 순::HTTP::POST.새(URL.path, 헤더)24요청.본문 = data.to_json2526답변 = http.요청(요청)27응답을 반환합니다.본문28
1require 'net/http'2require 'json'34url = URI.parse('https://docs-demo.aptos-mainnet.quiknode.pro/v1/view')5http = Net::HTTP.new(url.호스트, url.포트)6http.use_ssl = true78헤더 = {9'Accept' => 'application/json, application/x-bcs',10'Content-Type' => 'application/json'11}1213데이터 = {14"function" => "FUNCTION",15"type_arguments" => [16"string"17],18"arguments" => [19nil20]21}2223요청 = 순::HTTP::POST.새(URL.path, 헤더)24요청.본문 = data.to_json2526답변 = http.요청(요청)27응답을 반환합니다.본문28