erc8004_get_validation_status
Check the status of an ERC-8004 validation request by providing the request hash to verify completion or progress.
Instructions
Get ERC-8004 validation request status.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request_hash | Yes | Validation request hash (bytes32) |
Implementation Reference
- The handler function that calls the API to retrieve the validation status for the given request hash.
async (args) => { const result = await apiClient.get(`/v1/erc8004/validation/${args.request_hash}`); return toToolResult(result); }, - Input schema validation using Zod for the tool.
{ request_hash: z.string().describe('Validation request hash (bytes32)'), }, - Registration function for the erc8004_get_validation_status tool.
export function registerErc8004GetValidationStatus(server: McpServer, apiClient: ApiClient, walletContext?: WalletContext): void { server.tool( 'erc8004_get_validation_status', withWalletPrefix('Get ERC-8004 validation request status.', walletContext?.walletName), { request_hash: z.string().describe('Validation request hash (bytes32)'), }, async (args) => { const result = await apiClient.get(`/v1/erc8004/validation/${args.request_hash}`); return toToolResult(result); }, ); }