alchemyEnhancedApiActions
alchemyEnhancedApiActions
is a decorator that can be used with a AlchemySmartAccountClient
that will extend the client with methods that access the Alchemy Enhanced APIs via the Alchemy SDK.
Usage
example.ts
import { smartAccountClient } from "./base-client.ts";
import { alchemyEnhancedApiActions } from "@alchemy/aa-alchemy";
const alchemy = new Alchemy();
// use Alchemy Enhanced APIs
const clientWithEnhancedApis = smartAccountClient.extend(
alchemyEnhancedApiActions
);
Returns
AlchemySmartAccountClient
A new instance of an AlchemySmartAccountClient
with the same attributes as the input, now with methods for accessing the Alchemy Enhanced APIs to more efficiently query blockchain data.