Authentication
To interact with our API, authentication is required for all endpoints. Include your
API token
in the request header using the Authorization header.
How to authenticate?
Use your API token in the request header like so:
Required Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| Authorization | Header | Yes | API token for authentication. Format: Bearer YOUR_API_TOKEN |
| transaction_id | Query Parameter | Yes | The transaction ID (hash) of the cryptocurrency transaction (64-character hex string). |
Example: Using cURL
curl -H "Authorization: Bearer YOUR_API_TOKEN" -G --data-urlencode "transaction_id=YOUR_TRANSACTION_ID" -s https://api.plenix.net/v1/cryptocurrency-tracker/trackExample: Using JavaScript (fetch API)
fetch("https://api.plenix.net/v1/cryptocurrency-tracker/track?transaction_id=YOUR_TRANSACTION_ID", {
headers: {
"Authorization": "Bearer YOUR_API_TOKEN"
}
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
Example: Using Postman
1. Open Postman and create a new request.
2. Set the request type to GET.
3. Enter the URL:
https://api.plenix.net/v1/cryptocurrency-tracker/track?transaction_id=YOUR_TRANSACTION_ID
4. Go to the Headers tab and add:Key: Authorization
Value: Bearer YOUR_API_TOKEN
5. Click Send to receive the response.
Usage
Use the endpoints provided to track cryptocurrency transactions and more.
Track Cryptocurrency Transaction
The /track endpoint allows users to fetch details of a cryptocurrency transaction using its transaction ID.
The response includes details such as the transaction hash, timestamp, size, and input sequences.
Endpoint
GET /cryptocurrency-tracker/track
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| transaction_id | string | Yes | The transaction ID (hash) of the cryptocurrency transaction (64-character hex string). |
Example: Using cURL
curl -H "Authorization: Bearer YOUR_API_TOKEN" -G --data-urlencode "transaction_id=YOUR_TRANSACTION_ID" -s https://api.plenix.net/v1/cryptocurrency-tracker/track
Example: Using JavaScript (fetch API)
fetch("https://api.plenix.net/v1/cryptocurrency-tracker/track?transaction_id=YOUR_TRANSACTION_ID", {
headers: {
"Authorization": "Bearer YOUR_API_TOKEN"
}
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
Example Response
{
"transaction_id": "f3b1c3e4a0...",
"hash": "f3b1c3e4a0...",
"time": "2025-02-06 12:34:56",
"size": 250,
"inputs": [
{
"prev_out": {
"addr": "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa",
"value": 5000000000
}
}
],
"message": "Transaction details retrieved successfully"
}
Possible Error Responses
{
"error": "Invalid transaction ID",
"details": {
"transaction_id": ["The transaction ID must be a 64-character hexadecimal string."]
}
}
{
"error": "Blockchain API request failed",
"status_code": 404,
"message": "Not Found"
}