List
Currently only supports domains
Rules
JSON format
key
required
description
op
yes
operation. "list"
p
yes
protocol. "domain"
id
yes
inscription ID of the domain
Typescript example
const data = JSON.stringify(
{ op: "list", p: "domain", id: "787...i0" },
null,
0
);
const buf = Buffer.from(data);
const script = new ScriptBuilder()
.addData(XOnlyPublicKey.fromAddress(account).toString())
.addOp(Opcodes.OpCheckSig)
.addOp(Opcodes.OpFalse)
.addOp(Opcodes.OpIf)
.addData(Buffer.from("kns"))
.addI64(0n)
.addData(buf)
.addOp(Opcodes.OpEndIf);
Last updated