{
"accept": "application/json, text/plain, */*",
"content-type": "application/json",
"infiniax-signature": "3edd40e2055b29cb3cbfb84bc75e51fed9679a2cc1c8588bc3a60692148d58d0595003676a70643db2a1cf37614a8ebae53624e1d4d173385c7abe0d02a4db38",
"user-agent": "axios/1.7.4",
"content-length": "627",
"accept-encoding": "gzip, compress, deflate, br",
"connection": "keep-alive"
}import * as crypto from 'crypto';
const data = JSON.stringify(sendData);
const apiKey = `${YOUR_API_KEY}`
const signature = hmac(JSON.stringify(sendData), apiKey)
export function hmac(message: string, secret = '') {
const hmacIns = crypto.createHmac('sha512', secret);
return hmacIns.update(message).digest('hex');
}