How to deposit
Last updated
Last updated
In this section, you'll learn how to request ready-to-use transaction data (bytecode) for depositing into a yield position.
As in the section, you can choose either the explicit path or the protocol-agnostic (less explicit) path to get the transaction data.
Use this when you want to work with a specific yield protocol.
Request Transaction Data Fetch specific protocol information using:
Required Parameters:
action
Type of operation
deposit
chainId
Blockchain network ID
137
(Polygon)
protocol
Protocol name
aave
amount
Deposit amount
1000000000000000000
(1 ETH with decimals)
asset
Asset to deposit
ETH
wallet
Wallet that will be the owner of the position
0x1234567890123456789012345678901234567890
Example Request:
Response:
Our API returns the transaction data as an object containing to
, value
, and data
fields.
Let our system automatically select the optimal protocol for your needs.
Use the Generic Endpoint
Use the same parameters as above, excluding protocol
.
Example Request:
Response:
Our API returns the transaction data as an object containing to
, value
, and data
fields.
After getting the transaction data, you can: