Integration

Quickstart

Open your first credit line in five minutes. You will need an EVM wallet, some testnet ETH for gas, and a testnet USDG balance from the Paxos faucet.

1. Add the network

See Network details for one-click MetaMask configuration.

2. Fund your wallet

ETH for gas comes from the Robinhood Chain faucet. USDG for testing borrows comes from the Paxos faucet — select USDG, set the network to Robinhood Chain Testnet, enter your address, send 100 tokens.

3. Deposit and borrow

typescript
import { createWalletClient, custom } from "viem";
import { vela, TSLA } from "@vela/sdk";

const wallet = createWalletClient({
  chain: vela.chains.robinhoodTestnet,
  transport: custom(window.ethereum),
});

// 10 TSLA in, 3,000 USDG out
await vela.deposit({ wallet, asset: TSLA, amount: 10n * 10n ** 18n });
await vela.borrow({ wallet, amount: 3_000n * 10n ** 6n });