React Hooks API Reference / useRecords / getVerifiedRecords
Function: getVerifiedRecords()
getVerifiedRecords(
connection,domain,records,deserialize?):Promise<VerifiedRecordResult[]>
Defined in: react/src/hooks/useRecords/index.ts:55
Retrieves records and removes entries that fail verification.
The output preserves the order of records. Missing records, stale records,
and records that fail an applicable right-of-association check are returned
as undefined.
Parameters
connection
Connection
Solana RPC connection
domain
string
Full .sns or .sol domain name
records
Record[]
Record types to retrieve
deserialize?
boolean = false
Whether to deserialize record content
Returns
Promise<VerifiedRecordResult[]>
Verified record results in the same order as records
When used as a query function, rejected record retrieval is exposed through
the query result's error and isError fields.
Example
const records = await getVerifiedRecords(connection, "example.sns", [Record.Url]);