Skip to main content

JavaScript SDK API Reference / Bindings / updateRecord

Function: updateRecord()

updateRecord(domain, record, content, owner, payer): TransactionInstruction

Defined in: bindings/updateRecord.ts:26

Builds an instruction to update a record for a .sns domain or subdomain.

Parameters​

domain​

string

Full .sns domain or subdomain name

record​

Record

Record type

content​

string

Record content

owner​

PublicKey

Current owner of the domain

payer​

PublicKey

Fee payer for the instruction

Returns​

TransactionInstruction

Transaction instruction.

Example​

const instruction = updateRecord("example.sns", Record.Url, "https://example.com", owner, payer);