Skip to main content

Providers

Protocols

The protocol field of an allocation identifies the strategy it deposits into: Yield.xyz vaults are available on mainnet networks only. For a product-level overview, see Allocations.

Flow Overview

  1. Create an Allocation position: Create a new allocation position by depositing/trading assets into the Allocations protocol.
  2. Track Status: Monitor the Allocation position execution.
  3. Increase/Decrease position: Add or remove assets from an existing Allocation position.

Allocation object

A allocation investment representing funds deposited to earn interest from a DeFi protocol.

id
string
required

Unique identifier for the allocation investment.

Required string length: 1 - 64
Pattern: ^allctn-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{14,16}$
Example:

"allctn-7mnn0-rltpq-9bvps60gjm09td0j"

walletId
string
required

Wallet id.

Required string length: 1 - 64
Pattern: ^wa-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{14,16}$
Example:

"wa-5pfuu-9euek-h0odgb6snva8ph3k"

protocol
enum<string>
required

The DeFi protocol used for allocation generation. Currently supports OFNS protocol

Available options:
0fns
amount
Native Asset · object
required

The total amount currently invested in this allocation.

rewards
Native Asset · object
required

The total rewards earned so far in this allocation.

dateCreated
string<date-time>
required

ISO 8601 date (must be UTC). ISO 8601 date. When the allocation was created.

Example:

"2023-04-14T20:41:28.715Z"

Last modified on July 28, 2026