account-kit/infra
Enumerations
Enumeration | Description |
---|---|
SimulateAssetType | - |
SimulateChangeType | - |
Interfaces
Interface | Description |
---|---|
SimulateAssetChange | - |
SimulateAssetChangesError | - |
Type Aliases
Variables
Functions
Function | Description |
---|---|
alchemy | Creates an Alchemy transport with the specified configuration options. When sending all traffic to Alchemy, you must pass in one of rpcUrl, apiKey, or jwt. If you want to send Bundler and Paymaster traffic to Alchemy and Node traffic to a different RPC, you must pass in alchemyConnection and nodeRpcUrl. |
alchemyGasAndPaymasterAndDataMiddleware | Paymaster middleware factory that uses Alchemy’s Gas Manager for sponsoring transactions. Uses Alchemy’s custom alchemy_requestGasAndPaymasterAndData method instead of conforming to the standard ERC-7677 interface. Note that if you use createAlchemySmartAccountClient , this middleware is already used by default and you do not need to manually include it. |
alchemyGasManagerMiddleware | Paymaster middleware factory that uses Alchemy’s Gas Manager for sponsoring transactions. Adheres to the ERC-7677 standardized communication protocol. |
alchemyUserOperationSimulator | A middleware function to be used during simulation of user operations which leverages Alchemy’s RPC uo simulation method. |
convertHeadersToObject | - |
createAlchemyPublicRpcClient | Creates an Alchemy public RPC client with the provided chain, connection configuration, and optional fetch options. The client has alchemy methods and can dynamically update HTTP headers. |
createAlchemySmartAccountClient | Creates an Alchemy smart account client using the provided configuration options, including account details, gas manager configuration, and custom middleware. |
defineAlchemyChain | Defines an Alchemy chain configuration by adding an Alchemy-specific RPC base URL to the chain’s RPC URLs. |
getAlchemyPaymasterAddress | Retrieves the Alchemy paymaster address for the given chain. Returns different addresses based on the chain ID. |
getDefaultUserOperationFeeOptions | Retrieves the default user operation fee options for a given chain. Adjusts fees for specific chains like Arbitrum and Optimism. |
getSignerTypeHeader | - |
headersUpdate | Update the headers with the trace header and breadcrumb. |
isAlchemySmartAccountClient | Checks if a given client is an Alchemy Smart Account Client. The goal of this check is to ensure that the client supports certain RPC methods. |
isAlchemyTransport | A type guard for the transport to determine if it is an Alchemy transport. Used in cases where we would like to do switching depending on the transport, where there used to be two clients for an alchemy and a non-alchemy, and with this switch we don’t need the two seperate clients. * |
mutateRemoveTrackingHeaders | Remove the tracking headers. This is used in our split transport to ensure that we remove the headers that are not used by the other systems. |