Registering Content
Koii can be earned on any content where Proofs of Real Traffic are submitted.

Recipients SDK Tool
Example:
For Arweave NFT:
For IPFS content:
Last updated

Koii can be earned on any content where Proofs of Real Traffic are submitted.

Last updated
const { registerArweaveNFT } = require("@_koii/k2-recipient-sdk")
const jsonfile = require("jsonfile");
async function main(){
const wallet = jsonfile.readFileSync("ar-wallet.json");
const recipientDataArweave = await registerArweaveNFT(wallet, {
contentRegistryId:"<Your Arweave content transaction ID>", // Arweave transcation id
k2PubKey: "<Your Koii Wallet public key>", // Koii wallet public key
});
// example:
// const recipientDataArweave = await registerArweaveNFT(wallet, {
// contentRegistryId:"05xEYtfjKwZ_tEIN5Yssg5-7HhQ_52Fwjs7JgCI0cOM", // Arweave transcation id
// k2PubKey: "4HV3retNdHCnNR4Q9KKdug2qQXTKvd8PJCehGJ6gTUKN", // Koii wallet public key
// });
}Β
main(){
"name": "<Content-name>",
"description": "<Content description >",
"author": "<author>",
"githubURL": "https://github.com",
...
}const { registerIpfsNFT } = require("@_koii/k2-recipient-sdk")
// dotenv.config();
async function main() {
// IPFS recipient Signing
//-----------------------------
let recipientsDataIPFS = await registerIpfsNFT(
{
privateKey: new Uint8Array([
16, 179, 201, 59, 157, 142, 252, 32, 11, 119, 232, 101, 245, 5, 225,
...
]), // Copy & Paste your Koii wallet json file content here
image: "./scene-9.png", // Your content image here
metadata: "./metadata.json", //Your metadata.json
},
"eyJhbGciOiJI..." // IPFS token
);
}
main();