Exothium-DAO is a JavaScript library that allows developers to interact with the Exothium DAO core contracts on Starknet. Every project that intends to interact with game contracts or DAO contracts can use this library to quickly and easily interact with the,.
- ✅ Allow developers to easily interact with the Exothium DAO core contracts on Starknet.
- ✅ Lightweight and easy to use.
- ✅ Open source and free to use.
- Add Dao contract mechanics
- Add ExoWorld game contracts mechanics
npm install exothium-dao
To connect a wallet (e.g. Braavos or ArgentX), you need to use the starknetConnect
function.
import {starknetConnect, starknetDisconnect, ownerOfExothian} from 'exothium-dao';
const connect = async () => {
await starknetConnect();
}
To disconnect a wallet, you need to use the starknetDisconnect
function.
const disconnect = async () => {
await starknetDisconnect();
}
To get the owner of an Exothian, you need to use the ownerOfExothian
function.
const owner = await ownerOfExothian(1); //get owner of Exothian with id 1