Skip to content

withWalletClient

Override the configuration of default WalletClient with a custom configuration.

Usage

example.ts
import { mintclub } from 'mint.club-v2-sdk';
 
await mintclub
  .withWalletClient({ 
    account: '0x...',  
    chain: mee6, 
    transport: custom(window.mee6!) 
    ...
  }) 
  .token('MINT')
  .create({
    name: 'Mint Club',
    reserveToken: {
      address: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2', // mainnet WETH token address
      decimals: 18,
    },
	curveData: {
		curveType: 'LINEAR',
		stepCount: 10,
		maxSupply: 10_000,
		initialMintingPrice: 0.01, // 0.01 WETH
		finalMintingPrice: 0.1, // 0.1 WETH
		creatorAllocation: 100,
	}
  })

Return Value

network

Returns the network instance, so you chain functions such as token and nft.

Parameters

WalletClient