SolanaRpcApi class
A Calculator.
Constructors
- SolanaRpcApi(String _url, String address)
- constructs
Properties
Methods
-
getAccountInfo(
{String? pubkey}) → Future< RPCResponse< GetAccountInfo> > - get AccountInfo
-
getBalance(
{String? pubkey}) → Future< RPCResponse< GetBalance> > - get Balance
-
getSupply(
) → Future< RPCResponse< GetSupply> > - get Supply
-
getTokenAccountBalance(
String pubkey) → Future< RPCResponse< GetTokenAccountBalance> > - get TokenAccount Balance By Pubkey address
-
getTokenAccountsByOwner(
{String? mint}) → Future< RPCResponse< TokenAccountsByOwner> > -
get TokenAccounts By Owner with
mint
ortoken program
-
getTransaction(
String hash) → Future< RPCResponse< GetTransaction> > -
get Transaction detail by
hash
-
getTransactionCount(
) → Future< RPCResponse< int> > - get Transaction Count
-
getVersion(
) → Future< RPCResponse< GetVersion> > - get Version by rpc node
-
getVoteAccounts(
{String? votePubkey, bool? keepUnstakedDelinquents, int? delinquentSlotDistance}) → Future< RPCResponse< GetVoteAccounts> > - get Vote Accounts
-
minimumLedgerSlot(
) → Future< RPCResponse< int> > - minimum Ledger Slot
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
requestAirdrop(
{required String pubkey, required int amount}) → Future< RPCResponse< String> > - request Airdrop
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited