Skip to main content

Transactions

The transaction module has submodules that allow various operations to be carried out on the blockchain.

Properties

Blockchain Utilities

Interface that allows read and write operations on the blockchain.

blkUtilsApi

See more details in blkUtilsApi

API for ERC20

Interface that allows transactions on ERC20 tokens.

erc20Api

See more details in erc20Api

API for ERC721

Interface that allows transactions on ERC721 contracts.

erc721Api

See more details in erc721Api

API for ERC1155

Interface that allows transactions on ERC1155 contracts.

erc1155Api

See more details in erc1155Api

Orderbook API

Interface that allows transactions to be carried out on the Orderbook.

orderApi

See more details in orderApi

Utility to get the caller

This method returns an instance of CallerUtil.

callers

See more details in callers

Methods

Adapt a transaction

The adapterTx method allows you to adapt a transaction and return a TransactionObserver that allows you to observe the state of the transaction.

const tx = sdk.transactions.erc721Api.mint(mintableAsset, owner, caller);

const transactionObserver = sdk.transactions.adapterTx(tx);