• Creates a transport that communicates with the MetaMask extension via Chrome's externally_connectable API

    Parameters

    • params: {
          extensionId?: string;
      } = {}

      Configuration parameters for the transport

      • OptionalextensionId?: string

        Optional MetaMask extension ID. If not provided, it will be auto-detected.

    Returns Transport

    A Transport instance that communicates with the MetaMask extension

    // Create transport with auto-detection of extension ID
    const transport = getExternallyConnectableTransport();

    // Create transport with specific extension ID
    const transport = getExternallyConnectableTransport({
    extensionId: '...'
    });