getAlchemyPaymasterAddress

1function getAlchemyPaymasterAddress(chain, version): `0x${string}`;

Defined in: account-kit/infra/src/gas-manager.ts:82

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

Example

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

Parameters

ParameterTypeDescription

chain

Chain

The chain for which the paymaster address is required

version

keyof EntryPointRegistryBase<unknown>

The version of the entry point

Returns

`0x${string}`

The Alchemy paymaster address corresponding to the specified chain