Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.mag3nt.com/llms.txt

Use this file to discover all available pages before exploring further.

How funding works

  1. Deposit USDC to your treasury address on any supported network
  2. System detects the deposit automatically (no API call needed)
  3. Balance updates — your treasury balance reflects the deposit
  4. Issue cards backed by your available balance

Check your treasury address

const config = await mag3nt.status.statusGetConfig();
console.log("EVM treasury:", config.treasury?.evm);
console.log("Solana treasury:", config.treasury?.solana);

Supported tokens

const tokens = await mag3nt.funding.fundingListTokens();
// Returns supported tokens per network:
// eip155:8453 → USDC (0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913)
// eip155:1   → USDC (0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48)
// solana:mainnet → USDC (EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v)
// ... 8 networks total

Check balance

const balance = await mag3nt.funding.fundingGetBalance();
// Returns:
// - total_funded: Total USDC deposited
// - total_allocated: Amount locked in active cards
// - total_spent: Amount spent through transactions
// - total_withdrawn: Amount withdrawn to wallet
// - available: Spendable balance (funded - allocated - withdrawn)

Withdraw to wallet

Move funds from your treasury back to your wallet:
const withdrawal = await mag3nt.funding.fundingWithdraw({
  amount: 25.0,
  network: "eip155:8453",
  asset: "USDC",
});
console.log("Withdrawal ID:", withdrawal.withdrawalId);
//# Withdrawal is processed automatically
Withdrawals may take a few minutes to confirm on-chain.

Supported networks

NetworkChain IDUSDC Contract
Baseeip155:84530x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
Ethereumeip155:10xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
Arbitrumeip155:421610xaf88d065e77c8cC2239327C5EDb3A432268e5831
Optimismeip155:100x0b2C639c533813f4Aa9D7837CAf62653d097Ff85
Polygoneip155:1370x3c499c542cEF5E3811e1192ce70d8cC03d5c3359
Avalancheeip155:431140xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E
Base Sepoliaeip155:845320x036CbD53842c5426634e7929541eC2318f3dCF7e
Solanasolana:mainnetEPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v