Actions19
- Block Actions
- DeFi Actions
- NFT Actions
- Token Actions
- Transaction Actions
- Wallet Actions
DeFi → Get DeFi Positions
AI-generatedOverview
This node interacts with the Moralis Web3 API to retrieve DeFi positions for a specified wallet address on a selected blockchain. It is useful for users who want to monitor or analyze their decentralized finance investments across different chains such as Ethereum, Polygon, or Binance Smart Chain. For example, a user can input their wallet address and select the blockchain to get detailed information about their DeFi positions held in that wallet.
Use Case Examples
- A user wants to see all their DeFi positions on the Ethereum blockchain by providing their wallet address and selecting Ethereum as the chain.
- A portfolio manager wants to track DeFi positions across multiple chains by running this node with different chain options and wallet addresses.
Properties
| Name | Meaning |
|---|---|
| Chain | The blockchain network to query for DeFi positions, e.g., Ethereum, Polygon, BSC. |
| Wallet Address | The wallet address to query for DeFi positions, required to identify the user's DeFi holdings. |
| Additional Fields | Optional parameters to customize the query such as limit on number of results, pagination cursor, whether to include metadata, and number format (decimal or hex). |
Output
JSON
json- The JSON response from Moralis API containing DeFi positions data, including operation, resource, chain, and a timestamp.
Dependencies
- Moralis Web3 API with an API key credential
Troubleshooting
- Common issues include invalid or missing wallet address, unsupported chain selection, or API key authentication errors.
- Error messages may indicate 'No data found' if the wallet has no DeFi positions or if the API request fails.
- Ensure the API key is valid and has access to the Moralis Web3 API.
- Check that the wallet address is correctly formatted and corresponds to the selected blockchain.
Links
- Moralis DeFi API - Get DeFi Positions - Official Moralis documentation for the DeFi positions endpoint used by this node.