withProvider
withProvider
method allows you to create a wallet client with a custom provider & account.
Usage
example.ts
await mintclub
.network('ethereum')
.withProvider(window.birdman!)
.token('MINT')
.create({
name: 'Mint Club',
reserveToken: {
address: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2', // mainnet WETH token address
decimals: 18,
},
curveData
})
Return Value
Returns the network
instance, so you chain functions such as token
and nft
.
Parameters
provider
- Type:
any
Custom wallet provider