ScotApiClient class

Constructors

ScotApiClient({Client? httpClient, int? maxConnections})

Properties

hashCode int
The hash code for this object.
no setterinherited
httpClient → Client?
final
maxConnections int?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getAccount(String accountName) Future<Map<String, Account>>
Returns a map of tokens to the account with the given name If account not found, returns an empty Map
getAccountForToken(String accountName, {required String token}) Future<Account>
Returns the token for the account with the given name. If account not found, returns an Account with default fields (like Account.empty, except the name and symbol fields are set). If token not found, throws an Exception
getConfig(String token) Future<TokenConfig>
getDiscussionsBy(DiscussionType discussionType, {required String token, required String tag, int? limit}) Future<List<Discussion>>
getFeed({required String tag, required String token, int? limit}) Future<List<PostInfo>>
getPostInfo({required String account, required String permlink, String? token}) Future<Map<String, PostInfo>>
Shows information about a post Returns a map of each token to its associated PostInfo.
getTokenInfo(String token) Future<TokenInfo>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited