Dexterity UXDC Faucet

*The faucet has a rate limit for only one 100k UXDC Airdrop per wallet per hour

How to use the API:


// .ts
import axios from 'axios';

async function requestAirdrop(pubkey: string, network: 'testnet' | 'devnet'): Promise<void> {
  try {
    const response = await axios.post('https://uxdc-faucet-api-1srh.vercel.app/api/uxdc-airdrop', {
      pubkey,
      network,
    });

    console.log('Airdrop successful:', response.data);
  } catch (error) {
    if (error.response) {
      console.error('Error:', error.response.data.error);
    } else {
      console.error('Request failed:', error.message);
    }
  }
}

// Example usage:
const publicKey = 'your-public-key-here';
const network = 'testnet';
requestAirdrop(publicKey, network);