Skip to content

getAlchemyPaymasterAddress

Retrieves the Alchemy paymaster address for the given chain. Returns different addresses based on the chain ID.

Import

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

Usage

import { sepolia, getAlchemyPaymasterAddress } from "@account-kit/infra";
 
const paymasterAddress = getAlchemyPaymasterAddress(sepolia);

Parameters

chain

Chain The chain for which the paymaster address is required

Returns

Address The Alchemy paymaster address corresponding to the specified chain