@permafacts-tools/facts-sdk
v0.0.7
Published
This library was generated with [Nx](https://nx.dev).
Readme
facts-sdk
This library was generated with Nx.
Install
npm i @ar-kit/facts-sdk@latest
Use
Import Warp / Arweave in your index.html.
<!-- index.html -->
<head>
<script src="https://unpkg.com/[email protected]/bundles/web.bundle.min.js"></script>
<script src="https://unpkg.com/[email protected]/bundles/web.iife.bundle.min.js"></script>
</head>Import @ar-kit/facts-sdk and use.
// some-file.ts
import { assert, attach, buy, sell } from '@ar-kit/facts-sdk';
// assert
const factMarket = await assert({
data: {}, // Data will be stringified and used as the "contract data"
description: '<description>',
owner: '<wallet-address>',
title: '<title>',
rebutTx: '<tx>', // Optional
topic: 'test', // Optional
});
const tx = factMarket.id;
// TODO: attach
// TODO: buy
// TODO: sellTest
Run nx test node-facts-sdk to execute the unit tests via Jest.
Lint
Run nx lint node-facts-sdk to execute the lint via ESLint.
More
- https://facts.g8way.io
- https://github.com/permafacts/ar-kit/tree/main/packages/node/facts-sdk
