Prerequisites: KYC & Whitelisting
1. Complete KYC / KYB
2. Register the wallet you'll use
3. Wallet gets whitelisted on-chain
import {createPublicClient, http} from 'viem'
import {mainnet} from 'viem/chains'
const client = createPublicClient({chain: mainnet, transport: http()})
const whitelistingAddress = '0x25f1a2Ce5b681592E4196616f72aa27593EB5df8'
const whitelistingAbi = [
{
type: 'function', stateMutability: 'view',
name: 'isWhitelisted',
inputs: [{name: 'account', type: 'address'}],
outputs: [{type: 'bool'}],
},
{
type: 'function', stateMutability: 'view',
name: 'whitelistExpiration',
inputs: [{name: 'account', type: 'address'}],
outputs: [{type: 'uint256'}],
},
] as const
const isWhitelisted = await client.readContract({
address: whitelistingAddress,
abi: whitelistingAbi,
functionName: 'isWhitelisted',
args: [myWallet],
})4. KYC renewal
Using multiple wallets
Last updated
Was this helpful?
