Send User-Signed Action REST API Endpoint
información
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 /intercambio endpoint. See the Exchange API Overview for key differences.
Parámetros corporales
acción
objeto
OBLIGATORIO
Cargando...
tipo
cadena
Cargando...
hyperliquidChain
cadena
Cargando...
signatureChainId
cadena
Cargando...
nonce
entero
OBLIGATORIO
Cargando...
firma
objeto
OBLIGATORIO
Cargando...
r
cadena
Cargando...
s
cadena
Cargando...
v
entero
Cargando...
Devoluciones
éxito
booleano
Cargando...
usuario
cadena
Cargando...
exchangeResponse
objeto
Cargando...
Solicitud
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": "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-H "Content-Type: application/json" \3-d '{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 datos = {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 datos = {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
1import solicitudes2import json34url = "https://docs-demo.hype-mainnet.quiknode.pro/hypercore/exchange"56carga útil = json.dumps({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' }24respuesta = solicitudes.solicitud(«POST», url, encabezados=encabezados, datos=carga útil)25imprimir(respuesta.texto)26
1import solicitudes2import json34url = "https://docs-demo.hype-mainnet.quiknode.pro/hypercore/exchange"56carga útil = json.dumps({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' }24respuesta = solicitudes.solicitud(«POST», url, encabezados=encabezados, datos=carga útil)25imprimir(respuesta.texto)26
1requiere «uri»2require "json"3require «net/http»45url = URI("https://docs-demo.hype-mainnet.quiknode.pro/hypercore/exchange")6https = Net::HTTP.nuevo(url.host, url.puerto)7https.use_ssl = true8solicitud = Net::HTTP::POST.nuevo(URL)9solicitud[«Content-Type»] = "application/json"10solicitud.cuerpo = JSON.dump({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})26respuesta = https.solicitud(solicitud)27inserta la respuesta.read_body28
1requiere «uri»2require "json"3require «net/http»45url = URI("https://docs-demo.hype-mainnet.quiknode.pro/hypercore/exchange")6https = Net::HTTP.nuevo(url.host, url.puerto)7https.use_ssl = true8solicitud = Net::HTTP::POST.nuevo(URL)9solicitud[«Content-Type»] = "application/json"10solicitud.cuerpo = JSON.dump({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})26respuesta = https.solicitud(solicitud)27inserta la respuesta.read_body28
¿Aún no tienes una cuenta?
Crea tu punto de conexión de Quicknode en cuestión de segundos y empieza a desarrollar
Empieza gratis