LISTS TRANSACTION
Lists Transaction API Endpoints
Complete documentation for all Lists Transaction related endpoints.
GET
List Transactions
Get paginated list of transactions with detailed information.
Endpoint Details
HTTP Request
GET https://0xhost.net/API/list_transactions
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
per_page |
integer | No | Items per page (default: 10) |
page |
integer | No | Page number |
Authentication
API Key
Required in header
Headers
| Header | Value | Required | Description |
|---|---|---|---|
x-api-key |
your_api_key_here |
Yes | Your unique API key for authentication |
Content-Type |
application/json |
Optional | Recommended for consistent response handling |
Response Fields
| Field | Type | Description |
|---|---|---|
success |
boolean | Indicates if the operation was successful |
message |
string | Response message describing the result |
data |
object/array | Contains the response data |
Success Response
API Response Example
{
"success": true,
"data": [
{
"id": "txn12345-6789-0123-4567-890123456789",
"user_id": "user12345-6789-0123-4567-890123456789",
"order_id": "order12345-6789-0123-4567-890123456789",
"track_id": "123456789",
"status": "Paying",
"type": "ORDER",
"amount": "28.06",
"currency": "EUR",
"pay_amount": "0.01115508",
"pay_currency": "ETH",
"date": 1763656047,
"tx_hash": null,
"network": "Ethereum Network",
"address": "0xDEMO1234567890ABCDEF1234567890abcdef1234",
"description": "VPS SERVICE CONTRACT PAYMENT: crypto",
"ip_address": null,
"created_at": "2025-11-20 17:27:27",
"updated_at": "2025-11-20 17:27:27",
"expired_at": 1763661447
}
]
}
Code Examples
Programming Languages
JavaScript (Fetch API)
async function makeRequest() {
try {
const response = await fetch('https://0xhost.net/API/list_transactions?per_page=10&page=1', {
method: 'GET',
headers: {
'x-api-key': 'your_api_key_here',
'Content-Type': 'application/json'
}
});
const data = await response.json();
console.log('Response:', data);
return data;
} catch (error) {
console.error('Error:', error);
}
}
Python (Requests)
import requests
def make_request(api_key):
url = 'https://0xhost.net/API/list_transactions?per_page=10&page=1'
headers = {
'x-api-key': api_key,
'Content-Type': 'application/json'
}
response = requests.request('GET', url, headers=headers)
if response.status_code == 200:
return response.json()
else:
print(f'Error: {response.status_code}')
return None
PHP (cURL)
function makeRequest($apiKey) {
$url = 'https://0xhost.net/API/list_transactions?per_page=10&page=1';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'x-api-key: ' . $apiKey,
'Content-Type: application/json'
]);
$response = curl_exec($ch);
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
return json_decode($response, true);
}
cURL Command
curl -X GET 'https://0xhost.net/API/list_transactions?per_page=10&page=1' \
-H 'x-api-key: your_api_key_here' \
-H 'Content-Type: application/json'