amaxdart library

Support for EOS API lib in Dart

More dartdocs go here.

Classes

Abi
Structured format for abis
AbiAction
AbiErrorMessages
AbiExtensions
AbiResp
AbiRicardianClauses
AbiStruct
AbiStructField
AbiTable
AbiType
AbiVariants
Account
Represents AMAX account information
AccountNames
Action
ActionArgs
ActionBlock
ActionReceipt
Actions
ActionWithReceipt
AMAXClient
AMAXClient calls APIs against given AMAX nodes
AuthKey
Authorization
Block
BlockHeaderState
BlockRootMerkle
Contract
Field
A field in an abi */
Holding
Structure for the JSON string format e.g. '1.0000 AMAX', it splits that by 'amount' and 'currency'
IKey
Public key, private key, or signature in binary form
Limit
NodeInfo
Permission
Producer
PushTransactionArgs
RefundRequest
RequiredAuth
RequiredKeys
Schedule
SelfDelegatedBandwidth
SerialBuffer
Serialize and deserialize data */
SerializerOptions
Options for serialize() and deserialize() */
SerializerState
State for serialize() and deserialize() */
Symbol
Structural representation of a symbol */
TotalResources
Transaction
TransactionBlock
TransactionCommitted
TransactionProcessed
TransactionReceipt
TransactionWithReceipt
Type
VoterInfo

Enums

KeyType
Key types this library supports */

Properties

base58Chars String
@module Numeric
getter/setter pair
base58Map List<int>
final
base64Chars String
getter/setter pair
base64Map List<int>
final
privateKeyDataSize int
Private key data size, excluding type field
getter/setter pair
publicKeyDataSize int
Public key data size, excluding type field
getter/setter pair
signatureDataSize int
Signature data size, excluding type field
getter/setter pair

Functions

arrayToHex(Uint8List data) String
Convert binary data to hex */
base58ToBinary(int size, String s) Uint8List
Convert an unsigned base-58 number in s to a bignum @param size bignum size (bytes)
base64ToBinary(String s) Uint8List
Convert an unsigned base-64 number in s to a bignum
binaryToBase58(Uint8List bignum, {dynamic minDigits = 1}) String
Convert bignum to a base-58 number @param minDigits 0-pad result to this many digits
binaryToDecimal(Uint8List bignum, {dynamic minDigits = 1}) String
Convert bignum to an unsigned decimal number @param minDigits 0-pad result to this many digits
blockTimestampToDate(int slot) String
Convert block_timestamp_type (half-seconds since a different epoch) to to date in ISO format */
checkDateParse(String date) DateTime
checkRange(int orig, int converted) int
convertLegacyPublicKey(String s) String
If a key is in the legacy format (AM prefix), then convert it to the new format (PUB_K1_). Leaves other formats untouched
convertLegacyPublicKeys(List<String> keys) List<String>
If a key is in the legacy format (AM prefix), then convert it to the new format (PUB_K1_). Leaves other formats untouched
create_base58_map() List<int>
create_base64_map() List<int>
createInitialTypes() Map<String, Type>
Create the set of types built-in to the abi format */
createType({String name = '<missing name>', String aliasOfName = "", Type? arrayOf, Type? optionalOf, void serialize(Type self, SerialBuffer buffer, dynamic data, {required bool allowExtensions, SerializerState? state})?, dynamic deserialize(Type self, SerialBuffer buffer, {required bool allowExtensions, SerializerState? state})?, String baseName = "", List<Field> fields = const [], Type? extensionOf}) Type
dateToBlockTimestamp(String date) int
Convert date in ISO format to block_timestamp_type (half-seconds since a different epoch) */
dateToTimePoint(String date) int
Convert date in ISO format to time_point (miliseconds since epoch) */
dateToTimePointSec(String date) int
Convert date in ISO format to time_point_sec (seconds since epoch) */
decimalToBinary(int size, String s) Uint8List
Convert an unsigned decimal number in s to a bignum @param size bignum size (bytes)
deserializeArray(Type self, SerialBuffer buffer, {SerializerState? state, dynamic allowExtensions = true}) → dynamic
deserializeExtension(Type self, SerialBuffer buffer, {SerializerState? state, dynamic allowExtensions = true}) → dynamic
deserializeOptional(Type self, SerialBuffer buffer, {SerializerState? state, dynamic allowExtensions = true}) → dynamic
deserializeStruct(Type self, SerialBuffer buffer, {SerializerState? state, dynamic allowExtensions = true}) Object
deserializeVariant(Type self, SerialBuffer buffer, {SerializerState? state, dynamic allowExtensions = true}) → dynamic
digestSuffixRipemd160(Uint8List data, String suffix) Uint8List
getType(Map<String, Type> types, String name) Type
Get type from types */
getTypesFromAbi(Map<String, Type> initialTypes, Abi abi) Map<String, Type>
Get types from abi @param initialTypes Set of types to build on. In most cases, it's best to fill this from a fresh call to getTypesFromAbi().
hexToUint8List(String hex) Uint8List
Convert hex to binary data */
isNegative(Uint8List bignum) bool
Is bignum a negative number?
keyToString(IKey key, String suffix, String prefix) String
negate(Uint8List bignum) → void
Negate bignum
privateKeyToString(IKey key) String
Convert key to string (base-58) form */
publicKeyToString(IKey key) → dynamic
Convert key to string (base-58) form
serializeArray(Type self, SerialBuffer buffer, dynamic data, {SerializerState? state, dynamic allowExtensions = true}) → dynamic
serializeExtension(Type self, SerialBuffer buffer, dynamic data, {SerializerState? state, dynamic allowExtensions = true}) → dynamic
serializeOptional(Type self, SerialBuffer buffer, dynamic data, {SerializerState? state, dynamic allowExtensions = true}) → dynamic
serializeStruct(Type self, SerialBuffer buffer, dynamic data, {SerializerState? state, dynamic allowExtensions = true}) → void
serializeVariant(Type self, SerialBuffer buffer, dynamic data, {SerializerState? state, dynamic allowExtensions = true}) → dynamic
signatureToString(IKey signature) String
Convert signature to string (base-58) form */
signedBinaryToDecimal(Uint8List bignum, {int minDigits = 1}) String
Convert bignum to a signed decimal number @param minDigits 0-pad result to this many digits
signedDecimalToBinary(int size, String s) Uint8List
Convert a signed decimal number in s to a bignum @param size bignum size (bytes)
stringToHex(String str) List<int>
stringToKey(String s, KeyType type, int size, String suffix) IKey
stringToPrivateKey(String s) IKey
Convert key in s to binary form
stringToPublicKey(String s) IKey
Convert key in s to binary form
stringToSignature(String s) IKey
Convert key in s to binary form */
stringToSymbol(String s) Symbol
Convert string to Symbol. format: precision,NAME. */
supportedAbiVersion(String version) bool
Is this a supported ABI version? */
symbolToString(Symbol s) Future<String>
Convert Symbol to string. format: precision,NAME. */
timePointSecToDate(int sec) String
Convert time_point_sec (seconds since epoch) to to date in ISO format */
timePointToDate(int us) String
Convert time_point (miliseconds since epoch) to date in ISO format */