Open source projects
A resilient Aptos client with automatic failover and recovery capabilities.
import { AptosResilientClient } from "@thalalabs/aptos-resilient-client";
// Create a resilient client with multiple endpoints
const resilientClient = new AptosResilientClient({
endpoints: [
new AptosConfig({ fullnode: "https://your-primary-aptos-rpc/v1" }), // Primary
new AptosConfig({ fullnode: "https://api.mainnet.aptoslabs.com/v1" }), // Backup
],
unhealthyThreshold: 3, // Mark endpoint unhealthy after 3 failures
healthCheckInterval: 30000, // Check every 30 seconds
requestTimeout: 10000, // 10 second timeout per request
});
// Get the Aptos client instance
const client = resilientClient.getClient();Handles Aptos account key rotation with automatic backups, safety checks, and rollback.
aptos-keyrotate --profile my-wallet --yes