Returns a Faucet object by sending a provider name which can be one of
credix
: Credix (opens in a new tab)solfaucet
: SolFaucet (opens in a new tab)stakely
: Stakely (opens in a new tab)togatech
: Togatech (opens in a new tab)thirdweb
: ThirdWeb (opens in a new tab)quicknode
: QuickNode (opens in a new tab)
And a transaction signature, block or address, By default uses Mainnet cluster, but optionally takes a cluster as third parameter.
Solana explorer URL.
import { getFaucetUrl } from '@lndgalante/solutils';
const { faucet: credixFaucet } = getFaucetUrl('credix');
console.log(credixFaucet);
// {
// url: 'https://spl-token-faucet.com',
// maxSolAmount: 1,
// tweetRequired: false,
// captchaRequired: false
// }