> ## Documentation Index
> Fetch the complete documentation index at: https://tonapi.ness.uz/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Account Defi Assets

> Return DeFi assets locked in custom smart contracts: currently returns TON Whales staking and EVAA lending positions.




## OpenAPI

````yaml GET /v2/accounts/{account_id}/defi/assets
openapi: 3.0.0
info:
  title: REST api to TON blockchain explorer
  version: 2.0.0
  description: Provide access to indexed TON blockchain
  contact:
    name: Support
    email: support@tonkeeper.com
servers:
  - url: https://tonapi.io
  - url: https://testnet.tonapi.io
  - url: http://localhost:8081
security: []
tags:
  - name: Accounts
    externalDocs:
      description: Additional documentation
      url: https://docs.tonconsole.com/tonapi/rest-api/accounts
  - name: Migration
  - name: NFT
    externalDocs:
      description: Additional documentation
      url: https://docs.tonconsole.com/tonapi/rest-api/nft
  - name: Jettons
    externalDocs:
      description: Additional documentation
      url: https://docs.tonconsole.com/tonapi/rest-api/jettons
  - name: DNS
    externalDocs:
      description: Additional documentation
      url: https://docs.tonconsole.com/tonapi/rest-api/dns
  - name: Wallet
    externalDocs:
      description: Additional documentation
      url: https://docs.tonconsole.com/tonapi/rest-api/wallet
  - name: Rates
    externalDocs:
      description: Additional documentation
      url: https://docs.tonconsole.com/tonapi/rest-api/rates
  - name: Staking
    externalDocs:
      description: Additional documentation
      url: https://docs.tonconsole.com/tonapi/rest-api/staking
  - name: Traces
    externalDocs:
      description: Additional documentation
      url: https://docs.tonconsole.com/tonapi/rest-api/traces
  - name: Events
    externalDocs:
      description: Additional documentation
      url: https://docs.tonconsole.com/tonapi/rest-api/events
  - name: Storage
    externalDocs:
      description: Additional documentation
      url: https://docs.tonconsole.com/tonapi/rest-api/storage
  - name: Connect
    externalDocs:
      description: Additional documentation
      url: https://docs.tonconsole.com/tonapi/rest-api/connect
  - name: Gasless
    externalDocs:
      description: Additional documentation
      url: https://docs.tonconsole.com/tonapi/rest-api/gasless
  - name: Multisig
    externalDocs:
      description: Additional documentation
      url: https://docs.tonconsole.com/tonapi/rest-api/multisig
  - name: Blockchain
    externalDocs:
      description: Additional documentation
      url: https://docs.tonconsole.com/tonapi/rest-api/blockchain
  - name: Lite Server
    externalDocs:
      description: Additional documentation
      url: https://docs.tonconsole.com/tonapi/rest-api/lite-server
  - name: Emulation
    externalDocs:
      description: Additional documentation
      url: https://docs.tonconsole.com/tonapi/rest-api/emulation
  - name: Utilities
    externalDocs:
      description: Additional documentation
      url: https://docs.tonconsole.com/tonapi/rest-api/utilities
  - name: ExtraCurrency
    externalDocs:
      description: Additional documentation
      url: https://docs.tonconsole.com/tonapi/rest-api/extra-currency
  - name: Purchases
paths:
  /v2/accounts/{account_id}/defi/assets:
    get:
      tags:
        - Accounts
      description: >
        Return DeFi assets locked in custom smart contracts: currently returns
        TON Whales staking and EVAA lending positions.
      operationId: getAccountDefiAssets
      parameters:
        - $ref: '#/components/parameters/accountIDParameter'
      responses:
        '200':
          description: account's DeFi assets
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DefiAssets'
        default:
          $ref: '#/components/responses/Error'
components:
  parameters:
    accountIDParameter:
      in: path
      name: account_id
      required: true
      description: account ID
      schema:
        type: string
        format: address
        example: 0:97264395BD65A255A429B11326C84128B7D70FFED7949ABAE3036D506BA38621
  schemas:
    DefiAssets:
      type: object
      required:
        - assets
      properties:
        assets:
          type: array
          items:
            $ref: '#/components/schemas/DefiAsset'
    DefiAsset:
      type: object
      required:
        - type
        - amount
        - defi_provider
        - locked_asset
      properties:
        type:
          $ref: '#/components/schemas/DefiAssetType'
        amount:
          type: string
          x-js-format: bigint
          description: amount in minimal units of the locked asset
          example: '1000000000'
        pool_address:
          type: string
          format: address
        asset_address:
          type: string
          format: address
        defi_provider:
          $ref: '#/components/schemas/DefiProvider'
        locked_asset:
          $ref: '#/components/schemas/DefiLockedAsset'
    InsufficientFunds:
      type: object
      description: >
        Present on an error when a request failed because the source wallet does
        not hold enough TON to cover the required gas (error_code 50000).
      required:
        - required
        - available
      properties:
        required:
          type: integer
          format: int64
          description: TON in nanotons required to cover transfer gas
          x-js-format: bigint
        available:
          type: integer
          format: int64
          description: TON in nanotons currently available on the source wallet
          x-js-format: bigint
    DefiAssetType:
      type: string
      enum:
        - staking
        - lending_supply
        - lending_borrow
        - liquid_staking
        - liquid_pool
        - yield_token
    DefiProvider:
      type: object
      required:
        - name
        - description
        - link
        - icon
        - card
        - full
        - tag
      properties:
        name:
          type: string
          example: Morpho
        description:
          type: string
          example: Earn up to 15% yield on your crypto
        link:
          type: string
          example: https://lite.morpho.org/tac/earn/
        miniapp_link:
          type: string
          example: https://t.me/MorphoOrgBot
        icon:
          type: string
        card:
          type: string
        full:
          type: string
        tag:
          type: string
          example: morpho
    DefiLockedAsset:
      type: object
      required:
        - type
      properties:
        type:
          type: string
          description: native Gram or jetton asset
          enum:
            - native
            - jetton
        jetton:
          $ref: '#/components/schemas/JettonPreview'
    JettonPreview:
      type: object
      required:
        - address
        - name
        - symbol
        - decimals
        - verification
        - image
        - score
      properties:
        address:
          type: string
          format: address
          example: 0:0BB5A9F69043EEBDDA5AD2E946EB953242BD8F603FE795D90698CEEC6BFC60A0
        name:
          type: string
          example: Wrapped TON
        symbol:
          type: string
          example: WTON
        decimals:
          type: integer
          example: 9
        image:
          type: string
          example: https://cache.tonapi.io/images/jetton.jpg
        verification:
          $ref: '#/components/schemas/JettonVerificationType'
        custom_payload_api_uri:
          type: string
        score:
          type: integer
          format: int32
        scaled_ui:
          $ref: '#/components/schemas/ScaledUI'
        description:
          type: string
    JettonVerificationType:
      type: string
      enum:
        - whitelist
        - graylist
        - blacklist
        - none
    ScaledUI:
      type: object
      required:
        - numerator
        - denominator
      properties:
        numerator:
          type: string
          x-js-format: bigint
          example: '597968399'
        denominator:
          type: string
          x-js-format: bigint
          example: '597968399'
  responses:
    Error:
      description: Some error during request processing
      content:
        application/json:
          schema:
            type: object
            required:
              - error
            properties:
              error:
                type: string
              error_code:
                type: integer
                format: int64
              details:
                $ref: '#/components/schemas/InsufficientFunds'

````

## Related topics

- [Get Account Jetton Balance](/rest/get_account_jetton_balance_get.md)
- [Get Account Jettons Balances](/rest/get_account_jettons_balances_get.md)
- [Get Migration Wallets](/rest/get_migration_wallets_post.md)
- [Get Account Multisigs](/rest/get_account_multisigs_get.md)
- [Get Multisig Account](/rest/get_multisig_account_get.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.