Set Target Blockchain
Choose the blockchain to execute transactions on.
The chain entry should be set to the name of the target blockchain intended to execute transactions. The following options are available for the chain parameter:
ethereum-localfork
ethereum-funtestnet
ethereum coming soon
polygon coming soon
binance-smart-chain coming soon
If chain is left blank, the FunWallet SDK will default to ethereum-goerli.
Multiple audits are ongoing for mainnet support.
configureChain.js
const { configureEnvironment } = require("fun-wallet")const configureChain = async () => {await configureEnvironment({chain: "ethereum-goerli"})}configureChain()
See how to test on the selected chain here.