Send Revoke 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
整数
正在加载...
退货
revoked
布尔型
正在加载...
builder
字符串
正在加载...
用户
字符串
正在加载...
消息
字符串
正在加载...
exchangeResponse
对象
正在加载...
请求
1curl -s -X POSTmainnet\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 POSTmainnet\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 数据 = {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.然后(响应 => 控制台.log(响应.data))20.catch(error => 控制台.error(error));21
1const axios = require('axios');23const 数据 = {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.然后(响应 => 控制台.log(响应.data))20.catch(error => 控制台.error(error));21
1导入 请求2导入 json34url = "mainnet"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, 数据=有效载荷)2425打印(响应.text)26
1导入 请求2导入 json34url = "mainnet"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, 数据=有效载荷)2425打印(响应.text)26
1require "uri"2require "json"3require "net/http"45url = URI("mainnet")67https = Net::HTTP.new(url.主机, url.端口)8https.use_ssl = true910请求 = Net::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
1require "uri"2require "json"3require "net/http"45url = URI("mainnet")67https = Net::HTTP.new(url.主机, url.端口)8https.use_ssl = true910请求 = Net::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