KNS Docs
  • KNS Documentation
  • Introduction
  • How to Use KNS
    • Step by Step Tutorial
    • Search
    • .kas Inscribe Tool
    • Text Inscribe Tool
    • Dashboard
  • OTHERS
    • Supporting Wallet
    • FAQ
  • Fee Model
  • Reserved List
  • KNS Indexer API
  • Ownership
    • Verfied Domains
    • First Come First Served
  • Inscriptions
    • Overview
    • Operations
      • Create
      • Send
      • List
      • Transfer
Powered by GitBook
On this page
  • Rules
  • Typescript example
  1. Inscriptions
  2. Operations

Send

  • In development

  • Currently only supports domains

Rules

  • The previous outpoint must be a valid listing inscription

  • JSON format

key
required
description

op

yes

operation. "send"

id

yes

inscription ID of the domain

Typescript example

const data = JSON.stringify({ op: "send", 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);
PreviousCreateNextList

Last updated 3 months ago