preRegistration
This endpoint needs to be hit by each user involved with a vault during the vaults registration phase. All users must perform this step before registerStep1 can be performed.
For this step, and the following 3 registration steps, each one of the participants must finish the step before the following step can be completed by any participant.
So, all users must complete preRegistration before any user can perform registerStep1.
import { preRegistration, getVaults } from "@intuweb3/web-exp";
let myVaults = getVaults("0x12345_user_address", provider);
//whichever vault address you need to interact with in myvaults
//example, myVaults[0].vaultAddress;
await preRegistration(vaultAddress, signer);
Input | Type of Input | Description |
---|---|---|
signature | string | hash of the signature of the vault message |
signer | Object | Signer object acquired from ethers or equivalent |