vaults.fyi
  • General
    • ๐ŸฆOverview
    • ๐Ÿ’กUse Cases
      • For Wallets and Apps
      • For Analysts
      • For Protocols & Product Teams
    • ๐Ÿ”ŽMethodology
      • vaults.fyi USD benchmark rate
      • vaults.fyi ETH benchmark rate
    • โ“FAQ
      • Vault requirements for inclusion on vaults.fyi
    • ๐Ÿค–AI
  • API
    • Introduction
      • Market data
      • Transactional support
      • Portfolio tracking
      • Personalized insights
  • Endpoints
    • General
    • Detailed Vaults
    • Historical
    • Portfolio
    • Transactions
    • Legacy (v1) endpoints
      • v1 Market data
        • Get historical data
          • Get historical APY and TVL data on single vault over timestamp range
          • Get historical APY on single vault over timestamp range
          • Get historical TVL on single vault at single timestamp
          • Get historical APY on single vault at single timestamp
        • Get data for multiple vaults
        • Get data on single vault
          • Get APY on single vault
        • Get benchmark rates
        • Get supported vaults, networks & tokens
          • /vaults
          • /networks
          • /tokens
          • /tags
      • v1 Contextual insights
        • Top vault options for address
        • Get single top option for address
        • [Etherscan cards] Get top USD, top ETH vault for address
      • v1 Generate payloads
        • Prepare calldata
          • Supply/Deposit
          • Withdraw/Redeem
            • Request redeem
            • Claim redeem
          • Claim rewards
        • Get contract interaction details
        • Get supported assets
        • Get supported vaults
      • v1 Position tracking
        • Get user balances
        • Get user positions
        • Get list of past vault txns by user address
        • Get estimated returns for user's vault position
  • Case Studies
    • Kraken Wallet
    • Etherscan Cards
  • Plans
    • Credits
      • Credits (v1 endpoints)
  • Links
    • vaults.fyi
    • X
    • Farcaster
    • Wallfacer Labs
Powered by GitBook
On this page
  1. Endpoints
  2. Legacy (v1) endpoints
  3. v1 Generate payloads

Get contract interaction details

PreviousClaim rewardsNextGet supported assets

Last updated 1 month ago

Get information about functions for smart contract interactions with each lending/staking vault.

get
Authorizations
Query parameters
networkstring ยท enumRequiredPossible values:
userAddressstringRequiredPattern: ^0x[a-fA-F0-9]{40}$
vaultAddressstringRequiredPattern: ^0x[a-fA-F0-9]{40}$
Responses
200
Default Response
application/json
get
GET //v1/transactions/vaults/actions/details HTTP/1.1
Host: api.vaults.fyi
x-api-key: YOUR_API_KEY
Accept: */*
200

Default Response

{
  "currentDepositStep": "text",
  "depositSteps": [
    {
      "actions": [
        "text"
      ],
      "actionsUrl": "text",
      "name": "deposit"
    }
  ],
  "currentRedeemStep": "text",
  "redeemSteps": [
    {
      "actions": [
        "text"
      ],
      "actionsUrl": "text",
      "name": "redeem"
    }
  ],
  "lpTokenBalance": "text",
  "idleAssets": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  },
  "lockedValueInAssets": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  },
  "unclaimedAssets": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  },
  "vaultSpecificData": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  },
  "rewards": {
    "claimable": [
      {
        "amount": "text",
        "token": {
          "address": "text",
          "name": "text",
          "symbol": "text",
          "decimals": 1,
          "network": "mainnet"
        }
      }
    ],
    "currentStep": "text",
    "steps": [
      {
        "actions": [
          "text"
        ],
        "actionsUrl": "text",
        "name": "claim"
      }
    ]
  }
}