FireblocksError {
message: ‘The request has expired’,
response: FireblocksResponse {
data: { message: ‘The request has expired’, code: -10 },
statusCode: 401,
headers: {
date: ‘Wed, 28 Jan 2026 11:29:35 GMT’,
‘content-type’: ‘text/html’,
‘content-length’: ‘52’,
connection: ‘keep-alive’,
‘cf-cache-status’: ‘DYNAMIC’,
server: ‘cloudflare’,
‘cf-ray’: ‘9c50272278a16e08-EWR’
}
},
import { readFileSync } from “fs”;
import { fileURLToPath } from “url”;
import { dirname, join } from “path”;
import { Fireblocks, BasePath } from “@fireblocks/ts-sdk”;
import {FIREBLOCKS_API_KEY} from “./envSecrets.js”
// ESM-safe __dirname
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
const FIREBLOCKS_API_SECRET_PATH = join(
__dirname,
“fireblocks_secret.key”
);
const fireblocks = new Fireblocks({
apiKey: FIREBLOCKS_API_KEY,
basePath: BasePath.Sandbox,
secretKey: readFileSync(FIREBLOCKS_API_SECRET_PATH, “utf8”),
});
console.log(“fireblocks”,fireblocks);
export default fireblocks;