Send User-Signed Action 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.
शरीर के मापदंड
action
वस्तु
आवश्यक
लोड हो रहा है...
प्रकार
डोरी
लोड हो रहा है...
hyperliquidChain
डोरी
लोड हो रहा है...
signatureChainId
डोरी
लोड हो रहा है...
n एक
पूर्णांक
आवश्यक
लोड हो रहा है...
signature
वस्तु
आवश्यक
लोड हो रहा है...
आर
डोरी
लोड हो रहा है...
एस
डोरी
लोड हो रहा है...
वी
पूर्णांक
लोड हो रहा है...
रिटर्न
success
बूलियन
लोड हो रहा है...
user
डोरी
लोड हो रहा है...
exchangeResponse
वस्तु
लोड हो रहा है...
अनुरोध
1curl -s -X POST https://docs-demo.hype-mainnet.quiknode.pro/hypercore/exchange \2-एच "Content-Type: application/json" \3-डी '{4"action": {5"type": "usdSend",6"destination": "0x0000000000000000000000000000000000000001",7"amount": "1.0",8"hyperliquidChain": "Mainnet",9"signatureChainId": "0xa4b1",10"time": 123456789000011},12"nonce": 1234567890000,13"signature": {14"r": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890ab",15"s": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef12",16"v": 2817}18}'19
1curl -s -X POST https://docs-demo.hype-mainnet.quiknode.pro/hypercore/exchange \2-एच "Content-Type: application/json" \3-डी '{4"action": {5"type": "usdSend",6"destination": "0x0000000000000000000000000000000000000001",7"amount": "1.0",8"hyperliquidChain": "Mainnet",9"signatureChainId": "0xa4b1",10"time": 123456789000011},12"nonce": 1234567890000,13"signature": {14"r": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890ab",15"s": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef12",16"v": 2817}18}'19
1const axios = require('axios');23const data = {4action: {5type: "usdSend",6destination: "0x0000000000000000000000000000000000000001",7amount: "1.0",8hyperliquidChain: "Mainnet",9signatureChainId: "0xa4b1",10time: 123456789000011} ,12nonce: 1234567890000,13signature: {14r: "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890ab",15s: "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef12",16v: 2817}18} ;1920axios.post('https://docs-demo.hype-mainnet.quiknode.pro/hypercore/exchange', data, {21headers: { 'Content-Type': 'application/json' }22} )23.then(response => console.log(response.data))24.catch(error => console.error(error));25
1const axios = require('axios');23const data = {4action: {5type: "usdSend",6destination: "0x0000000000000000000000000000000000000001",7amount: "1.0",8hyperliquidChain: "Mainnet",9signatureChainId: "0xa4b1",10time: 123456789000011} ,12nonce: 1234567890000,13signature: {14r: "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890ab",15s: "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef12",16v: 2817}18} ;1920axios.post('https://docs-demo.hype-mainnet.quiknode.pro/hypercore/exchange', data, {21headers: { 'Content-Type': 'application/json' }22} )23.then(response => console.log(response.data))24.catch(error => console.error(error));25
1आयात अनुरोध2आयात करें json34url = "https://docs-demo.hype-mainnet.quiknode.pro/hypercore/exchange"56पेलोड = json . डंप्स ( {7"action": {8"type": "usdSend",9"destination": "0x0000000000000000000000000000000000000001",10"amount": "1.0",11"hyperliquidChain": "Mainnet",12"signatureChainId": "0xa4b1",13"time": 123456789000014} ,15"nonce": 1234567890000,16"signature": {17"r": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890ab",18"s": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef12",19"v": 2820}21} )2223headers = { 'Content-Type': 'application/json' }24प्रतिक्रिया = अनुरोध.अनुरोध ( " POST " , यूआरएल , हेडर = हेडर , डेटा = पेलोड )25प्रिंट ( प्रतिक्रिया . पाठ )26
1आयात अनुरोध2आयात करें json34url = "https://docs-demo.hype-mainnet.quiknode.pro/hypercore/exchange"56पेलोड = json . डंप्स ( {7"action": {8"type": "usdSend",9"destination": "0x0000000000000000000000000000000000000001",10"amount": "1.0",11"hyperliquidChain": "Mainnet",12"signatureChainId": "0xa4b1",13"time": 123456789000014} ,15"nonce": 1234567890000,16"signature": {17"r": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890ab",18"s": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef12",19"v": 2820}21} )2223headers = { 'Content-Type': 'application/json' }24प्रतिक्रिया = अनुरोध.अनुरोध ( " POST " , यूआरएल , हेडर = हेडर , डेटा = पेलोड )25प्रिंट ( प्रतिक्रिया . पाठ )26
1ज़रूरत होना "उरी"2ज़रूरत होना "जेसन"3ज़रूरत होना "नेट/http"45url = URI("https://docs-demo.hype-mainnet.quiknode.pro/hypercore/exchange")6https = Net :: HTTP . new ( url . host , url . port )7https . use_ssl = सत्य8अनुरोध = नेट :: एचटीटीपी :: पोस्ट.नया ( यूआरएल )9अनुरोध [ "सामग्री-प्रकार" ] = "एप्लिकेशन/जेसन"10अनुरोध.बॉडी = JSON . डंप ( {11"action": {12"type": "usdSend",13"destination": "0x0000000000000000000000000000000000000001",14"amount": "1.0",15"hyperliquidChain": "Mainnet",16"signatureChainId": "0xa4b1",17"time": 123456789000018} ,19"nonce": 1234567890000,20"signature": {21"r": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890ab",22"s": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef12",23"v": 2824}25} )26प्रतिक्रिया = https . अनुरोध ( अनुरोध )27puts response . read_body28
1ज़रूरत होना "उरी"2ज़रूरत होना "जेसन"3ज़रूरत होना "नेट/http"45url = URI("https://docs-demo.hype-mainnet.quiknode.pro/hypercore/exchange")6https = Net :: HTTP . new ( url . host , url . port )7https . use_ssl = सत्य8अनुरोध = नेट :: एचटीटीपी :: पोस्ट.नया ( यूआरएल )9अनुरोध [ "सामग्री-प्रकार" ] = "एप्लिकेशन/जेसन"10अनुरोध.बॉडी = JSON . डंप ( {11"action": {12"type": "usdSend",13"destination": "0x0000000000000000000000000000000000000001",14"amount": "1.0",15"hyperliquidChain": "Mainnet",16"signatureChainId": "0xa4b1",17"time": 123456789000018} ,19"nonce": 1234567890000,20"signature": {21"r": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890ab",22"s": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef12",23"v": 2824}25} )26प्रतिक्रिया = https . अनुरोध ( अनुरोध )27puts response . read_body28
अब तक कोई खाता नहीं है?
कुछ ही सेकंड में अपना क्विकनोड एंडपॉइंट बनाएं और निर्माण शुरू करें।
मुफ़्त में शुरुआत करें