Request Signing
Learn how Onside signs API requests securely with HMAC or signature headers. See example formats, key usage, and error handling.
Request Structure
Option 1: Header-based (recommended)
GET https://flow.onside.io?withdraw_address={withdraw_address}
X-Api-Key: your_api_key
X-Signature: your_signatureOption 2: Query-based
GET https://flow.onside.io?api_key={your_api_key}&withdraw_address={withdraw_address}&signature={your_signature}Signature generation
const crypto = require("crypto");
const withdrawalAddress = "your_withdraw_address";
const secretKey = "your_secret_key"; // Provided securely by Onside
const stringToSign = `withdraw_address=${withdrawalAddress}`;
const signature = crypto
.createHmac("sha256", secretKey)
.update(stringToSign)
.digest("hex");Secret key
Last updated
Was this helpful?