burnKoiAttention

Content creators can earn attention rewards in KOII by registering content with Koii Network. Register once and get rewarded forever.

This function enables content to earn attention rewards for anything that has already been uploaded on Arweave.

Parameters

  • reward: (Optional) <string> Custom reward for smartweave transaction

  • nftTxId: <string> ID of the NFT to be preregistered

Example Code

const knode = require("@_koi/sdk/node");
const ktools = new knode.Node();
const walletKeyLocation = "arweaveWallet.json";

async function testburnKoiAttention() {
    const jwk = await ktools.loadFile(walletKeyLocation);
    await ktools.loadWallet(jwk);
  
    let txId = "rnc8IO7O7fd8Hovvvmq2YZ4y1CI-O0tdRavSGj_meYE";
    var result = await ktools.burnKoiAttention(txId);
  
    console.log("transaction", result);
}


testburnKoiAttention();

Example Code Output

Returns

Promise <string> - Arweave transaction ID

Last updated