wallet_provider_set
Configure the RPC provider URL for Ethereum and EVM-compatible blockchains, overriding the default ETH mainnet or environment variable settings.
Instructions
Set the provider URL. By default, the provider URL is set to the ETH mainnet or the URL set in the PROVIDER_URL environment variable.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| providerURL | Yes | The provider RPC URL |
Implementation Reference
- src/handlers/wallet.ts:9-18 (handler)The handler function that executes the wallet_provider_set tool. It calls setProvider with the input providerURL and returns a formatted success or error response.export const setProviderHandler = async (input: any): Promise<ToolResultSchema> => { try { setProvider(input.providerURL); return createSuccessResponse(`Provider set successfully: Provider URL: ${input.providerURL} `); } catch (error) { return createErrorResponse(`Failed to set provider: ${(error as Error).message}`); } };
- src/tools.ts:40-50 (schema)The input schema and metadata definition for the wallet_provider_set tool.{ name: "wallet_provider_set", description: "Set the provider URL. By default, the provider URL is set to the ETH mainnet or the URL set in the PROVIDER_URL environment variable.", inputSchema: { type: "object", properties: { providerURL: { type: "string", description: "The provider RPC URL" } }, required: ["providerURL"] } },
- src/tools.ts:558-558 (registration)Registration mapping the tool name 'wallet_provider_set' to its handler function in the central handlers dictionary."wallet_provider_set": setProviderHandler,