Create Allocation
Create a new allocation.
An allocation deposits assets from one of your wallets into a rewards-earning protocol. Two providers are available:
| Provider | Description | Supported chains |
|---|---|---|
| M0 | Offers the 0fns protocol, an extension to the M0 USD-based stablecoin $M. Trade USDC on Ethereum into 0fns to earn rewards. | Ethereum Mainnet, Ethereum Sepolia |
| Yield.xyz | Offers a set of DeFi vault strategies, each with its own APY. Deposit the vault’s underlying token; withdraw it at any time. | Ethereum Mainnet, Base |
The protocol field selects the strategy:
protocol | Provider | Strategy | Deposit asset | Network |
|---|---|---|---|---|
0fns | M0 | 0fns | USDC | Ethereum |
SkySusds | Yield.xyz | Sky Savings Rate (sUSDS) | USDS | Ethereum |
GauntletUsdcPrime | Yield.xyz | Gauntlet USDC Prime (gtUSDC) | USDC | Ethereum |
SteakhouseUsdt | Yield.xyz | Steakhouse USDT (steakUSDT) | USDT | Ethereum |
GauntletUsdcPrimeBase | Yield.xyz | Gauntlet USDC Prime (gtUSDCp) | USDC | Base |
SteakhouseUsdcBase | Yield.xyz | Steakhouse USDC (steakUSDC) | USDC | Base |
SentoraPyusdMain | Yield.xyz | Sentora PYUSD Main (senPYUSDMain) | PYUSD | Ethereum |
Yield.xyz vaults are available on mainnet networks only.
Authentication
✅ Organization User (CustomerEmployee)❌ Delegated User (
EndUser)✅ Service Account
Required Permissions
Allocations:Create: Always requiredWallets:Transactions:Create: Always required. Allocation transactions are broadcast from your wallet.FeeSponsors:Use: Required if feeSponsorId is specified and the sponsoree wallet belongs to an EndUser user kind.Authorizations
Bearer Token: Used to authenticate API requests. More details how to generate the token: Authentication flows
User Action Signature: Used to sign the change-inducing API requests. More details how to generate the token: User Action Signing flows
Body
- 0fns Allocation Request
- Sky sUSDS Allocation Request
- Gauntlet gtUSDC Allocation Request
- Steakhouse USDT Allocation Request
- Gauntlet USDC Prime (Base) Allocation Request
- Steakhouse USDC (Base) Allocation Request
- Sentora PYUSD Main Allocation Request
Request body for creating an allocation investment.
Wallet id.
1 - 64^wa-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{14,16}$"wa-5pfuu-9euek-h0odgb6snva8ph3k"
Ofns protocol
0fns The slippage tolerance for this trade in basis point (BPS). Slippage tolerance defines the maximum price difference you're willing to accept during a trade from the estimated quote, ensuring you still receive at least a minimum number of tokens if the price shifts. One basis point equals one-hundredth of a percentage point, or 0.01%.
0 <= x <= 10000An optional external identifier provided by the client to ensure idempotency and prevent duplicate operations.
The provider handling this allocation. M0 offers the 0fns protocol; Yield.xyz offers vault strategies on Ethereum and Base.
M0, Yield.xyz Id of the fee sponsor that will pay the network fees for this allocation. When set, allocation transactions are broadcast as sponsored user operations.
1 - 64^fs-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{14,16}$"fs-5vqdl-gliqk-b4rfukqauov1sp7j"
Response
Success
A allocation investment representing funds deposited to earn interest from a DeFi protocol.
Unique identifier for the allocation investment.
1 - 64^allctn-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{14,16}$"allctn-7mnn0-rltpq-9bvps60gjm09td0j"
Wallet id.
1 - 64^wa-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{14,16}$"wa-5pfuu-9euek-h0odgb6snva8ph3k"
The DeFi protocol used for allocation generation. See Create Allocation for each protocol's provider, deposit asset, and network.
0fns, SkySusds, GauntletUsdcPrime, SteakhouseUsdt, GauntletUsdcPrimeBase, SteakhouseUsdcBase, SentoraPyusdMain The total amount currently invested in this allocation.
- Native Asset
- EVM Fungible Token (ERC-20)
- Solana Fungible Token (SPL)
The total rewards earned so far in this allocation.
- Native Asset
- EVM Fungible Token (ERC-20)
- Solana Fungible Token (SPL)
The provider handling this allocation.
M0, Yield.xyz