Send Revoke REST API Endpoint
資訊
Exchange API calls do not consume Quicknode API credits. Transactions through this endpoint are appended with a builder fee. See hyperliquidapi.com for a full breakdown. To white-label with your own builder code, contact us.
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
整數
載入中...
退貨
revoked
布林值
載入中...
builder
字串
載入中...
user
字串
載入中...
訊息
字串
載入中...
exchangeResponse
物件
載入中...
請求
1curl -s -X POST https://docs-demo.hype-mainnet.quiknode.pro/hypercore/exchange \2-H "Content-Type: application/json" \3-d '{4"action": {5"type": "approveBuilderFee",6"maxFeeRate": "0%"7},8"nonce": 1234567890,9"signature": {10"r": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",11"s": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",12"v": 2813}14}'15
1curl -s -X POST https://docs-demo.hype-mainnet.quiknode.pro/hypercore/exchange \2-H "Content-Type: application/json" \3-d '{4"action": {5"type": "approveBuilderFee",6"maxFeeRate": "0%"7},8"nonce": 1234567890,9"signature": {10"r": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",11"s": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",12"v": 2813}14}'15
1const axios = require('axios');23const data = {4action: {5type: "approveBuilderFee",6maxFeeRate: "0%"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.then(response => console.log(response.data))20.catch(error => console.error(error));21
1const axios = require('axios');23const data = {4action: {5type: "approveBuilderFee",6maxFeeRate: "0%"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.then(response => console.log(response.data))20.catch(error => console.error(error));21
1匯入 請求2import json34url = "https://docs-demo.hype-mainnet.quiknode.pro/hypercore/exchange"56有效載荷 = json.dumps({7"action": {8"type": "approveBuilderFee",9"maxFeeRate": "0%"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匯入 請求2import json34url = "https://docs-demo.hype-mainnet.quiknode.pro/hypercore/exchange"56有效載荷 = json.dumps({7"action": {8"type": "approveBuilderFee",9"maxFeeRate": "0%"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"45url = URI("https://docs-demo.hype-mainnet.quiknode.pro/hypercore/exchange")67https = 網::HTTP.new(url.主機, url.port)8https.use_ssl = true910請求 = 淨::HTTP::POST.new(網址)11請求["Content-Type"] = "application/json"12請求。正文 = JSON.dump({13"action": {14"type": "approveBuilderFee",15"maxFeeRate": "0%"16},17"nonce": 1234567890,18"signature": {19"r": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",20"s": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",21"v": 2822}23})2425回應 = https.請求(請求)26將回應。read_body27
1需要 "uri"2require "json"3需要 "net/http"45url = URI("https://docs-demo.hype-mainnet.quiknode.pro/hypercore/exchange")67https = 網::HTTP.new(url.主機, url.port)8https.use_ssl = true910請求 = 淨::HTTP::POST.new(網址)11請求["Content-Type"] = "application/json"12請求。正文 = JSON.dump({13"action": {14"type": "approveBuilderFee",15"maxFeeRate": "0%"16},17"nonce": 1234567890,18"signature": {19"r": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",20"s": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",21"v": 2822}23})2425回應 = https.請求(請求)26將回應。read_body27