메인 콘텐츠로 건너뛰기

4단계로 시작하기

계정을 만들고 자동화를 활성화하며 API 키를 생성하고 첫 요청을 수행합니다.

1단계: 로그인

app.afkcrypto.com 에 접속하세요.

2단계: 자동화 활성화(지갑)

Wallets 페이지에서 주소의 Automation을 켜세요. 세션 기반 비수탁 서명으로 자동화 워크플로우의 트랜잭션에 서명합니다. 언제든 해제할 수 있습니다.

3단계: API 키 생성(지갑 자동화)

대시보드 API Keys에서 지갑 자동화용 API 키를 생성합니다.
  • 헤더: x-api-key: afk_<prefix>_<random>
  • 비밀로 유지하세요. 유출 시 교체
자세한 내용은 인증을 참조하세요.

4단계: API 호출 수행

재사용을 위해 환경 변수에 API 키 설정:
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"
    }
  ]
}
모든 쓰기 엔드포인트에 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"
}

다음 단계

핵심 엔드포인트 살펴보기:
도움이 필요하신가요? [email protected] 으로 이메일하거나 Twitter 에서 문의하세요.