Generate yield from your wallet’s tokens
Staking is available under private access. Contact us if you need access
wallets:transactions.create
List available yield opportunities for a wallet.
import { useWallet } from '@crossmint/client-sdk-react-ui'; const { wallet } = useWallet(); const yields = await wallet.experimental_yields(tokens);
The tokens to generate yield for.
The yields.
Stake to earn yield.
import { useWallet } from '@crossmint/client-sdk-react-ui'; const { wallet } = useWallet(); const { hash, explorerLink } = await wallet.experimental_stake(tokenLocator, amount);
The token locator to stake.
The amount to stake.
The hash of the transaction.
The explorer link of the transaction.
Unstake from the yield.
import { useWallet } from '@crossmint/client-sdk-react-ui'; const { wallet } = useWallet(); const { hash, explorerLink } = await wallet.experimental_unstake(tokenLocator, amount);
The token locator to unstake.
The amount to unstake.
Was this page helpful?