isAlchemyTransport

1function isAlchemyTransport(transport, chain): transport is AlchemyTransport;

Defined in: account-kit/infra/src/alchemyTransport.ts:94

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. *

Parameters

ParameterTypeDescription

transport

Transport

The transport to check

chain

Chain

Chain for the transport to run its function to return the transport config

Returns

transport is AlchemyTransport

true if the transport is an Alchemy transport, otherwise false