This method allows you to set your own web3 provider. Note that our library performs low level calls and does not require a web3 library. You might though have implemented a tunnel (e.g. WalletConnect) in which case you would want to use a web3 provider connected to that tunnel. The passed provider will be then used to perform the calls.
This method is automatically called before interacting with the blockchain, but you can call it yourself in order to trigger a connection request to the web3 provider. After the connection, the connected wallet address will be populated as a checksummed string in the following attribute:
This method retrieves the amount of tokens an account owns at a specific collection address. If the given account is linked through a voxlink with a main wallet, that account is treated as a burner wallet and the result will be for the main wallet.
This methods tries to determine the type of token behind the collectionAddress (ERC721, ERC1155 and ERC20). In the case of ERC1155, the retrieval is a bit more complex as the IDs are first retrieved by scanning all transfer events emitted. The result is an integer.