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).

Note: This endpoint is currently in beta and might be subject to changes.

Body Params
string
enum
required

Whether to deposit into or withdraw from the lending opportunity.

Allowed:
string
required

Identifier of the vault or market (lending opportunity).

string
required

Fireblocks vault account that will execute the action.

string
required

Human-readable token amount (e.g. "1.6") or the keyword "max" for the full position or available balance.

Headers
string

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.

Responses

Language
URL
LoadingLoading…
Response
Choose an example:
application/json