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
- An Object that represents a contract function generated from an ABI Used for Encoding a datafield and after executing decoding the output
- ContractFunctionWithValues
- ContractFunctionWithValuesAndOutputs
-
An Object that represents a contract function generated from an ABI
Has the List
parameters with wich the function was called Has the List outputs with the outputs of said executed function - DecodedRLP
-
DynamicFunctionParamType<
T> - EC8RawTransaction
- Raw Transaction Implementation for EC8
- ElectrumInput
- ElectrumOutput
- ElectrumScriptPubKey
- EmptyNode
- EnsRegistryContract
- EnsResolverContract
- ERC20Contract
- ERC20Entity
- ERC721Entity
- ETHEREUM_NETWORK
- EthereumBip44HDPath
- EtherscanExplorer
- EtherscanTransaction
- EUROCOIN_NETWORK
- EvmCoinEntity
- EvmFeeInformation
- EvmNetworkFees
- EVMNetworkType
- EvmRpcClient
- EvmRpcInterface
- EVMTransaction
- 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
- 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
- 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> - GenericTransaction
- HDWalletPath
- InternalContract
- JsonRPC
- Json RPC Service.
- LITECOIN_NETWORK
- LitecoinBip44HDPath
- MOONBEAM_NETWORK
- NetworkBIP
- NetworkFees
- NetworkType
- NodeWithAddress
- TODO: Make sure this only has the privateKey when used for signing. Else EpubKey should be used.
- NotAvaialableUTXOTransaction
- NotDecodableExternalContractFunction
- 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
-
TransferIntent<
T extends dynamic> - TRON_NETWORK
- TronBip44HDPath
- TronFeeInformation
- TronHTTPRepository
- TronNetworkFees
- TronScanRepository
- TronTransaction
- TupleFunctionParamType
- Tuple
- UniswapV2Factory
- UniswapV2Pair
- UniswapV2Router
- UnknownExternalContractFunction
- UtxoFeeInformation
- UtxoNetworkFees
- UTXONetworkType
- UTXOTransaction
- ZENIQ_NETWORK
- ZENIQ_SMART_NETWORK
- ZeniqScanExplorer
- ZKSYNC_NETWORK
Enums
Mixins
- LocalContractFunctionMixin
- A mixin for ContractFunction and ContractFunctionWithValues Used to get the stateMutability and outputs of the function These are only available in the local contract functions
Extensions
- AmountUtil on int
- AmountUtilBigInt on BigInt
- AmountUtilDouble on double
- AmountUtilNum on num
- BigIntUtil on BigInt
- BIP32Extension on dynamic
- 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
- NumUtil on num
- URLBuilder on String
Constants
- ADDRESS_NOT_SUPPORTED → const String
- arbitrum → const dynamic
- Arbitrum Assets
- ArbitrumNetwork → const ARBITRUM_NETWORK
- arbitrumScanBaseEndpoint → const String
- Arbitrum
- arbitrumTestWallet → const String
- avalanche → const dynamic
- Avalanche Assets
- avalancheAPIEndpoint → const String
- Avalanche
- AvalancheNetwork → const AVALANCHE_NETWORK
- avinocETH → const dynamic
- avinocZSC → const dynamic
- bandWidthPrice → const int
- BaseNetwork → const BASE_NETWORK
- baseScanEndpoint → const String
- Base
- BCH_SIGHASH_INFO → const dynamic
- bchCoin → const dynamic
- binanceSmart → const dynamic
- Binance Chain Assets
- BIP44_PURPOSE → const String
- BIP49_PURPOSE → const String
- BIP84_PURPOSE → const String
- BITCOIN_NETWORK_BIP → const dynamic
- BITCOIN_SIGHASH_INFO → const dynamic
- 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
- bnbScanBaseEndpoint → const String
- EVM
- BTC_DUSTTRESHOLD → const ({int legacy, int segwit})
- btcCoin → const dynamic
- cLFi → const dynamic
- daiToken → const dynamic
- devLtub → const String
- devMtub → const String
- digitalGoldToken → const dynamic
- ec8Coin → const dynamic
- energyPrice → const int
- ensRegistryMainnetContractAddress → const String
- erc20TransferSig → const String
- ethArbitrum → const dynamic
- ethBase → const dynamic
- Base Assets
- ethereumBip44HDPath → const EthereumBip44HDPath
- EthereumNetwork → const ETHEREUM_NETWORK
- EVM Networks
- etherscanBaseEndpoint → const String
- ethNative → const dynamic
- Ethereum Assets
- ethOptimism → const dynamic
- ethzkSync → const dynamic
- ZKSync Assets
- EurocoinNetwork → const EUROCOIN_NETWORK
- EXTERNAL_CHAIN_INDEX → const int
- frax → const dynamic
- helloXpub → const String
- iLoveSafirToken → const dynamic
- INTERNAL_CHAIN_INDEX → const int
- kAddressesUpperLimit → const int
- kEmptyLimit → const int
- LFi → const dynamic
- LITECOIN_NETWORK_BIP → const dynamic
- LITECOIN_NETWORK_BIP_WK_COMPATIBILITY → const dynamic
- Needed for compatibility with old wallets
- litecoinBip44HDPath → const LitecoinBip44HDPath
- LitecoinNetwork → const LITECOIN_NETWORK
- ltcCoin → const dynamic
- mainnetStakingContract → const String
- Staking
- mathToken → const dynamic
- max_cheap_tx_weight → const int
- MAX_PUBKEYS_PER_MULTISIG → const int
- maxReturnFieldSize → const int
- moonbeam → const dynamic
- Moonbeam Assets
- MoonbeamNetwork → const MOONBEAM_NETWORK
- moonbeamScanBaseEndpoint → const String
- Moonbeam
- NS_PURPOSE → const String
- nullAddress → const String
- nullToken → const CoinEntity
- optimism → const dynamic
- Optimism Assets
- OptimismNetwork → const OPTIMISM_NETWORK
- optimismScanEndpoint → const String
- Optimism
- 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 dynamic
- Polygon Assets
- PolygonNetwork → const POLYGON_NETWORK
- polygonScanBaseEndpoint → const String
- protoBufferHeaderSize → const int
- PUBKEY_SCRIPT_HASH_LENGTH_HEX → const String
- publicTestMnemonicHello → const String
- DEV
- regardlessToken → const dynamic
- 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 dynamic
- SIG_HASH_ALL → const int
- smartChainStakingContract → const String
- spoilEVM → const String
- stakingPartnerAddress → const String
- tDroneToken → const dynamic
- testnetStakingContract → const String
- tron → const dynamic
- Tron Assets
- TRON_ADDRESS_PREFIX → const int
- TRON_Network → const TRON_NETWORK
- TRON Networks
- tronBip44HDPath → const TronBip44HDPath
- tronDummyBlock → const dynamic
- tronInitialBlockTimestamp → const int
- tronUSDT → const dynamic
- tupanToken → const dynamic
- usdcToken → const dynamic
- usdtToken → const dynamic
-
UTXO_Network_List
→ const List<
UTXONetworkType> - UTXO Networks
- vooToken → const dynamic
- wbtcToken → const dynamic
- wbtcZKSync → const dynamic
- wkDebugXPUB → const String
- wkDebugXPUBHello → const String
- wrappedETH → const dynamic
- wrappedZeniqSmart → const dynamic
- zeniqBSCToken → const dynamic
- zeniqCoin → const dynamic
- UTXO Assets
- zeniqETHToken → const dynamic
- ZeniqNetwork → const ZENIQ_NETWORK
- zeniqScanEnpoint → const String
- zeniqSmart → const dynamic
- ZSC Assets
- ZeniqSmartNetwork → const ZENIQ_SMART_NETWORK
- zeniqSmartRPCEndpoint → const String
- zenpassContract → const String
- zksyncAPIEndpoint → const String
- ZKSync
- ZKSyncNetwork → const ZKSYNC_NETWORK
- znsRegistryContractAddress → const String
Properties
-
abiList
→ List<
ContractABI> -
final
- contractAbiErc20 → dynamic
-
final
- contractAbiErc721 → dynamic
-
final
- dummySeed → dynamic
-
final
- ensRegistryAbi → dynamic
-
final
- ensResoloverABI → dynamic
-
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 → dynamic
-
final
-
supportedPaths
→ List<
HDWalletPath> -
final
- uniswap_v2_factory_abi → dynamic
-
final
- uniswap_v2_pair_abi → dynamic
-
final
- uniswap_v2_router_abi → dynamic
-
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< futures, {int batchSize = 10}) → Future<T> >List< T> > -
broadcastTransaction(
{required String rawTxHex, required dynamic type}) → Future< String> -
buildDummyTx(
{required dynamic networkType, required dynamic walletPath, required Map inputMap, required List dummyOutputs}) → dynamic -
buildDummyTxFromScratch(
{required dynamic intent, required dynamic networkType, required dynamic walletPath, required Iterable 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 dynamic utxo, required dynamic networkType}) → dynamic -
buildInputs(
Map utxos, dynamic networkType) → (BigInt, Map) -
buildOutput(
String address, BigInt value, dynamic networkType) → dynamic -
buildOutputs(
{required String recipient, required BigInt value, required String? changeAddress, required BigInt changeValue, required dynamic networkType}) → List -
buildRawTransaction(
dynamic contractData, {int feeLimit = 10000000, required dynamic block}) → dynamic -
buildUnsignedTransaction(
{required dynamic intent, required dynamic networkType, required dynamic walletPath, required Iterable txList, required dynamic feePerByte, required Iterable< String> changeAddresses, List? preChosenUTXOs}) → dynamic - 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 dynamic tx, required dynamic feePerByte}) → BigInt -
calculateFeeEC8(
{required dynamic tx}) → BigInt -
calculateTransactionSize(
dynamic 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 txList}) → BigInt -
computeBalanceFromVisualList(
{required Iterable txList}) → BigInt -
computeMissingUTXODetails(
{required Iterable txList, required Iterable nodes, required Iterable addressTypes, required dynamic type, required List< (String, int)> endpoints}) → Future<Iterable> -
constructScriptSig(
{required dynamic walletPurpose, required Uint8List signature, required Uint8List publicKey, Uint8List? redeemScript}) → Uint8List -
createEurocoinMessageHash(
String message) → Uint8List -
createRawTransaction(
{required dynamic data, required Uint8List refBlockBytes, required Uint8List refBlockHash, required int expiration, required int timestamp, int? feeLimit}) → dynamic -
createScriptSignature(
{required dynamic tx, required int i, required dynamic output, required dynamic walletPurpose, required dynamic networkType, required dynamic node}) → Uint8List -
createScriptWitness(
{required dynamic tx, required int i, required dynamic output, required dynamic networkType, required dynamic 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 -
deriveChildNode(
{required dynamic masterNode, required int chainIndex, required int index, required dynamic networkType, required Iterable addressTypes, required dynamic walletPurpose}) → dynamic -
deriveChildNodeFromPath(
{required Uint8List seed, required String childDerivationPath, required dynamic networkType, required dynamic walletPath}) → dynamic -
deriveExtendedPubKey(
{required Uint8List seed, required dynamic walletPurpose, dynamic type}) → String -
deriveMasterNodeFromEpubKey(
String ePubKey) → (dynamic, int) -
deriveMasterNodeFromEpubKeyWithCheck(
{required String ePubKey, required dynamic networkType, required dynamic walletPath}) → dynamic -
deriveMasterNodeFromSeed(
{required Uint8List seed, required dynamic walletPath, dynamic networkType}) → dynamic -
deriveNode(
Uint8List seed, String path) → dynamic -
derivePrivateKeyETH(
Uint8List seed) → Uint8List -
derivePublicKeyETH(
Uint8List seed) → Uint8List -
determineSendDirection(
{required List inputs, required List outputs, required Iterable nodes, required dynamic type, required Iterable addressTypes}) → dynamic -
determineTransactionTarget(
List outputs, dynamic transferMethod, dynamic type, dynamic addressType) → String? -
determineTransactionValue(
List outputs, dynamic transferMethod, Iterable nodes, dynamic type) → (BigInt, BigInt) -
discardRightBigInt(
BigInt num1, int decimalPlaces) → BigInt -
dynToHex(
dynamic value) → dynamic -
ec8Recover(
{required String message, required String sig}) → String -
ec8SignMessage(
String message, dynamic node) → Uint8List -
encodeVarint(
int value) → Uint8List -
estimateFeeForPriority(
{required int blocks, required dynamic network, required dynamic initalClient}) → Future -
extractAllUTXOs(
{required Iterable txList, bool own = true}) → Map - Returns a map of UTXOs which belong to us and are unspent and their corresponding transactions
-
extractChainId(
int v) → int -
extractUTXOs(
{required Iterable txList}) → Map - Returns a map of UTXOs which belong to us and are unspent and their corresponding transactions
-
fetchMissingUTXOTransactions(
{required Set cachedTransactions, required List cachedNodes, required Set allTxs, required Iterable nodes, required dynamic coin, required dynamic networkType, required Iterable addressTypes, required List< (String, int)> endpoints, required Stopwatch watch}) → Future<UTXOTxInfo> -
fetchUTXOTransactions(
{required Iterable walletTypes, required Iterable addressTypes, required dynamic networkType, required Uint8List seed, Set cachedTransactions = const {}, List cachedNodes = const [], int minEndpoints = 2, Duration maxLatency = const Duration(milliseconds: 800)}) → Future< UTXOTxInfo> -
fetchUTXOTransactionsFromEpubKey(
{required Iterable addressTypes, required dynamic networkType, required String ePubKey, dynamic purpose, Set cachedTransactions = const {}, List 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 returnednodes
cant be used to derive the master node (used in Proof of Payment) -
findOurOwnCoins(
List outputs, Iterable nodes, Iterable addressTypes, dynamic type) → List -
findUnusedAddress(
{required Iterable< String> addresses, required Iterable txs}) → String -
getETHAddressFromMnemonic(
{required String mnemonic}) → String -
getNetworkFees(
{required dynamic network, double multiplier = 1.0}) → Future -
getSpendableOutputs(
{required List txList}) → List - Returns a map of UTXOs which belong to us and are unspent and their corresponding transactions
-
getTokenInfo(
{required String contractAddress, required dynamic rpc}) → Future -
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 nodes, required Uint8List seed, required dynamic 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 dynamic type, Duration delay = const Duration(seconds: 5)}) → Future< bool> -
For a given
hash
andserializedTx
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, dynamic signature, {bool hasSignatureYParity = false}) → Uint8List -
rlpEncode(
dynamic object) → String - @param {dynamic} object
-
searchForTransactions(
{required dynamic masterNode, required int chainIndex, required Iterable addressTypes, required dynamic walletPurpose, required dynamic networkType, required List< (String, int)> endpoints, required List cachedNodes, required dynamic isolateManager, int emptyLimit = kEmptyLimit}) → Future<(Set, List)> -
searchTransactionsForWalletType(
{required dynamic masterNode, required dynamic purpose, required Iterable addressTypes, required dynamic networkType, required List< (String, int)> endpoints, required List cachedNodes, required dynamic isolateManager}) → Future<(Set, Set)> -
sendTRX(
{required String from, required String to, required dynamic 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}) → (dynamic, dynamic) -
signInput(
{required dynamic bip32, required Uint8List sigHash}) → Uint8List -
signInputs(
{required Map inputs, required dynamic walletPath, required dynamic networkType, required dynamic tx, required Uint8List seed}) → List -
signTransaction(
{required dynamic rawTx, required Uint8List seed}) → dynamic -
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 dynamic token}) → AddressError? - Returns null if the address is valid, otherwise returns an AddressError
-
validateAddressAnyChain(
{required String address}) → (AddressError?, dynamic) -
validateEVMAddress(
{required String address}) → AddressError? -
validateTronAddress(
{required String address}) → dynamic -
validateUTXOAddress(
{required String address, required dynamic token}) → (AddressError?, dynamic)
Typedefs
- ABIFunction = ({String address, Uint8List selector})
-
AccessListItem
= ({String address, List<
String> storageKeys}) - BipNode = dynamic
- DummyTxInfo = ({List chosenUTXOs, dynamic dummyRawTx})
- ElectrumXResult = (Set?, dynamic)
-
Json
= Map<
String, dynamic> - JsonList = List
-
JsonListNested
= List<
Json> - SearchTransactionResult = (Set, Set)
- TronBlockInfo = ({String blockId, int blockNumber})
- UTXOTxInfo = (Set, Iterable)
- 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.