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:

If chain is left blank, the FunWallet SDK will default to ethereum-goerli.

Multiple audits are ongoing for mainnet support.

const { configureEnvironment } = require("fun-wallet")
const configureChain = async () => {
await configureEnvironment({
chain: "ethereum-goerli"

See how to test on the selected chain here.