Skip to content

plugins.aea-ledger-solana.aea_ledger_solana.solana_api

This module contains the Solana API Client implementation for the solana ledger.

SolanaApiClient Objects

@dataclass
class SolanaApiClient(ApiClient)

Class to interact with the Solana ledger APIs.

__init__

def __init__(*args, **kwargs)

Instantiate the client.

transfer

def transfer(*args, **kwargs)

Transfer tokens.

get_create_account_instructions

def get_create_account_instructions(sender_address,
                                    destination_address,
                                    lamports: int = 100000,
                                    space: int = 1)

Create a new account.

get_transfer_tx

def get_transfer_tx(from_account, to_account, amount)

Create a transfer tx.

get_account_state

def get_account_state(account_address: str)

Get account state.