Skip to content

Latest commit

 

History

History
47 lines (37 loc) · 1.5 KB

README.md

File metadata and controls

47 lines (37 loc) · 1.5 KB

@aresrpg/aresrpg-sdk

fully in javascript powered by lsd Chat

A collection of queries to read AresRPG on chain

Installation

This README is uncomplete! It is recommended to use moduleResolution: "nodenext" in your tsconfig

npm install @aresrpg/aresrpg-sdk

Exports

You have access to a few packages

import * from '@aresrpg/aresrpg-sdk/sui'
import * from '@aresrpg/aresrpg-sdk/chunk'
import * from '@aresrpg/aresrpg-sdk/experience'
import * from '@aresrpg/aresrpg-sdk/stats'
import * from '@aresrpg/aresrpg-sdk/spells' // json file
import * from '@aresrpg/aresrpg-sdk/types' // some additonnal types

Usage (WIP)

To start using the SDK, you need to configure it with the appropriate network details:

import { SDK } from '@aresrpg/aresrpg-sdk/sui'

const sdk = await SDK({
  rpc_url: 'https://fullnode.testnet.sui.io/',
  network: 'testnet', // required for modules addresses
})