Mint and Redeem support
Pre-read
Review the Authentication Guide for the Alluvial API.
Onboarding wallets
Create an Account object
First create an account object for each of your users.
Request:
Response:
Create Wallet objects
Add wallet to Allowlist
Attach a wallet object to each account. You can add the wallet to the Allowlist (on-chain) or the On-Platform list (off-chain).
The first example below shows how to add a wallet address to the Allowlist (which be default is added to the On-Platform list).
Use the Alluvial account in UUID in the uri Path
Request:
The status of the Wallet object upon creation will be NOT_READY
. This is because the wallet information will be sent to the Allowlist smart contract to update the Registry. Once the Registry contract is updated, the status will change to ALLOWLISTED
.
Once the wallet address is added to the Allowlist it will also automatically be added to the On-Platform list.
Response:
Add wallet to On-Platform list
Platforms that enable mint/redeem may also need to add a wallet address to the On-Platform list separately. The following request is for a Platform that enables mint/redeem to add a wallet to the On-Platform list.
Request:
Request:
Now that you have an Account object created and Wallet objects associated, the user can stake ETH and mint LsETH. Before depositing, ensure that the Wallet object(s) have a status = ALLOWLISTED
.
Stake ETH
To complete the staking process, review this guide.
Last updated