Earn
Create and execute a lending action (deposit or withdraw)
Creates and runs a sequence of on-chain steps for either a deposit into or a withdrawal from an earn vault/market. Specify the operation with action in the request body (DEPOSIT or WITHDRAW).
post/earn/actions
Request
- Base URLhttps://api.fireblocks.io/v1
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Idempotency-Keystring
A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.
Request body
Example request
{
"action": "DEPOSIT",
"opportunityId": "morpho-usdc-vault-1",
"vaultAccountId": "12345",
"amount": "1000.0"
}Response
OK
Example response
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"status": "CREATED"
}Changes
No recorded changes to this operation across all 1 revision of this API.