Module: Solana::Ruby::Kit::Rpc::Api

Defined in:
lib/solana/ruby/kit/rpc/api/get_slot.rb,
lib/solana/ruby/kit/rpc/api/get_balance.rb,
lib/solana/ruby/kit/rpc/api/get_epoch_info.rb,
lib/solana/ruby/kit/rpc/api/get_transaction.rb,
lib/solana/ruby/kit/rpc/api/request_airdrop.rb,
lib/solana/ruby/kit/rpc/api/get_account_info.rb,
lib/solana/ruby/kit/rpc/api/get_block_height.rb,
lib/solana/ruby/kit/rpc/api/send_transaction.rb,
lib/solana/ruby/kit/rpc/api/get_vote_accounts.rb,
lib/solana/ruby/kit/rpc/api/is_blockhash_valid.rb,
lib/solana/ruby/kit/rpc/api/get_latest_blockhash.rb,
lib/solana/ruby/kit/rpc/api/get_program_accounts.rb,
lib/solana/ruby/kit/rpc/api/simulate_transaction.rb,
lib/solana/ruby/kit/rpc/api/get_multiple_accounts.rb,
lib/solana/ruby/kit/rpc/api/get_signature_statuses.rb,
lib/solana/ruby/kit/rpc/api/get_token_account_balance.rb,
lib/solana/ruby/kit/rpc/api/get_token_accounts_by_owner.rb,
lib/solana/ruby/kit/rpc/api/get_minimum_balance_for_rent_exemption.rb

Defined Under Namespace

Modules: GetAccountInfo, GetBalance, GetBlockHeight, GetEpochInfo, GetLatestBlockhash, GetMinimumBalanceForRentExemption, GetMultipleAccounts, GetProgramAccounts, GetSignatureStatuses, GetSlot, GetTokenAccountBalance, GetTokenAccountsByOwner, GetTransaction, GetVoteAccounts, IsBlockhashValid, RequestAirdrop, SendTransaction, SimulateTransaction Classes: LatestBlockhash, SignatureStatus

Constant Summary collapse

EpochInfo =

Struct returned by get_epoch_info.

T.let(
  Struct.new(
    :absolute_slot,       # Integer — current slot
    :block_height,        # Integer
    :epoch,               # Integer — current epoch
    :slot_index,          # Integer — slot within current epoch
    :slots_in_epoch,      # Integer — total slots in epoch
    :transaction_count,   # Integer | nil
    keyword_init: true
  ),
  T.untyped
)
VoteAccountInfo =

Vote account info struct.

T.let(
  Struct.new(
    :vote_pubkey,
    :node_pubkey,
    :activated_stake,
    :epoch_vote_account,
    :commission,
    :last_vote,
    :epoch_credits,
    :root_slot,
    keyword_init: true
  ),
  T.untyped
)