Daily Transactions Report
Parameter
Type
Required
Description
Name
Type
Example
Description
const axios = require("axios");
const crypto = require("crypto");
const apiKey = "your-api-key";
const apiSecret = "your-api-secret";
const params = {
ย ย date: "2026-07-04",
ย ย page: "1",
ย ย limit: "50",
};
// 1. Sort keys to keep the signing payload consistent
const sortedParams = Object.keys(params)
ย ย .sort()
ย ย .reduce((acc, key) => {
ย ย ย ย acc[key] = String(params[key]);
ย ย ย ย return acc;
ย ย }, {});
// 2. Stringify the sorted object
const signingPayload = JSON.stringify(sortedParams);
// 3. Generate the HMAC signature
const signature = crypto
ย ย .createHmac("sha256", apiSecret)
ย ย .update(signingPayload)
ย ย .digest("hex");
axios
ย ย .get("https://api.tylt.money/v2/prime-ntx/transactions/report", {
ย ย ย ย // CRITICAL: We pass the exactly sorted parameters into Axios here
ย ย ย ย // so the URL generated natively matches the hash order.
ย ย ย ย params: sortedParams,
ย ย ย ย headers: {
ย ย ย ย ย ย "X-TLP-APIKEY": apiKey,
ย ย ย ย ย ย "X-TLP-SIGNATURE": signature,
ย ย ย ย },
ย ย })
ย ย .then((response) => {
ย ย ย ย console.log(response.data);
ย ย })
ย ย .catch((error) => {
ย ย ย ย console.error(error.response?.data || error.message);
ย ย });
Field
Type
Description
Field
Type
Description
Field
Type
Description
Field
Type
Description
Field
Type
Description
Last updated