Skip to main content
This page gets you from nothing to a working stake button and position display. The examples use viem. Any Ethereum library works the same way.
1

Add the two contracts

contracts.ts
Use these proxy addresses. Never use the implementation addresses behind them.
2

Show the customer's position

One call returns everything your screen needs.
position.ts
3

Let them stake

Two transactions, both signed by the customer.
stake.ts
The customer receives sUSDh in the same wallet that signed.
4

Check where they are

Before you show the stake button, make sure staking is offered where your customer is. See Rules for offering staking.

Next

Last updated: Nov 17, 2026