EnvironmentManager

Configure default environment variables

Overview

EnvironmentManager allows developers to set default variables to be used when calling FunWallet methods. Currently, EnvironmentManager allows a developer to specify the following default environment variables:

Config PropertyDefault Value
API KeynbiQS2Ut932ewF5TqiCpl2ZTUqPWb1P29N8GcJjy
Target Blockchainethereum-goerli
Send Transaction Later Modefalse
Gas Payment ModeBase Gas Token
Developer FeeNo fee


Methods


configureEnvironment

Configure default environment variables
configureEnvironment(options)

Parameters

options
object

Default environment configuration variables. It has the following properties:

options properties
apiKey
string
chain
string || int
ethereum-goerli || 5
sendTxLater
bool

If set to true all sendTx or first class actions will return signed transactions instead of executing them.

gasSponsor
object
gasSponsor properties
token
address || string

When used, the sponsor becomes a token sponsor, while its absence defaults to a gasless sponsor

sponsorAddress
address
Required