import { BlockrushSDK, Region } from "@blockrush/sdk";
// Initialize SDK with your API key and preferred region
const sdk = new BlockrushSDK({
region: Region.JP,
api_key: "YOUR_API_KEY", // Use environment variables in production
});
// Example: Send a single transaction
const res = await sdk.send_transaction(
"Base64 string of fully signed transaction"
);
console.log(res);
// Example: Submit batch transactions
const res2 = await sdk.submit_batch([
"Base64 string of fully signed transaction 1",
"Base64 string of fully signed transaction 2",
]);
console.log(res2);
// Clean up resources when done
sdk.destroy();