Skip to content

alchemyEnhancedApiActions

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

Import

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

Usage

import { Alchemy } from "alchemy-sdk";
import { alchemyEnhancedApiActions } from "@account-kit/infra";
import { alchemySCAClient } from "./client";
 
const alchemy = new Alchemy(...);
const enhancedApiDecorator = alchemyEnhancedApiActions(alchemy);
const 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