Interact with the Rareweave platform programatically
This library isnt finished and is prone to breaking changes
const rw = require("rw.js"); // Place holder name
const JWK = require("./JWK.json"); // Your wallet pretty much
(async () => {
const client = await new rw.Client({
prophet: "prophet.rareweave.store",
wallet: JWK,
});
let nft = await client.GetNft("HIufcajDbKEbQIbvORswimsuwAhz4_QaG5-a-JwuSBo");
// NFT State
let readState = await nft.readState();
let state = await readState.cachedValue.state;
// Editing NFT
await client.EditNft(nft, {
description: "Example",
forSale: true,
price: 1000000000000, // 1 AR
});
})();
To:Do
Read examples
- Fetch NFT data
- Mint
- Edit
- Indexing
Buy