@intellax/ix-ethereum-connector
v2.1.2
Published
[wagmi](https://wagmi.sh/) configuration wrapper
Downloads
233
Readme
ix-ethereum-connector
wagmi configuration wrapper
- Ethereum Library wagmi: https://wagmi.sh/
- Ethereum client viem: https://viem.sh/
INSTALL
npm install @web3modal/wagmi wagmi viem @tanstack/react-query @intellax/ix-ethereum-connector
CONFIG
/**
* https://wagmi.sh/react/getting-started
*/
/**
* https://wagmi.sh/react/getting-started
*/
type Options = {
/**
* Get projectId at https://cloud.walletconnect.com
*/
projectId: string;
createConfig?: CreateConfigParameters;
walletConnectMetadata: {
name: string;
description: string;
url: string;
icons: string[];
};
/**
* @description WalletConnectParameters
* @link https://wagmi.sh/core/api/connectors/walletConnect#parameters
*/
walletConnectConfig?: WalletConnectParameters;
web3ModalOptions?: Web3ModalOptions<ReturnType<typeof defaultWagmiConfig>>;
/**
* set Default Chains
* testnet: true [polygonMumbai, spolia]
* testnet: false [polygon, mainnet]
*/
testnet: boolean;
/**
* Override Chains
* @link https://wagmi.sh/core/api/chains
*/
chains?: [Chain, ...Chain[]];
/**
* @description Auto connect to wallet
*/
autoConnect?: boolean;
debug?: boolean;
/**
* try Connect to IX Wallet Provider
* default: true
*/
tryIxInjected?: boolean;
};