get_protocol_status
Check Aave V3 protocol status and current block number to monitor network activity and assess liquidation conditions.
Instructions
Get general Aave V3 protocol status including current block number.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:376-397 (handler)The main execution handler for the 'get_protocol_status' tool. It calls aaveClient.getBlockNumber() and formats a JSON response with protocol details including the current block number.case 'get_protocol_status': { const blockNumber = await aaveClient.getBlockNumber(); return { content: [ { type: 'text', text: JSON.stringify( { protocol: 'Aave V3', network: 'Ethereum Mainnet', blockNumber, poolAddress: '0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2', status: 'operational', }, null, 2 ), }, ], }; }
- src/index.ts:121-128 (schema)Input/output schema definition for the tool, specifying no required parameters.name: 'get_protocol_status', description: 'Get general Aave V3 protocol status including current block number.', inputSchema: { type: 'object', properties: {}, }, },
- src/aave-client.ts:301-303 (helper)Supporting method in AaveClient class that retrieves the current Ethereum block number via the ethers provider.async getBlockNumber(): Promise<number> { return await this.provider.getBlockNumber(); }