Banxa
Introduction
API Host
Environment
API Host
NodeJS Examples
Generate HMAC Token
const generateHmac = (signature: string, nonce: number): string => {
const crypto = require("crypto");
const key = "YOUR_BANXA_KEY";
const secret = "YOUR_BANXA_SECRET_TOKEN";
const localSignature = crypto
.createHmac("SHA256", secret)
.update(signature)
.digest("hex");
return `${key}:${localSignature}:${nonce}`;
};Send Request
Resources
Last updated
Was this helpful?