कंटेंट पर जाएँ
TakoAPI
स्किल्स पर वापस

zyfai-sdk

pauldefi द्वारा

DevOps & Cloud
2.1kclawskills.sh द्वारा बताए गए डाउनलोड
3स्टार
0व्यूज़
0 लाइकइस स्किल को लाइक करने के लिए साइन इन करें
—अभी तक कोई रेटिंग नहीं
आपकी रेटिंग

संक्षिप्त

Earn yield on any Ethereum wallet on Base, Arbitrum, and Plasma.

विवरण

यह स्किल क्या करती है

Zyfai lets any Ethereum wallet earn yield on Base, Arbitrum, and Plasma by deploying a non-custodial Safe smart wallet linked to the user's EOA. Deposited funds are automatically rebalanced across DeFi protocols. The user retains ownership and can withdraw anytime.

It sets up a non-custodial yield-earning subaccount with automated rebalancing in a few SDK calls, without the user manually tracking or interacting with individual DeFi protocols.

इसे कब इस्तेमाल करें

  • Earning passive yield on idle USDC without using a centralized exchange
  • Automating DeFi yield for an AI agent's on-chain treasury
  • Comparing conservative vs aggressive strategy APYs before committing funds
  • Withdrawing a partial amount while keeping the remainder in yield
  • Registering an agent smart wallet on the ERC-8004 Identity Registry

उदाहरण वर्कफ़्लो

इनपुट

User asks: Set up yield earning on my wallet 0x123... on Base with a conservative strategy and deposit 100 USDC

एजेंट
  1. 1

    Creates a ZyfaiSDK instance using the API key and connects the wallet to Base (chain ID 8453)

  2. 2

    Checks whether a subaccount already exists for the EOA via getSmartWalletAddress

  3. 3

    Deploys a Safe subaccount with the conservative strategy if not yet deployed

  4. 4

    Calls createSessionKey and verifies hasActiveSessionKey is true before proceeding

  5. 5

    Deposits 100 USDC (100000000 in 6-decimal format) to the subaccount via depositFunds

आउटपुट

Subaccount deployed and 100 USDC deposited; funds are earning yield automatically on Base

आवश्यकताएँ

  • Zyfai API key, obtained at sdk.zyf.ai or via POST https://sdk.zyf.ai/api/sdk-api-keys/create

इंस्टॉलेशन

clawhub install pauldefi/zyfai-sdk

CLI कमांड चलाएँ, या प्रॉम्प्ट को Claude Code, Cursor, Codex या जो भी कोडिंग एजेंट आप इस्तेमाल करते हैं उसमें पेस्ट करें।

लिंक