मुख्य सामग्री पर जाएं

Documentation Index

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

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

4 चरणों में शुरुआत करें

अकाउंट बनाएं, ऑटोमेशन सक्षम करें, API कुंजी बनाएं, और अपनी पहली रिक्वेस्ट करें।

चरण 1: साइन इन

app.afkcrypto.com पर जाएं।

चरण 2: ऑटोमेशन सक्षम करें (वॉलेट्स)

Wallets पेज पर अपने पते के लिए Automation को ऑन करें। यह सेशन-आधारित, नॉन-कस्टोडियल साइनिंग का उपयोग करके स्वचालित वर्कफ़्लो के लिए ट्रांज़ैक्शन्स पर साइन करता है। आप कभी भी रद्द कर सकते हैं।

चरण 3: API कुंजी बनाएं (वॉलेट ऑटोमेशन)

डैशबोर्ड के API Keys पेज पर वॉलेट ऑटोमेशन के लिए API कुंजी बनाएं।
  • हेडर: x-api-key: afk_<prefix>_<random>
  • इसे गोपनीय रखें; समझौता होने पर बदलें
विवरण के लिए प्रमाणीकरण देखें।

चरण 4: API कॉल करें

पुन: उपयोग के लिए अपनी API कुंजी को एक environment variable में सेट करें:
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"
    }
  ]
}
सभी write endpoints पर Idempotency-Key: <uuid> प्रदान करें।
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...", "explorerUrl": "https://basescan.org/tx/0x...", "chainName": "Base" }
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,
  "explorerUrl": null,
  "chainName":"Base",
  "chainType":"ethereum",
  "chainId":8453,
  "to":"0xrecipient...",
  "value":"1000000000000000",
  "error": null,
  "createdAt":"2025-08-25T08:00:00.000Z",
  "updatedAt":"2025-08-25T08:00:00.000Z"
}

आगे के चरण

अगले कदम के रूप में मुख्य endpoints देखें:

एसेट भेजें

नैटिव और टोकन एसेट्स ट्रांसफर करें।

टोकन अप्रूव करें

ERC20 अलाउंस सेट करें।

ट्रेड

कोट्स प्राप्त करें और स्वैप निष्पादित करें।

API दस्तावेज़

एंडपॉइंट्स और कन्वेंशंस देखें।
मदद चाहिए? hello@afkcrypto.com पर लिखें या Twitter पर संपर्क करें।