List partner transactions
curl --request GET \
--url https://api.hypermid.io/v1/partner/transactions \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.hypermid.io/v1/partner/transactions"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.hypermid.io/v1/partner/transactions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.hypermid.io/v1/partner/transactions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.hypermid.io/v1/partner/transactions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.hypermid.io/v1/partner/transactions")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hypermid.io/v1/partner/transactions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"transactions": [
{
"id": "txn_abc123",
"type": "swap",
"status": "DONE",
"fromChain": 1,
"toChain": 42161,
"fromToken": { "symbol": "ETH", "address": "0x0000000000000000000000000000000000000000" },
"toToken": { "symbol": "USDC", "address": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831" },
"fromAmount": "1000000000000000000",
"toAmount": "3237500000",
"fromAmountUSD": "3250.00",
"toAmountUSD": "3237.50",
"fromAddress": "0xSenderAddress",
"toAddress": "0xReceiverAddress",
"sourceTxHash": "0xSourceTxHash",
"destinationTxHash": "0xDestTxHash",
"tool": "stargate",
"feeUSD": "4.88",
"createdAt": "2024-03-25T10:30:00Z",
"completedAt": "2024-03-25T10:32:00Z"
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 4523,
"totalPages": 227
}
},
"error": null,
"meta": {
"requestId": "y5b6c7d8-e9f0-1234-8901-345678901234",
"timestamp": 1711234583,
"rateLimit": {
"limit": 2000,
"remaining": 1975,
"reset": 1711234627
}
}
}
Partner
Get Partner Transactions
List transactions for your partner account
GET
/
v1
/
partner
/
transactions
List partner transactions
curl --request GET \
--url https://api.hypermid.io/v1/partner/transactions \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.hypermid.io/v1/partner/transactions"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.hypermid.io/v1/partner/transactions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.hypermid.io/v1/partner/transactions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.hypermid.io/v1/partner/transactions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.hypermid.io/v1/partner/transactions")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hypermid.io/v1/partner/transactions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"transactions": [
{
"id": "txn_abc123",
"type": "swap",
"status": "DONE",
"fromChain": 1,
"toChain": 42161,
"fromToken": { "symbol": "ETH", "address": "0x0000000000000000000000000000000000000000" },
"toToken": { "symbol": "USDC", "address": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831" },
"fromAmount": "1000000000000000000",
"toAmount": "3237500000",
"fromAmountUSD": "3250.00",
"toAmountUSD": "3237.50",
"fromAddress": "0xSenderAddress",
"toAddress": "0xReceiverAddress",
"sourceTxHash": "0xSourceTxHash",
"destinationTxHash": "0xDestTxHash",
"tool": "stargate",
"feeUSD": "4.88",
"createdAt": "2024-03-25T10:30:00Z",
"completedAt": "2024-03-25T10:32:00Z"
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 4523,
"totalPages": 227
}
},
"error": null,
"meta": {
"requestId": "y5b6c7d8-e9f0-1234-8901-345678901234",
"timestamp": 1711234583,
"rateLimit": {
"limit": 2000,
"remaining": 1975,
"reset": 1711234627
}
}
}
Returns a paginated list of transactions associated with your partner account.
Page number (1-based). Default:
1.Results per page (max 100). Default:
20.Filter by status:
PENDING, DONE, FAILED.Filter by source chain ID.
Filter by destination chain ID.
Filter by start date (ISO 8601 format).
Filter by end date (ISO 8601 format).
{
"data": {
"transactions": [
{
"id": "txn_abc123",
"type": "swap",
"status": "DONE",
"fromChain": 1,
"toChain": 42161,
"fromToken": { "symbol": "ETH", "address": "0x0000000000000000000000000000000000000000" },
"toToken": { "symbol": "USDC", "address": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831" },
"fromAmount": "1000000000000000000",
"toAmount": "3237500000",
"fromAmountUSD": "3250.00",
"toAmountUSD": "3237.50",
"fromAddress": "0xSenderAddress",
"toAddress": "0xReceiverAddress",
"sourceTxHash": "0xSourceTxHash",
"destinationTxHash": "0xDestTxHash",
"tool": "stargate",
"feeUSD": "4.88",
"createdAt": "2024-03-25T10:30:00Z",
"completedAt": "2024-03-25T10:32:00Z"
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 4523,
"totalPages": 227
}
},
"error": null,
"meta": {
"requestId": "y5b6c7d8-e9f0-1234-8901-345678901234",
"timestamp": 1711234583,
"rateLimit": {
"limit": 2000,
"remaining": 1975,
"reset": 1711234627
}
}
}
const txns = await client.getPartnerTransactions({
page: 1,
limit: 20,
status: "DONE",
fromChain: 1,
});
console.log(`Page 1 of ${txns.data.pagination.totalPages}`);
for (const tx of txns.data.transactions) {
console.log(`${tx.id}: ${tx.fromAmountUSD} USD via ${tx.tool} — ${tx.status}`);
}
curl "https://api.hypermid.io/v1/partner/transactions?page=1&limit=20&status=DONE" \
-H "X-API-Key: your-api-key"
req, _ := http.NewRequest("GET",
"https://api.hypermid.io/v1/partner/transactions?page=1&limit=20&status=DONE", nil)
req.Header.Set("X-API-Key", "your-api-key")
resp, _ := http.DefaultClient.Do(req)
Authorizations
Partner API key. Optional for public endpoints, required for /v1/partner/*.
Query Parameters
Page number
Required range:
x >= 1Items per page
Required range:
1 <= x <= 100⌘I