Config
Config Module
This module contains a config
function that sets up the Ethereum network session configuration.
Functions
config({ signer, autoLogin }: { signer?: SessionSigner; autoLogin?: boolean; })
This function accepts a configuration object with the following properties:
signer
(optional): An instance ofSessionSigner
.autoLogin
(optional, default istrue
): A boolean indicating whether to enable automatic login.
The function sets the autoLogin
value in the session, sets the signer, and initiates a connection.
Example:
Last updated