JS Kit SDK API Reference / Bindings / updateRecord
Function: updateRecord()
updateRecord(
params):Promise<Instruction<string, readonly (AccountLookupMeta<string,string> |AccountMeta<string>)[]>>
Defined in: bindings/updateRecord.ts:67
Builds an instruction to update a V2 record for a .sns domain or subdomain.
Record content is serialized according to SNS-IP 1.
Parameters
params
Record update parameters
Returns
Promise<Instruction<string, readonly (AccountLookupMeta<string, string> | AccountMeta<string>)[]>>
Transaction instruction.
Example
const instruction = await updateRecord({
domain: "example.sns",
record: Record.Url,
content: "https://example.com",
owner,
payer,
});