SolanaClient
CreateAccountOptions
= {}
Parameters for creating the Solana account.
Promise
<{
fund
: (options
: Omit
<SolanaFundOptions
, "address"
>) => Promise
<FundOperationResult
>;
quoteFund
: (options
: Omit
<SolanaQuoteFundOptions
, "address"
>) => Promise
<SolanaQuote
>;
requestFaucet
: (options
: Omit
<RequestFaucetOptions
, "address"
>) => Promise
<SignatureResult
>;
sendTransaction
: (options
: Omit
<SendTransactionOptions
, "address"
>) => Promise
<SendTransactionResult
>;
signMessage
: (options
: Omit
<SignMessageOptions
, "address"
>) => Promise
<SignatureResult
>;
signTransaction
: (options
: Omit
<SignTransactionOptions
, "address"
>) => Promise
<SignTransactionResult
>;
transfer
: (options
: Omit
<TransferOptions
, "from"
>) => Promise
<SignatureResult
>;
waitForFundOperationReceipt
: Promise
<WaitForFundOperationResult
>;
}>
A promise that resolves to the newly created account.
ExportAccountOptions
Parameters for exporting the Solana account.
Promise
<string
>
A promise that resolves to the exported account’s full 64-byte private key as a base58 encoded string.
GetAccountOptions
Parameters for getting the Solana account.
Either address
or name
must be provided.
If both are provided, lookup will be done by address
and name
will be ignored.
Promise
<{
fund
: (options
: Omit
<SolanaFundOptions
, "address"
>) => Promise
<FundOperationResult
>;
quoteFund
: (options
: Omit
<SolanaQuoteFundOptions
, "address"
>) => Promise
<SolanaQuote
>;
requestFaucet
: (options
: Omit
<RequestFaucetOptions
, "address"
>) => Promise
<SignatureResult
>;
sendTransaction
: (options
: Omit
<SendTransactionOptions
, "address"
>) => Promise
<SendTransactionResult
>;
signMessage
: (options
: Omit
<SignMessageOptions
, "address"
>) => Promise
<SignatureResult
>;
signTransaction
: (options
: Omit
<SignTransactionOptions
, "address"
>) => Promise
<SignTransactionResult
>;
transfer
: (options
: Omit
<TransferOptions
, "from"
>) => Promise
<SignatureResult
>;
waitForFundOperationReceipt
: Promise
<WaitForFundOperationResult
>;
}>
A promise that resolves to the account.
GetOrCreateAccountOptions
Parameters for getting or creating the Solana account.
Promise
<{
fund
: (options
: Omit
<SolanaFundOptions
, "address"
>) => Promise
<FundOperationResult
>;
quoteFund
: (options
: Omit
<SolanaQuoteFundOptions
, "address"
>) => Promise
<SolanaQuote
>;
requestFaucet
: (options
: Omit
<RequestFaucetOptions
, "address"
>) => Promise
<SignatureResult
>;
sendTransaction
: (options
: Omit
<SendTransactionOptions
, "address"
>) => Promise
<SendTransactionResult
>;
signMessage
: (options
: Omit
<SignMessageOptions
, "address"
>) => Promise
<SignatureResult
>;
signTransaction
: (options
: Omit
<SignTransactionOptions
, "address"
>) => Promise
<SignTransactionResult
>;
transfer
: (options
: Omit
<TransferOptions
, "from"
>) => Promise
<SignatureResult
>;
waitForFundOperationReceipt
: Promise
<WaitForFundOperationResult
>;
}>
A promise that resolves to the account.
ImportAccountOptions
Parameters for importing the Solana account.
Promise
<{
fund
: (options
: Omit
<SolanaFundOptions
, "address"
>) => Promise
<FundOperationResult
>;
quoteFund
: (options
: Omit
<SolanaQuoteFundOptions
, "address"
>) => Promise
<SolanaQuote
>;
requestFaucet
: (options
: Omit
<RequestFaucetOptions
, "address"
>) => Promise
<SignatureResult
>;
sendTransaction
: (options
: Omit
<SendTransactionOptions
, "address"
>) => Promise
<SendTransactionResult
>;
signMessage
: (options
: Omit
<SignMessageOptions
, "address"
>) => Promise
<SignatureResult
>;
signTransaction
: (options
: Omit
<SignTransactionOptions
, "address"
>) => Promise
<SignTransactionResult
>;
transfer
: (options
: Omit
<TransferOptions
, "from"
>) => Promise
<SignatureResult
>;
waitForFundOperationReceipt
: Promise
<WaitForFundOperationResult
>;
}>
A promise that resolves to the imported account.
ListAccountsOptions
= {}
Parameters for listing the Solana accounts.
Promise
<ListAccountsResult
>
A promise that resolves to an array of Solana account instances.
ListTokenBalancesOptions
Parameters for listing the Solana token balances.
Promise
<ListTokenBalancesResult
>
A promise that resolves to an array of Solana token balance instances.
RequestFaucetOptions
Parameters for requesting funds from the Solana faucet.
Promise
<SignatureResult
>
A promise that resolves to the transaction signature.
SendTransactionOptions
Parameters for sending the Solana transaction.
Promise
<SendTransactionResult
>
A promise that resolves to the transaction result.
SignMessageOptions
Parameters for signing the message.
Promise
<SignatureResult
>
A promise that resolves to the signature.
SignTransactionOptions
Parameters for signing the transaction.
Promise
<SignTransactionResult
>
A promise that resolves to the signature.
UpdateSolanaAccountOptions
Optional parameters for creating the account.
Promise
<{
fund
: (options
: Omit
<SolanaFundOptions
, "address"
>) => Promise
<FundOperationResult
>;
quoteFund
: (options
: Omit
<SolanaQuoteFundOptions
, "address"
>) => Promise
<SolanaQuote
>;
requestFaucet
: (options
: Omit
<RequestFaucetOptions
, "address"
>) => Promise
<SignatureResult
>;
sendTransaction
: (options
: Omit
<SendTransactionOptions
, "address"
>) => Promise
<SendTransactionResult
>;
signMessage
: (options
: Omit
<SignMessageOptions
, "address"
>) => Promise
<SignatureResult
>;
signTransaction
: (options
: Omit
<SignTransactionOptions
, "address"
>) => Promise
<SignTransactionResult
>;
transfer
: (options
: Omit
<TransferOptions
, "from"
>) => Promise
<SignatureResult
>;
waitForFundOperationReceipt
: Promise
<WaitForFundOperationResult
>;
}>
A promise that resolves to the updated account.