utils library

Classes

BaseOptions
The base config for the Dio instance, used by Dio.options.
BigIntConverter
ChainBaseApi
ChainBaseApiBase
An abstract class representing the base API for interacting with a blockchain.
ChainBaseResponse
DioClient
ENS
ENSResponse
HexConverter
NFT
NFTAttributes
NFTBalancesResponse
NFTFloorPrice
NFTMetadata
RestClient
Rest client utility class using Dio for making HTTP requests over Rest Endpoints.
Token
TokenBalancesResponse
TokenMetadata
TokenMetadataResponse
TokenPrice
TokenPriceResponse
TokenTransfer
TokenTransfersResponse
TokenUrl
Transaction
TransactionsResponse

Functions

arrayify(String hexString) Uint8List
Converts the given hex string hexString to its corresponding 32 bytes Uint8List representation.
getPublicKeyFromBytes(Uint8List publicKeyBytes) Future<List<String>?>
Encrypts the provided public key bytes publicKeyBytes with EcdsaPublicKey.
hexlify(List<int> intArray) String
Converts the list of integer values intArray to a hexadecimal string.
require(bool requirement, String exception) → dynamic
Throws an exception with the provided exception message if the given requirement is not met.
sha256Hash(List<int> input) Digest
Computes the SHA-256 hash of the given input input.
shouldRemoveLeadingZero(Uint8List bytes) bool
Checks if the first byte in the provided bytes is 0x0 and the second byte's most significant bit is set.
toBuffer(List<List<int>> buff) List<int>
Concatenates a list of lists of integer values buff into a single list of integers.

Enums

TxType