Allocations API
Reference for the DFNS Allocations API, which lets you earn rewards on your crypto holdings through integrated rewards providers across supported chains.
Providers
Protocols
Theprotocol 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
- Create an Allocation position: Create a new allocation position by depositing/trading assets into the Allocations protocol.
- Track Status: Monitor the Allocation position execution.
- 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.
Unique identifier for the allocation investment.
Required string length:
1 - 64Pattern:
^allctn-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{14,16}$Example:
"allctn-7mnn0-rltpq-9bvps60gjm09td0j"
Wallet id.
Required string length:
1 - 64Pattern:
^wa-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{14,16}$Example:
"wa-5pfuu-9euek-h0odgb6snva8ph3k"
The DeFi protocol used for allocation generation. Currently supports OFNS protocol
Available options:
0fns The total amount currently invested in this allocation.
- Native Asset
- EVM Fungible Token (ERC-20)
The total rewards earned so far in this allocation.
- Native Asset
- EVM Fungible Token (ERC-20)
Last modified on July 28, 2026