walletkit_dart library

Classes

Amount
ARBITRUM_NETWORK
ArrayFunctionParamType<T>
Array TODO: Add support for fixed size arrays
AVALANCHE_NETWORK
BASE_NETWORK
BaseFunctionParamType<T>
Bip44HDWalletPath
Bip49HDWalletPath
Bip84HDWalletPath
BITCOIN_NETWORK
BitcoinBip44HDPath
BitcoinBip49HDPath
BitcoinBip84HDPath
BITCOINCASH_NETWORK
BitcoinNSHDPath
BNB_NETWORK
BTCRawTransaction
Raw Transaction Implementation for Bitcoin
ChangeNode
CoinEntity
ContractABI
ContractEvent
ContractFunction
ContractFunctionWithValues
ContractFunctionWithValuesAndOutputs
DecodedRLP
DynamicFunctionParamType<T>
EC8RawTransaction
Raw Transaction Implementation for EC8
ElectrumInput
ElectrumOutput
ElectrumScriptPubKey
EmptyNode
EnsRegistryContract
EnsResolverContract
ERC20Contract
ERC20Entity
ERC721Entity
ErrorContractFunctionMixin
ETHEREUM_NETWORK
EthereumBip44HDPath
EtherscanExplorer
EtherscanTransaction
EUROCOIN_NETWORK
EvmCoinEntity
EvmFeeInformation<T extends EvmGasPrice>
EvmGasPrice
EvmLegacyGasPrice
EvmNetworkFees
EVMNetworkType
EvmRpcClient
EvmRpcInterface
EVMTransaction
EvmType2GasPrice
ExternalContractFunction
An Object that represents a contract function where we only have the function signature And hence only have the function name, selector and the parameters Only used for decoding existing datafields
ExternalContractFunctionMixin
A mixin for External Contract Functions Does not have any additional properties just a marker
ExternalContractFunctionWithValues
An Object that represents a contract function where we only have the function signature And hence only have the function name, selector and the parameters Created after decoding the datafield with ExternalContractFunction
ExternalContractFunctionWithValuesAndOutputs
FeeInformation
FunctionParam
FunctionParamAddress
Address Bool String
FunctionParamAddressArray
FunctionParamBool
FunctionParamBytes
FunctionParamBytes1
FunctionParamBytes10
FunctionParamBytes11
FunctionParamBytes12
FunctionParamBytes13
FunctionParamBytes14
FunctionParamBytes15
FunctionParamBytes16
FunctionParamBytes17
FunctionParamBytes18
FunctionParamBytes19
FunctionParamBytes2
FunctionParamBytes20
FunctionParamBytes21
FunctionParamBytes22
FunctionParamBytes23
FunctionParamBytes24
FunctionParamBytes25
FunctionParamBytes26
FunctionParamBytes27
FunctionParamBytes28
FunctionParamBytes29
FunctionParamBytes3
FunctionParamBytes30
FunctionParamBytes31
FunctionParamBytes32
FunctionParamBytes4
FunctionParamBytes5
FunctionParamBytes6
FunctionParamBytes7
FunctionParamBytes8
FunctionParamBytes9
FunctionParamBytesArray
FunctionParamBytesBase
FunctionParamFixed
Synonym for FunctionParamFixed128
FunctionParamFixed104
FunctionParamFixed112
FunctionParamFixed120
FunctionParamFixed128
FunctionParamFixed136
FunctionParamFixed144
FunctionParamFixed152
FunctionParamFixed16
FunctionParamFixed160
FunctionParamFixed168
FunctionParamFixed176
FunctionParamFixed184
FunctionParamFixed192
FunctionParamFixed200
FunctionParamFixed208
FunctionParamFixed216
FunctionParamFixed224
FunctionParamFixed232
FunctionParamFixed24
FunctionParamFixed240
FunctionParamFixed248
FunctionParamFixed256
FunctionParamFixed32
FunctionParamFixed40
FunctionParamFixed48
FunctionParamFixed56
FunctionParamFixed64
FunctionParamFixed72
FunctionParamFixed8
FunctionParamFixed80
FunctionParamFixed88
FunctionParamFixed96
FunctionParamFixedBase
FunctionParamFunction
FunctionParamInt
Base class for all integer types since encoding and decoding is the same Valid int are: 8 through 256 with increments of 8 Valid uint are: 8 through 256 with increments of 8
FunctionParamInt104
FunctionParamInt112
FunctionParamInt120
FunctionParamInt128
FunctionParamInt136
FunctionParamInt144
FunctionParamInt152
FunctionParamInt16
FunctionParamInt160
FunctionParamInt168
FunctionParamInt176
FunctionParamInt184
FunctionParamInt192
FunctionParamInt200
FunctionParamInt208
FunctionParamInt216
FunctionParamInt224
FunctionParamInt232
FunctionParamInt24
FunctionParamInt240
FunctionParamInt248
FunctionParamInt256
FunctionParamInt32
FunctionParamInt40
FunctionParamInt48
FunctionParamInt56
FunctionParamInt64
FunctionParamInt72
FunctionParamInt8
FunctionParamInt80
FunctionParamInt88
FunctionParamInt96
FunctionParamString
FunctionParamType<T>
FunctionParamUFixed
Synonym for FunctionParamUFixed128
FunctionParamUFixed104
FunctionParamUFixed112
FunctionParamUFixed120
FunctionParamUFixed128
FunctionParamUFixed136
FunctionParamUFixed144
FunctionParamUFixed152
FunctionParamUFixed16
FunctionParamUFixed160
FunctionParamUFixed168
FunctionParamUFixed176
FunctionParamUFixed184
FunctionParamUFixed192
FunctionParamUFixed200
FunctionParamUFixed208
FunctionParamUFixed216
FunctionParamUFixed224
FunctionParamUFixed232
FunctionParamUFixed24
FunctionParamUFixed240
FunctionParamUFixed248
FunctionParamUFixed256
FunctionParamUFixed32
FunctionParamUFixed40
FunctionParamUFixed48
FunctionParamUFixed56
FunctionParamUFixed64
FunctionParamUFixed72
FunctionParamUFixed8
FunctionParamUFixed80
FunctionParamUFixed88
FunctionParamUFixed96
FunctionParamUint
FunctionParamUint104
FunctionParamUint112
FunctionParamUint120
FunctionParamUint128
FunctionParamUint136
FunctionParamUint144
FunctionParamUint152
FunctionParamUint16
FunctionParamUint160
FunctionParamUint168
FunctionParamUint176
FunctionParamUint184
FunctionParamUint192
FunctionParamUint200
FunctionParamUint208
FunctionParamUint216
FunctionParamUint224
FunctionParamUint232
FunctionParamUint24
FunctionParamUint240
FunctionParamUint248
FunctionParamUint256
FunctionParamUint32
FunctionParamUint40
FunctionParamUint48
FunctionParamUint56
FunctionParamUint64
FunctionParamUint72
FunctionParamUint8
FunctionParamUint80
FunctionParamUint88
FunctionParamUint96
FunctionParamWithValue<T>
FunctionSelectorRepository
GenericTransaction
HDWalletPath
InternalContract
JsonRPC
Json RPC Service.
LITECOIN_NETWORK
LitecoinBip44HDPath
LocalContractFunction
An Object that represents a contract function generated from an ABI Used for Encoding a datafield and after executing decoding the output
LocalContractFunctionMixin
A mixin for Locale Contract Functions Used to get the stateMutability and outputs of the function These are only available in the local contract functions
LocalContractFunctionWithValues
LocalContractFunctionWithValuesAndOutputs
MOONBEAM_NETWORK
NetworkBIP
NetworkFees
NetworkType
NodeWithAddress
TODO: Make sure this only has the privateKey when used for signing. Else EpubKey should be used.
NotAvaialableUTXOTransaction
NotDecodableContractFunction
NSHDWalletPath
OPTIMISM_NETWORK
POLYGON_NETWORK
POPResult
RawEvmTransaction
RawEVMTransactionType0
RawEVMTransactionType1
RawEVMTransactionType2
RawTransaction
ReceiveNode
RPCResponse
Response from the server to an rpc request. Contains the id of the request and the corresponding result as sent by the server.
RpcService
RPC Service base class.
SighashInfo
Signature
TokenInfo
Info which we get over the Smart Contract of an Token
Transaction_raw
TransferIntent<T extends FeeInformation>
TRON_NETWORK
TronBip44HDPath
TronContractData
TronFeeInformation
TronHTTPRepository
TronNetworkFees
TronScanRepository
TronTransaction
TronTransferAssetContractData
Used for Transferring of TRC10 Tokens
TronTransferContractData
Used for Transferring of TRX
TronTRC20TransferContractData
TronTriggerSmartContractData
TupleFunctionParamType
Tuple
UniswapV2Factory
UniswapV2Pair
UniswapV2Router
UnknownContractFunction
UtxoFeeInformation
UtxoNetworkFees
UTXONetworkType
UTXOTransaction
ZENIQ_NETWORK
ZENIQ_SMART_NETWORK
ZeniqScanExplorer
ZKSYNC_NETWORK

Enums

AddressError
AddressType
ConfirmationStatus
FeePriority
GasLimits
HDWalletPurpose
Sorting
StateMutability
TransactionTransferMethod
TransactionType

Extensions

AmountUtil on int
AmountUtilBigInt on BigInt
AmountUtilDouble on double
AmountUtilNum on num
BigIntUtil on BigInt
BIP32Extension on BipNode
BufferUtil on Uint8List
ConvUtil on String
ExtFixedPrecision on double
FuturesUtil on Iterable<Future<T>>
FutureUtil on Future<T>
IntListUtil on List<int>
IterableUtil on Iterable<E>
JsonUtil on Json
ListUtil on List<T>
NodesUtil on Iterable<NodeWithAddress>
NumUtil on num
URLBuilder on String

Constants

ADDRESS_NOT_SUPPORTED → const String
arbitrum → const ERC20Entity
Arbitrum Assets
ArbitrumNetwork → const ARBITRUM_NETWORK
arbitrumTestWallet → const String
Arbitrum
avalanche → const EvmCoinEntity
Avalanche Assets
AvalancheNetwork → const AVALANCHE_NETWORK
avinocETH → const ERC20Entity
avinocZSC → const ERC20Entity
bandWidthPrice → const int
BaseNetwork → const BASE_NETWORK
BCH_SIGHASH_INFO → const SighashInfo
bchCoin → const CoinEntity
binanceSmart → const EvmCoinEntity
Binance Chain Assets
BIP44_PURPOSE → const String
BIP49_PURPOSE → const String
BIP84_PURPOSE → const String
BITCOIN_NETWORK_BIP → const NetworkBIP
BITCOIN_SIGHASH_INFO → const SighashInfo
bitcoinBip44HDPath → const BitcoinBip44HDPath
BIP44 HD Wallet Paths
bitcoinBip49HDPath → const BitcoinBip49HDPath
BIP49 HD Wallet Paths
bitcoinBip84HDPath → const BitcoinBip84HDPath
BIP84 HD Wallet Paths
BitcoincashNetwork → const BITCOINCASH_NETWORK
BitcoinNetwork → const BITCOIN_NETWORK
bitcoinNSHDPath → const BitcoinNSHDPath
No Structure HD Wallet Paths
BNBNetwork → const BNB_NETWORK
BTC_DUSTTRESHOLD → const ({int legacy, int segwit})
btcCoin → const CoinEntity
cLFi → const ERC20Entity
daiToken → const ERC20Entity
devLtub → const String
devMtub → const String
digitalGoldToken → const ERC20Entity
ec8Coin → const CoinEntity
energyPrice → const int
ensRegistryMainnetContractAddress → const String
erc20TransferSig → const String
ethArbitrum → const EvmCoinEntity
ethBase → const EvmCoinEntity
Base Assets
ethereumBip44HDPath → const EthereumBip44HDPath
EthereumNetwork → const ETHEREUM_NETWORK
EVM Networks
etherscanBaseEndpoint → const String
EVM
ethNative → const EvmCoinEntity
Ethereum Assets
ethOptimism → const EvmCoinEntity
ethzkSync → const EvmCoinEntity
ZKSync Assets
EurocoinNetwork → const EUROCOIN_NETWORK
EXTERNAL_CHAIN_INDEX → const int
frax → const ERC20Entity
helloXpub → const String
iLoveSafirToken → const ERC20Entity
INTERNAL_CHAIN_INDEX → const int
kAddressesUpperLimit → const int
kEmptyLimit → const int
LFi → const ERC20Entity
LITECOIN_NETWORK_BIP → const NetworkBIP
LITECOIN_NETWORK_BIP_WK_COMPATIBILITY → const NetworkBIP
Needed for compatibility with old wallets
litecoinBip44HDPath → const LitecoinBip44HDPath
LitecoinNetwork → const LITECOIN_NETWORK
ltcCoin → const CoinEntity
mainnetStakingContract → const String
Staking
mathToken → const ERC20Entity
max_cheap_tx_weight → const int
MAX_PUBKEYS_PER_MULTISIG → const int
maxReturnFieldSize → const int
moonbeam → const EvmCoinEntity
Moonbeam Assets
MoonbeamNetwork → const MOONBEAM_NETWORK
NO_DUSTTRESHOLD → const ({int legacy, int segwit})
NS_PURPOSE → const String
nullAddress → const String
nullToken → const CoinEntity
optimism → const ERC20Entity
Optimism Assets
OptimismNetwork → const OPTIMISM_NETWORK
P2PKH_PREFIX → const String
Address Prefixes
P2PKH_PREFIX_EC8 → const String
P2PKH_PREFIX_LTC → const String
P2PKH_PREFIX_ZENIQ → const String
P2SH_PREFIX → const String
P2SH_PREFIX_LTC → const String
P2WPKH_PREFIX_BTC → const String
P2WPKH_PREFIX_LTC → const String
P2WPKH_PREFIXES_BCH → const List<String>
polygon → const EvmCoinEntity
Polygon Assets
PolygonNetwork → const POLYGON_NETWORK
protoBufferHeaderSize → const int
PUBKEY_SCRIPT_HASH_LENGTH_HEX → const String
publicTestMnemonicHello → const String
DEV
regardlessToken → const ERC20Entity
rejectEVM → const String
rejectLTUB → const String
rejectXpub → const String
rejectXpubBip44 → const String
rejectZpub → const String
SEGWIT_FLAG → const int
SEGWIT_MARKER → const int
sidiToken → const ERC20Entity
SIG_HASH_ALL → const int
smartChainStakingContract → const String
spoilEVM → const String
stakingPartnerAddress → const String
tDroneToken → const ERC20Entity
testnetStakingContract → const String
tron → const CoinEntity
Tron Assets
TRON_ADDRESS_PREFIX → const int
TRON_Network → const TRON_NETWORK
TRON Networks
tronBip44HDPath → const TronBip44HDPath
tronDummyBlock → const TronBlockInfo
tronInitialBlockTimestamp → const int
tronUSDT → const ERC20Entity
tupanToken → const ERC20Entity
type2Multiplier → const double
usdcToken → const ERC20Entity
usdtToken → const ERC20Entity
UTXO_Network_List → const List<UTXONetworkType>
UTXO Networks
vooToken → const ERC20Entity
wbtcToken → const ERC20Entity
wbtcZKSync → const ERC20Entity
wkDebugXPUB → const String
wkDebugXPUBHello → const String
wrappedETH → const ERC20Entity
wrappedZeniqSmart → const ERC20Entity
zeniqBSCToken → const ERC20Entity
zeniqCoin → const CoinEntity
UTXO Assets
zeniqETHToken → const ERC20Entity
ZeniqNetwork → const ZENIQ_NETWORK
zeniqScanEnpoint → const String
zeniqSmart → const EvmCoinEntity
ZSC Assets
ZeniqSmartNetwork → const ZENIQ_SMART_NETWORK
zeniqSmartRPCEndpoint → const String
zenpassContract → const String
ZKSyncNetwork → const ZKSYNC_NETWORK
znsRegistryContractAddress → const String

Properties

contractAbiErc20 ContractABI
final
contractAbiErc721 ContractABI
final
dummySeed Uint8List
final
ensRegistryAbi ContractABI
final
ensResoloverABI ContractABI
final
helloSeed Uint8List
no setter
p2pkhPostfix String
final
p2pkhPrefix String
Public Key Prefixes & Suffixes
final
p2shPostfix String
final
p2shPrefix String
final
p2wpkhPrefix String
final
params ECCurve_secp256k1
final
supportedPaths List<HDWalletPath>
final
uniswap_v2_factory_abi ContractABI
final
uniswap_v2_pair_abi ContractABI
final
uniswap_v2_router_abi ContractABI
final

Functions

arrayifyInteger(int value) Uint8List
@param {int} value
base58CheckFromHex(Uint8List input) String
base58FromEVM(String evmAddress) String
base58ToEVM(String base58, [bool withPrefix = true]) String
base58ToHex(String base58) Uint8List
batchFutures<T>(Iterable<Future<T>> futures, {int batchSize = 10}) Future<List<T>>
broadcastTransaction({required String rawTxHex, required UTXONetworkType type}) Future<String>
buildDummyTx({required UTXONetworkType networkType, required HDWalletPath walletPath, required Map<ElectrumOutput, Input> inputMap, required List<Output> dummyOutputs}) RawTransaction
buildDummyTxFromScratch({required TransferIntent<FeeInformation> intent, required UTXONetworkType networkType, required HDWalletPath walletPath, required Iterable<UTXOTransaction> txList, required List<String> changeAddresses}) DummyTxInfo
Creates a dummy transaction to estimate the size of the transaction and hence the fee Also returns the chosen UTXOs so that they can be used to create the real transaction with the same UTXOs Includes a safety margin so that changes in the Amount dont lead to a different fee
buildInput({required String txidHex, required Set<String> usedUTXO, required ElectrumOutput utxo, required UTXONetworkType networkType}) → Input
buildInputs(Map<ElectrumOutput, UTXOTransaction> utxos, UTXONetworkType networkType) → (BigInt, Map<ElectrumOutput, Input>)
buildOutput(String address, BigInt value, UTXONetworkType networkType) → Output
buildOutputs({required String recipient, required BigInt value, required String? changeAddress, required BigInt changeValue, required UTXONetworkType networkType}) List<Output>
buildRawTransaction(TronContractData contractData, {int feeLimit = 10000000, required TronBlockInfo block}) Transaction_raw
buildUnsignedTransaction({required TransferIntent<UtxoFeeInformation> intent, required UTXONetworkType networkType, required HDWalletPath walletPath, required Iterable<UTXOTransaction> txList, required Amount feePerByte, required Iterable<String> changeAddresses, List<ElectrumOutput>? preChosenUTXOs}) RawTransaction
Useful: https://btcinformation.org/en/developer-reference#raw-transaction-format https://github.com/bitcoin/bips/blob/master/bip-0144.mediawiki
bytesToUnsignedInt(Uint8List bytes) BigInt
calculateFee({required RawTransaction tx, required Amount feePerByte}) BigInt
calculateFeeEC8({required RawTransaction tx}) BigInt
calculateTransactionSize(TronContractData contractData) int
Used for calculating the bandwidth of a transaction (Size in Bytes) Builds a Dummy Transaction and calculates the size of the transaction https://github.com/tronprotocol/wallet-cli/issues/292
compressPublicKey(Uint8List compressedPubKey) Uint8List
Given a byte array computes its compressed version and returns it as a byte array, including the leading 02 or 03
computeBalanceFromUTXOs({required Iterable<UTXOTransaction> txList}) BigInt
computeBalanceFromVisualList({required Iterable<UTXOTransaction> txList}) BigInt
computeMissingUTXODetails({required Iterable<ElectrumTransactionInfo> txList, required Iterable<NodeWithAddress> nodes, required Iterable<AddressType> addressTypes, required UTXONetworkType type, required List<(String, int)> endpoints}) Future<Iterable<UTXOTransaction>>
constructScriptSig({required HDWalletPurpose walletPurpose, required Uint8List signature, required Uint8List publicKey, Uint8List? redeemScript}) Uint8List
createEurocoinMessageHash(String message) Uint8List
createRawTransaction({required TronContractData data, required Uint8List refBlockBytes, required Uint8List refBlockHash, required int expiration, required int timestamp, int? feeLimit}) Transaction_raw
createScriptSignature({required RawTransaction tx, required int i, required ElectrumOutput output, required HDWalletPurpose walletPurpose, required UTXONetworkType networkType, required BIP32 node}) Uint8List
createScriptWitness({required BTCRawTransaction tx, required int i, required ElectrumOutput output, required UTXONetworkType networkType, required BIP32 node}) Uint8List
createTxSignature({required Uint8List txID, required Uint8List seed}) Uint8List
decodeRLP(Uint8List data, int offset) DecodedRLP
@param {Uint8List} data @param {int} offset
deriveBIP32Ec8({required List<int> derivationPath, required Uint8List seed}) Future<NodeWithAddress>
deriveChildNode({required BipNode masterNode, required int chainIndex, required int index, required UTXONetworkType networkType, required Iterable<AddressType> addressTypes, required HDWalletPurpose? walletPurpose}) NodeWithAddress
deriveChildNodeFromPath({required Uint8List seed, required String childDerivationPath, required HDWalletPath walletPath, UTXONetworkType? networkType}) BIP32
deriveExtendedPubKey({required Uint8List seed, required HDWalletPath walletPurpose, UTXONetworkType? type}) String
deriveMasterNodeFromEpubKey(String ePubKey) → (BipNode, int)
deriveMasterNodeFromEpubKeyWithCheck({required String ePubKey, required UTXONetworkType networkType, required HDWalletPath walletPath}) BipNode
deriveMasterNodeFromSeed({required Uint8List seed, required HDWalletPath walletPath, UTXONetworkType? networkType}) BipNode
deriveNode(Uint8List seed, String path) BipNode
derivePrivateKeyETH(Uint8List seed) Uint8List
derivePublicKeyETH(Uint8List seed) Uint8List
determineSendDirection({required List<ElectrumInput> inputs, required List<ElectrumOutput> outputs, required Iterable<NodeWithAddress> nodes, required UTXONetworkType type, required Iterable<AddressType> addressTypes}) TransactionTransferMethod
determineTransactionTarget(List<ElectrumOutput> outputs, TransactionTransferMethod transferMethod, UTXONetworkType type, AddressType addressType) String?
determineTransactionValue(List<ElectrumOutput> outputs, TransactionTransferMethod transferMethod, Iterable<NodeWithAddress> nodes, UTXONetworkType type) → (BigInt, BigInt)
discardRightBigInt(BigInt num1, int decimalPlaces) BigInt
dynToHex(dynamic value) → dynamic
ec8Recover({required String message, required String sig}) String
ec8SignMessage(String message, NodeWithAddress node) Uint8List
encodeVarint(int value) Uint8List
estimateFeeForPriority({required int blocks, required UTXONetworkType network, required ElectrumXClient? initalClient}) Future<Amount>
extractAllUTXOs({required Iterable<UTXOTransaction> txList, bool own = true}) Map<ElectrumOutput, UTXOTransaction>
Returns a map of UTXOs which belong to us and are unspent and their corresponding transactions
extractChainId(int v) int
extractParams(String text) List<(String, String?)>
extractUTXOs({required Iterable<UTXOTransaction> txList}) Map<ElectrumOutput, UTXOTransaction>
Returns a map of UTXOs which belong to us and are unspent and their corresponding transactions
fetchMissingUTXOTransactions({required Set<UTXOTransaction> cachedTransactions, required List<NodeWithAddress> cachedNodes, required Set<ElectrumTransactionInfo> allTxs, required Iterable<NodeWithAddress> nodes, required CoinEntity coin, required UTXONetworkType networkType, required Iterable<AddressType> addressTypes, required List<(String, int)> endpoints, required Stopwatch watch}) Future<UTXOTxInfo>
fetchUTXOTransactions({required Iterable<HDWalletPath> walletTypes, required Iterable<AddressType> addressTypes, required UTXONetworkType networkType, required Uint8List seed, Set<UTXOTransaction> cachedTransactions = const {}, List<NodeWithAddress> cachedNodes = const [], int minEndpoints = 2, Duration maxLatency = const Duration(milliseconds: 800)}) Future<UTXOTxInfo>
fetchUTXOTransactionsFromEpubKey({required Iterable<AddressType> addressTypes, required UTXONetworkType networkType, required String ePubKey, HDWalletPurpose? purpose, Set<UTXOTransaction> cachedTransactions = const {}, List<NodeWithAddress> cachedNodes = const [], int minEndpoints = 2, Duration maxLatency = const Duration(milliseconds: 800)}) Future<UTXOTxInfo>
Fetches UTXO Transactions for a given ePubKey if purpose is not provied the returned nodes cant be used to derive the master node (used in Proof of Payment)
findOurOwnCoins(List<ElectrumOutput> outputs, Iterable<NodeWithAddress> nodes, Iterable<AddressType> addressTypes, UTXONetworkType type) List<ElectrumOutput>
findUnusedAddress({required Iterable<String> addresses, required Iterable<UTXOTransaction> txs}) String
getETHAddressFromMnemonic({required String mnemonic}) String
getFunctionSignature(String function_selector) Uint8List
getNetworkFees({required UTXONetworkType network, double multiplier = 1.0}) Future<UtxoNetworkFees>
getSpendableOutputs({required List<UTXOTransaction> txList}) List<ElectrumOutput>
Returns a map of UTXOs which belong to us and are unspent and their corresponding transactions
getTokenInfo({required String contractAddress, required EvmRpcInterface rpc}) Future<TokenInfo?>
getTronCredentials({required Uint8List seed}) → (Uint8List, Uint8List)
hexlifyByte(int value) String
@param {int} value
namehash(String name) Uint8List
nomoIdDerivationPath(int hostId) List<int>
padUint8ListTo32(Uint8List data) Uint8List
privateKeyToPublic(BigInt privateKey) Uint8List
proofOfPayment({required String txid, required String nonce, required List<NodeWithAddress> nodes, required Uint8List seed, required UTXONetworkType networkType}) Future<POPResult>
Proof of Payment using BIP120: https://bips.xyz/120
pubKeytoChecksumETHAddress(Uint8List seed) String
publicKeyToAddress(Uint8List publicKey) Uint8List
rebroadcastTransaction({required String hash, required String serializedTx, required UTXONetworkType type, Duration delay = const Duration(seconds: 5)}) Future<bool>
For a given hash and serializedTx we check if the transaction is already in the mempool If not we rebroadcast the transaction until at least half of the nodes have the transaction
recoverEthMessageSigner({required String message, required String signature}) String
recoverPubKey({required String message, required String sig, required String coin, bool? uncompressed}) String
recoverPublicKey(Uint8List payload, Signature signature, {bool hasSignatureYParity = false}) Uint8List
rlpEncode(dynamic object) String
@param {dynamic} object
searchForTransactions({required BIP32 masterNode, required int chainIndex, required Iterable<AddressType> addressTypes, required HDWalletPurpose? walletPurpose, required UTXONetworkType networkType, required List<(String, int)> endpoints, required List<NodeWithAddress> cachedNodes, required IsolateManager isolateManager, int emptyLimit = kEmptyLimit}) Future<(Set<ElectrumTransactionInfo>, List<NodeWithAddress>)>
searchTransactionsForWalletType({required BipNode masterNode, required HDWalletPurpose? purpose, required Iterable<AddressType> addressTypes, required UTXONetworkType networkType, required List<(String, int)> endpoints, required List<NodeWithAddress> cachedNodes, required IsolateManager isolateManager}) Future<(Set<ElectrumTransactionInfo>, Set<NodeWithAddress>)>
sendTRX({required String from, required String to, required Amount amount, required Uint8List seed}) Future<String>
shiftLeftBigInt(num num1, int decimalPlaces) BigInt
shiftRightBigInt(BigInt num1, int decimalPlaces) double
signEvmMessage({required String message, required Uint8List seed}) String
signEvmTransaction({required String messageHex, required Uint8List seed}) → (RawEvmTransaction, Signature)
signInput({required BIP32 bip32, required Uint8List sigHash}) Uint8List
signInputs({required Map<ElectrumOutput, Input> inputs, required HDWalletPath walletPath, required UTXONetworkType networkType, required RawTransaction tx, required Uint8List seed}) List<Input>
signTransaction({required Transaction_raw rawTx, required Uint8List seed}) → Transaction
toChecksumAddress(String address) String
toGwei(String wei) BigInt
toSatoshiValue(num val) int
uint8ListFromList(List<int> data) Uint8List
unarrayifyInteger(Uint8List data, int offset, int length) int
@param {Uint8List} data @param {int} offset @param {int} length
uncompressedPublicKeyToAddress(Uint8List publicKey, int prefix) String
unsignedIntToBytes(BigInt number) Uint8List
validateAddress({required String address, required CoinEntity token}) AddressError?
Returns null if the address is valid, otherwise returns an AddressError
validateAddressAnyChain({required String address}) → (AddressError?, UTXONetworkType?)
validateEVMAddress({required String address}) AddressError?
validateTronAddress({required String address}) AddressError?
validateUTXOAddress({required String address, required CoinEntity? token}) → (AddressError?, UTXONetworkType?)

Typedefs

ABIFunction = ({String address, Uint8List selector})
AccessListItem = ({String address, List<String> storageKeys})
BipNode = BIP32
DummyTxInfo = ({List<ElectrumOutput> chosenUTXOs, RawTransaction dummyRawTx})
ElectrumXResult = (Set<ElectrumTransactionInfo>?, ElectrumXClient)
Json = Map<String, dynamic>
JsonList = List
JsonListNested = List<Json>
SearchTransactionResult = (Set<ElectrumTransactionInfo>, Set<NodeWithAddress>)
TronBlockInfo = ({String blockId, int blockNumber})
UTXOTxInfo = (Set<UTXOTransaction>, Iterable<NodeWithAddress>)
Txs; Receive Addresses; Change Addresses

Exceptions / Errors

FunctionDecodingException
FunctionSelectorException
HttpError
RateLimitingException
RPCError
Exception thrown when an the server returns an error code to an rpc request.