@alphafi/alphalend-sdk - v3.0.1
    Preparing search index...

    Function getUserPositionCapId

    • Fetches a user's position capability ID (first cap returned by GraphQL).

      Parameters

      • blockchain: Blockchain

        Blockchain client

      • userAddress: string

        Address of the user

      Returns Promise<string | undefined>

      Promise resolving to the position capability ID or undefined if the user owns no PositionCap.