For the complete documentation index, see llms.txt. This page is also available as Markdown.
Get Multiple Escrow Balances
The ideal form for this endpoint.
Schema
This validates an escrow form using Zod, including wallet addresses.
import{z}from"zod";exportconstformSchema=z.object({signer:z.string().min(1,"Signer address is required"),addresses:z.array(z.object({value:z.string().min(1,"Address is required"),}) ).min(1,"At least one address is required"),});
Custom Hook
This contains all the form logic, including schema validation, onSubmit function and others states and functionalities.
Form
This form is built with react hook form. We use the custom hook and zod schema mentioned before.