> ## Documentation Index
> Fetch the complete documentation index at: https://docs.epicentral.markets/llms.txt
> Use this file to discover all available pages before exploring further.

# Test Funds (Devnet)

> Claim paper USDC on Devnet using requestTestUsdc.

Devnet markets settle in a test USDC Collateral Mint. Use `requestTestUsdc` to ask the deployment faucet to mint `10,000` test USDC directly into a wallet.

The mint authority stays on the server. Your wallet signs a short authentication message and does not need SOL to claim.

## Claiming Test USDC

`requestTestUsdc` checks eligibility, builds the canonical faucet message, calls your `signMessage` callback, and submits the claim.

Your `signMessage` function must sign the exact bytes provided and return a 64-byte Ed25519 signature. `@solana/kit`'s `signBytes` satisfies this requirement.

```ts theme={"dark"}
import { createKeyPairSignerFromBytes, signBytes } from "@solana/kit";
import { requestTestUsdc } from "@epicentral/sos-sdk";

const signer = await createKeyPairSignerFromBytes(secretKey);

const result = await requestTestUsdc({
  faucetUrl: "https://epicentral.markets/api/sdk/test-funds",
  walletAddress: signer.address,
  signMessage: (message) => signBytes(signer.keyPair.privateKey, message),
});

if (result.funded) {
  console.log("Funded:", result.amount, result.mint);
  console.log("Signature:", result.signature);
} else {
  console.log("Cooldown active. Next claim at:", result.nextAvailableAt);
}
```

## Return Shape

`requestTestUsdc` resolves to `TestUsdcFaucetResult`:

<table>
  <colgroup>
    <col width="18%" />

    <col width="22%" />

    <col width="60%" />
  </colgroup>

  <thead>
    <tr>
      <th>Field</th>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>`funded`</td>
      <td>`boolean`</td>
      <td>`true` when tokens were minted; `false` during the cooldown window.</td>
    </tr>

    <tr>
      <td>`walletAddress`</td>
      <td>`string`</td>
      <td>Recipient wallet address.</td>
    </tr>

    <tr>
      <td>`amount`</td>
      <td>`number`</td>
      <td>Claim amount in human-readable token units.</td>
    </tr>

    <tr>
      <td>`mint`</td>
      <td>`string`</td>
      <td>Test USDC Collateral Mint address.</td>
    </tr>

    <tr>
      <td>`signature`</td>
      <td>`string | null`</td>
      <td>Mint transaction signature when `funded` is `true`, otherwise `null`.</td>
    </tr>

    <tr>
      <td>`nextAvailableAt`</td>
      <td>`string | null`</td>
      <td>ISO timestamp for the next eligible claim.</td>
    </tr>
  </tbody>
</table>

## Rate Limits

Each wallet can claim once every 24 hours. If a wallet calls `requestTestUsdc` again inside the cooldown window, the function returns `funded: false` with `nextAvailableAt` populated instead of throwing.

> [!NOTE]
>
> `requestTestUsdc` is for Devnet testing only. When you switch your integration to Mainnet, remove the faucet call and fund wallets with Mainnet collateral.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.