The client instance to use for the operation.
The parameters for the drip request
Optional
chain?: ChainFaucetOptional
token?: Address | { address: Address } | nullPromise that resolves when the testnet token request is completed
// Request all available testnet tokens
await drip(client, {
account: '0x1234567890123456789012345678901234567890'
})
// Request only native tokens
await drip(client, {
account: '0x1234567890123456789012345678901234567890',
token: null
})
// Request specific token (USDC)
await drip(client, {
account: '0x1234567890123456789012345678901234567890',
token: client.chain.contracts.USDC
})
Request testnet tokens for an account on a supported blockchain.
This function facilitates getting testnet tokens (native tokens, USDC, EURC) for testing purposes. It automatically determines which tokens to request based on the specified token parameter or defaults to requesting all available tokens for the chain.