Send Approval 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
정수
로딩 중...
반품
approved
부울
로딩 중...
builder
문자열
로딩 중...
maxFeeRate
문자열
로딩 중...
사용자
문자열
로딩 중...
메시지
문자열
로딩 중...
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": "1%"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": "1%"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: "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.then(response => console.log(response.data))20.catch(error => console.error(error));21
1const axios = require('axios');23const data = {4action: {5type: "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.then(response => console.log(response.data))20.catch(error => console.error(error));21
1import 요청2import json34url = "https://docs-demo.hype-mainnet.quiknode.pro/hypercore/exchange"56페이로드 = json.dumps({7"action": {8"type": "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, 헤더=헤더, data=페이로드)2425인쇄(응답.text)26
1import 요청2import json34url = "https://docs-demo.hype-mainnet.quiknode.pro/hypercore/exchange"56페이로드 = json.dumps({7"action": {8"type": "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, 헤더=헤더, data=페이로드)2425인쇄(응답.text)26
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.hype-mainnet.quiknode.pro/hypercore/exchange")67https = Net::HTTP.new(url.호스트, url.포트)8https.use_ssl = true910요청 = 순::HTTP::POST.새(URL)11요청["Content-Type"] = "application/json"12요청.본문 = JSON.dump({13"action": {14"type": "approveBuilderFee",15"maxFeeRate": "1%"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("https://docs-demo.hype-mainnet.quiknode.pro/hypercore/exchange")67https = Net::HTTP.new(url.호스트, url.포트)8https.use_ssl = true910요청 = 순::HTTP::POST.새(URL)11요청["Content-Type"] = "application/json"12요청.본문 = JSON.dump({13"action": {14"type": "approveBuilderFee",15"maxFeeRate": "1%"16},17"nonce": 1234567890,18"signature": {19"r": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",20"s": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",21"v": 2822}23})2425답변 = https.요청(요청)26응답을 넣습니다.read_body27