Module: SolanaRuby::HttpMethods::LookupTableMethods
- Defined in:
- lib/solana_ruby/http_methods/lookup_table_methods.rb
Overview
Lookup Table Related HTTP Methods
Instance Method Summary collapse
Instance Method Details
#get_address_lookup_table(pubkey) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/solana_ruby/http_methods/lookup_table_methods.rb', line 7 def get_address_lookup_table(pubkey) response = get_account_info_and_context(pubkey) # Handle the response to ensure the account is a valid Address Lookup Table unless response && response["value"] raise SolanaError.new("Address Lookup Table not found or invalid account data.") end account_data = response["value"]["data"] # Decode the account data decode_lookup_table_data(Base64.decode64(account_data)) # Return the parsed lookup table details end |