@align-network/align-sdk
v1.5.2
Published
Align Attestation Station SDK
Downloads
1,338
Readme
[!CAUTION] UNSTABLE. This repo changes rapidly and the contracts are updated frequently. An SDK for interacting with the Align Network
Use
see test for example
const data = {
from: "1", // Align Id you issuing to
post: "This is the first post, for testing!", // text of post
image: "imageurl",
dateOf: new Date().toLocaleString(),
};
// validte the incoming data is in the correct format
const PRIVATE_KEY = process.env.PRIVATE_KEY as `0x${string}`;
const account = privateKeyToAccount(PRIVATE_KEY as `0x${string}`);
// interact defaults
let res = await interactDefaults(data, 1n, "post", account);
console.log(res.receipt);
expect(res.success).to.be.true;
});
Align Default Interaction Types:
post
blog
points