Skip to main content

Get started in 4 steps

Create an account, enable automation, create an API key, and make your first request.

Step 1: Sign in

Sign in at app.afkcrypto.com.

Step 2: Enable automation (Wallets)

In the Wallets page, toggle on Automation for your address. This enables AFK to sign transactions for automated workflows using session-based, non-custodial signing. You can revoke at any time.

Step 3: Create API key (wallet automation)

In the dashboard’s API Keys page, create an API key for wallet automation.
  • Header: x-api-key: afk_<prefix>_<random>
  • Keep this secret; rotate if compromised

Step 4: Make API calls

Set your API key in an environment variable for reuse:
export AFK_API_KEY="afk_abcd_xxx"
curl -s -H "x-api-key: $AFK_API_KEY" \
  "https://api.afkcrypto.com/v1/wallets?chain=ethereum"
{
  "wallets": [
    {
      "address": "0xabc...",
      "chainType": "ethereum",
      "isDefault": true,
      "automationEnabled": true,
      "providerType": "embedded",
      "clientType": "privy"
    }
  ]
}
Provide Idempotency-Key: <uuid> on all write endpoints.
curl -s -X POST https://api.afkcrypto.com/v1/send \
  -H "x-api-key: $AFK_API_KEY" -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "chain":"base-sepolia",
    "asset":"erc20",
    "token":"0xToken",
    "to":"0xRecipient",
    "amount":"1000000000000000000"
  }'
{ "id": "tx_...", "status": "SUBMITTED", "hash": "0x..." }
curl -s -X POST https://api.afkcrypto.com/v1/contracts/send \
  -H "x-api-key: $AFK_API_KEY" -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "chain":"base-sepolia",
    "to":"0xContract",
    "data":"0xabcdef...",
    "value":"0"
  }'
curl -s -X POST https://api.afkcrypto.com/v1/send \
  -H "x-api-key: $AFK_API_KEY" -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "chain":"solana-devnet",
    "asset":"spl",
    "token":"MintAddress",
    "to":"RecipientOwnerAddress",
    "amount":"1000000"
  }'
curl -s -H "x-api-key: $AFK_API_KEY" \
  "https://api.afkcrypto.com/v1/tx/tx_cuid_here"
{
  "id":"tx_cuid_here",
  "status":"PENDING",
  "hash": null,
  "chainType":"ethereum",
  "chainId":8453,
  "to":"0xrecipient...",
  "value":"1000000000000000",
  "error": null,
  "createdAt":"2025-08-25T08:00:00.000Z",
  "updatedAt":"2025-08-25T08:00:00.000Z"
}

Next steps

Explore the core endpoints next:
Need help? Email hello@afkcrypto.com or reach out on Twitter.
I