alchemyEnhancedApiActions

Given an instance of the Alchemy SDK, returns a smart account client decorator which contains actions for interacting Alchemy’s enhanced APIs.

Import

1import { alchemyEnhancedApiActions } from "@account-kit/infra";

Usage

1import { Alchemy } from "alchemy-sdk";
2import { alchemyEnhancedApiActions } from "@account-kit/infra";
3import { alchemySCAClient } from "./client";
4
5const alchemy = new Alchemy(...);
6const enhancedApiDecorator = alchemyEnhancedApiActions(alchemy);
7const withEnhancedApis = alchemySCAClient.extend(enhancedApiDecorator);

Parameters

alchemy

Alchemy The Alchemy instance containing the SDK client

Returns

(client: AlchemySmartAccountClient) => AlchemyEnhancedApis A client decorator for Alchemy Smart Account clients that adds the enhanced API methods