Usage

Futureverse Transact is a class-based JavaScript library offering various static methods and helper functions to simplify the logic developers need to perform transactions on TRN pallets.

Check the documentation for The Root Network Runtime Pallets for more information about the pallets covered by Futureverse Transact.

After installing Futureverse Transact, you must import TransactionBuilder and instantiate it to access the functionalities supplied by this library for creating transactions and querying the chain.

Static Methods

Before building your transactions and targeting The Root Network pallets, you must import TransactionBuilder into your component and instantiate it.

Example:

import { TransactionBuilder } from '@futureverse/transact';

const assetBuilder = await TransactionBuilder.asset(api, signer, walletAddress, assetId).transfer({ destinationAddress: userSession?.futurepass, amount: 1 })

Note: Query capability is exposed from the root of the Transaction Builder class, enabling developers to query the chain. More details are available on the Query page.

Futureverse Transact currently provides the following static methods developed to build transactions for various pallets on The Root Network:

The detailed functionalities and their usage are described on the following pages.

Last updated

© 2023 -> ♾️