allMids Info Endpoint Method
參數
類型
字串
必填
載入中...
dex
字串
載入中...
退貨
物件
物件
載入中...
BTC
字串
載入中...
ETH
字串
載入中...
硬幣
字串
載入中...
請求
1curl https://docs-demo.hype-mainnet.quiknode.pro/evm \2-X POST \3-H "Content-Type: application/json" \4--data '{"type":"allMids"}'
1curl https://docs-demo.hype-mainnet.quiknode.pro/evm \2-X POST \3-H "Content-Type: application/json" \4--data '{"type":"allMids"}'
1var myHeaders = new Headers();2myHeaders.追加("Content-Type", "application/json");34var raw = JSON.stringify({5"type": "allMids"6});78var requestOptions = {9方法: 'POST',10標題: myHeaders,11正文: 原始,12redirect: 'follow'13};1415fetch("https://docs-demo.hype-mainnet.quiknode.pro/evm", requestOptions)16.then(response => response.text())17.then(result => console.log(result))18.catch(error => console.log('error', error));19
1var myHeaders = new Headers();2myHeaders.追加("Content-Type", "application/json");34var raw = JSON.stringify({5"type": "allMids"6});78var requestOptions = {9方法: 'POST',10標題: myHeaders,11正文: 原始,12redirect: 'follow'13};1415fetch("https://docs-demo.hype-mainnet.quiknode.pro/evm", requestOptions)16.then(response => response.text())17.then(result => console.log(result))18.catch(error => console.log('error', error));19
1匯入 請求2import json34url = "https://docs-demo.hype-mainnet.quiknode.pro/evm"56有效載荷 = json.dumps({7"type": "allMids"8})9標題 = {10「Content-Type」: 'application/json'11}1213回應 = 請求.請求("POST", url, headers=headers, data=有效載荷)1415列印(回應.text)16
1匯入 請求2import json34url = "https://docs-demo.hype-mainnet.quiknode.pro/evm"56有效載荷 = json.dumps({7"type": "allMids"8})9標題 = {10「Content-Type」: 'application/json'11}1213回應 = 請求.請求("POST", url, headers=headers, data=有效載荷)1415列印(回應.text)16
1require 'uri'2require 'net/http'3require 'json'45url = URI("https://docs-demo.hype-mainnet.quiknode.pro/evm")67http = Net::HTTP.new(url.host, url.port)8http.use_ssl = true910請求 = 淨::HTTP::POST.new(網址)11request["Content-Type"] = 'application/json'12請求。正文 = JSON.dump({13"type": "allMids"14})1516回應 = http.請求(請求)17將回應。read_body18
1require 'uri'2require 'net/http'3require 'json'45url = URI("https://docs-demo.hype-mainnet.quiknode.pro/evm")67http = Net::HTTP.new(url.host, url.port)8http.use_ssl = true910請求 = 淨::HTTP::POST.new(網址)11request["Content-Type"] = 'application/json'12請求。正文 = JSON.dump({13"type": "allMids"14})1516回應 = http.請求(請求)17將回應。read_body18