| name | alchemy-debug-bundle |
| description | Collect Alchemy SDK debug evidence for troubleshooting and support tickets.
Use when encountering persistent issues, preparing support tickets,
or debugging blockchain query failures.
Trigger: "alchemy debug bundle", "alchemy support ticket", "alchemy diagnostics".
|
| allowed-tools | Read, Write, Edit, Bash(curl:*), Bash(node:*), Grep |
| version | 1.5.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","blockchain","web3","alchemy","debugging"] |
| compatibility | Designed for Claude Code |
Alchemy Debug Bundle
Overview
Collect diagnostic data for Alchemy support tickets: connectivity tests, SDK version, network status, CU usage, and recent error logs.
Instructions
Step 1: Debug Bundle Generator
import { Alchemy, Network } from 'alchemy-sdk';
interface DebugBundle {
timestamp: string;
sdkVersion: string;
environment: Record<string, string>;
connectivity: Record<string, any>;
networkStatus: Record<string, any>;
}
async function generateDebugBundle(): Promise<DebugBundle> {
const alchemy = new Alchemy({
apiKey: process.env.ALCHEMY_API_KEY,
network: Network.ETH_MAINNET,
});
const bundle: DebugBundle = {
timestamp: new Date().toISOString(),
sdkVersion: require().,
: {
: process.,
: process.,
: process.. ? : ,
: process.. || ,
},
: {},
: {},
};
{
start = .();
blockNumber = alchemy..();
bundle.. = {
: ,
: .() - start,
: blockNumber,
};
} (: ) {
bundle.. = { : , : err. };
}
{
start = .();
alchemy..();
bundle.. = { : , : .() - start };
} (: ) {
bundle.. = { : , : err. };
}
{
start = .();
alchemy..();
bundle.. = { : , : .() - start };
} (: ) {
bundle.. = { : , : err. };
}
( [name, network] .({
: .,
: .,
: .,
})) {
{
client = ({ : process.., network });
block = client..();
bundle.[name] = { : , block };
} (: ) {
bundle.[name] = { : , : err. };
}
}
filename = ;
().(filename, .(bundle, , ));
.();
bundle;
}
().(.);