Send Approval REST API Endpoint
資訊
Exchange API 呼叫不會消耗Quicknode 點數。透過此endpoint 進行的交易endpoint 附加建置商手續費。完整明細請參閱hyperliquidapi.com。若要使用您自己的建置商代碼進行白標服務,請與我們聯繫。
This endpoint is not a drop-in replacement for Hyperliquid's native /exchange endpoint. See the Exchange API Overview for key differences.
身體參數
動作
物件
必填
載入中...
類型
字串
載入中...
maxFeeRate
字串
載入中...
非重複數
整數
必填
載入中...
簽名
物件
必填
載入中...
r
字串
載入中...
s
字串
載入中...
v
整數
載入中...
退貨
approved
布林值
載入中...
建商
字串
載入中...
maxFeeRate
字串
載入中...
使用者
字串
載入中...
訊息
字串
載入中...
exchangeResponse
物件
載入中...
請求
1curl -s -X POSTmainnet\2-H "Content-Type: application/json" \3-d '{4"action": {5"type": "approveBuilderFee",6"maxFeeRate": "1%"7},8"nonce": 1234567890,9"signature": {10"r": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",11"s": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",12"v": 2813}14}'15
1curl -s -X POSTmainnet\2-H "Content-Type: application/json" \3-d '{4"action": {5"type": "approveBuilderFee",6"maxFeeRate": "1%"7},8"nonce": 1234567890,9"signature": {10"r": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",11"s": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",12"v": 2813}14}'15
1const axios = require('axios');23const 資料 = {4action: {5類型: "approveBuilderFee",6maxFeeRate: "1%"7},8nonce: 1234567890,9signature: {10r: "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",11s: "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",12v: 2813}14};1516axios.post('https://docs-demo.hype-mainnet.quiknode.pro/hypercore/exchange', data, {17headers: { 'Content-Type': 'application/json' }18})19.接著(回應 => 控制台.log(response.data))20.catchcatch(錯誤 => console.錯誤(錯誤));21
1const axios = require('axios');23const 資料 = {4action: {5類型: "approveBuilderFee",6maxFeeRate: "1%"7},8nonce: 1234567890,9signature: {10r: "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",11s: "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",12v: 2813}14};1516axios.post('https://docs-demo.hype-mainnet.quiknode.pro/hypercore/exchange', data, {17headers: { 'Content-Type': 'application/json' }18})19.接著(回應 => 控制台.log(response.data))20.catchcatch(錯誤 => console.錯誤(錯誤));21
1匯入 請求2匯入 json34網址 = "mainnet"56有效載荷 = json.dumps({7"action": {8"類型": "approveBuilderFee",9"maxFeeRate": "1%"10},11"nonce": 1234567890,12"signature": {13"r": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",14"s": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",15"v": 2816}17})1819標題 = {20「Content-Type」: 'application/json'21}2223回應 = 請求.請求("POST", url, headers=headers, data=有效載荷)2425列印(回應.text)26
1匯入 請求2匯入 json34網址 = "mainnet"56有效載荷 = json.dumps({7"action": {8"類型": "approveBuilderFee",9"maxFeeRate": "1%"10},11"nonce": 1234567890,12"signature": {13"r": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",14"s": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",15"v": 2816}17})1819標題 = {20「Content-Type」: 'application/json'21}2223回應 = 請求.請求("POST", url, headers=headers, data=有效載荷)2425列印(回應.text)26
1需要 "uri"2require "json"3需要 "net/http"45網址 = URI("mainnet")67https = 網::HTTP.new(url.主機, 網址.port)8https.use_ssl = true910請求 = 淨額::HTTP::POST.新增(網址)11請求["Content-Type"] = "application/json"12請求。主體 = JSON.dump({13"action": {14"類型": "approveBuilderFee",15"maxFeeRate": "1%"16},17"nonce": 1234567890,18"signature": {19"r": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",20"s": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",21"v": 2822}23})2425回應 = https.請求(請求)26puts 回應。read_body27
1需要 "uri"2require "json"3需要 "net/http"45網址 = URI("mainnet")67https = 網::HTTP.new(url.主機, 網址.port)8https.use_ssl = true910請求 = 淨額::HTTP::POST.新增(網址)11請求["Content-Type"] = "application/json"12請求。主體 = JSON.dump({13"action": {14"類型": "approveBuilderFee",15"maxFeeRate": "1%"16},17"nonce": 1234567890,18"signature": {19"r": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",20"s": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",21"v": 2822}23})2425回應 = https.請求(請求)26puts 回應。read_body27