Skip to main content

Interfaces

CreateAccountOptions

Defined in: client/solana/solana.types.ts:59 Options for creating a Solana account.

Properties

accountPolicy?
Defined in: client/solana/solana.types.ts:63 The policy ID to apply to the account.
idempotencyKey?
Defined in: client/solana/solana.types.ts:65 The idempotency key.
name?
Defined in: client/solana/solana.types.ts:61 The name of the account.

ExportAccountOptions

Defined in: client/solana/solana.types.ts:71 Options for exporting a Solana account.

Properties

address?
Defined in: client/solana/solana.types.ts:73 The address of the account.
idempotencyKey?
Defined in: client/solana/solana.types.ts:77 The idempotency key.
name?
Defined in: client/solana/solana.types.ts:75 The name of the account.

GetAccountOptions

Defined in: client/solana/solana.types.ts:83 Options for getting a Solana account.

Properties

address?
Defined in: client/solana/solana.types.ts:85 The address of the account.
name?
Defined in: client/solana/solana.types.ts:87 The name of the account.

GetOrCreateAccountOptions

Defined in: client/solana/solana.types.ts:93 Options for getting a Solana account.

Properties

name
Defined in: client/solana/solana.types.ts:95 The name of the account.

ImportAccountOptions

Defined in: client/solana/solana.types.ts:171 Options for importing a Solana account.

Properties

encryptionPublicKey?
Defined in: client/solana/solana.types.ts:173 The public RSA key used to encrypt the private key when importing a Solana account.
idempotencyKey?
Defined in: client/solana/solana.types.ts:177 The idempotency key.
name?
Defined in: client/solana/solana.types.ts:175 The name of the account.
privateKey
Defined in: client/solana/solana.types.ts:179 The private key of the account - can be a base58 encoded string or raw bytes.

ListAccountsOptions

Defined in: client/solana/solana.types.ts:113 Options for listing Solana accounts.

Properties

pageSize?
Defined in: client/solana/solana.types.ts:115 The page size.
pageToken?
Defined in: client/solana/solana.types.ts:117 The page token.

ListAccountsResult

Defined in: client/solana/solana.types.ts:123 The result of listing Solana accounts.

Properties

accounts
Defined in: client/solana/solana.types.ts:125 The accounts.
fund()
Funds a Solana account with the specified token amount.
Parameters
options
Omit<SolanaFundOptions, "address"> The options for the fund operation.
Returns
Promise<FundOperationResult> A promise that resolves to the fund operation result containing the transfer details.
Example
quoteFund()
Gets a quote to fund a Solana account.
Parameters
options
Omit<SolanaQuoteFundOptions, "address"> The options for the quote fund.
Returns
Promise<SolanaQuote> A promise that resolves to a Quote object containing details about the funding operation.
Example
requestFaucet()
Requests funds from a Solana faucet.
Parameters
options
Omit<RequestFaucetOptions, "address"> Parameters for requesting funds from the Solana faucet.
Returns
Promise<SignatureResult> A promise that resolves to the transaction hash.
Example
sendTransaction()
Sends a transaction.
Parameters
options
Omit<SendTransactionOptions, "address"> Parameters for sending the transaction.
Returns
Promise<SendTransactionResult> A promise that resolves to the transaction signature.
Example
signMessage()
Signs a message.
Parameters
options
Omit<SignMessageOptions, "address"> Parameters for signing the message.
Returns
Promise<SignatureResult> A promise that resolves to the signature.
Example
signTransaction()
Signs a transaction.
Parameters
options
Omit<SignTransactionOptions, "address"> Parameters for signing the transaction.
Returns
Promise<SignTransactionResult> A promise that resolves to the signature.
Example
transfer()
Transfers SOL or SPL tokens between accounts
Parameters
options
Omit<TransferOptions, "from"> Parameters for the transfer.
Returns
Promise<SignatureResult> A promise that resolves to the transaction signature, which can be used to wait for the transaction result.
Example
waitForFundOperationReceipt()
Waits for a fund operation to complete and returns the transfer receipt.
Parameters
options
WaitForFundOperationOptions The options for the wait for fund operation.
Returns
Promise<WaitForFundOperationResult> A promise that resolves to the completed transfer receipt containing details about the funding operation.
Example
nextPageToken?
Defined in: client/solana/solana.types.ts:129 The token for the next page of accounts, if any.

ListTokenBalancesOptions

Defined in: client/solana/solana.types.ts:185 Options for listing Solana token balances.

Properties

address
Defined in: client/solana/solana.types.ts:187 The address of the account.
network?
Defined in: client/solana/solana.types.ts:189 The network to list token balances for.
pageSize?
Defined in: client/solana/solana.types.ts:191 The page size.
pageToken?
Defined in: client/solana/solana.types.ts:193 The page token.

ListTokenBalancesResult

Defined in: client/solana/solana.types.ts:245 The result of listing Solana token balances.

Properties

balances
Defined in: client/solana/solana.types.ts:247 The token balances.
nextPageToken?
Defined in: client/solana/solana.types.ts:252 The next page token to paginate through the token balances. If undefined, there are no more token balances to paginate through.

RequestFaucetOptions

Defined in: client/solana/solana.types.ts:135 Options for requesting funds from a Solana faucet.

Properties

address
Defined in: client/solana/solana.types.ts:137 The address of the account.
idempotencyKey?
Defined in: client/solana/solana.types.ts:141 The idempotency key.
token
Defined in: client/solana/solana.types.ts:139 The token to request funds for.

SendTransactionOptions

Defined in: client/solana/solana.types.ts:199 Options for sending a Solana transaction.

Properties

idempotencyKey?
Defined in: client/solana/solana.types.ts:205 The idempotency key.
network
Defined in: client/solana/solana.types.ts:201 The network to send the transaction to.
transaction
Defined in: client/solana/solana.types.ts:203 The base64 encoded transaction to send.

SignatureResult

Defined in: client/solana/solana.types.ts:51 A Solana signature result.

Properties

signature
Defined in: client/solana/solana.types.ts:53 The signature.

SignMessageOptions

Defined in: client/solana/solana.types.ts:147 Options for signing a Solana message.

Properties

address
Defined in: client/solana/solana.types.ts:149 The address of the account.
idempotencyKey?
Defined in: client/solana/solana.types.ts:153 The idempotency key.
message
Defined in: client/solana/solana.types.ts:151 The message to sign.

SignTransactionOptions

Defined in: client/solana/solana.types.ts:159 Options for signing a Solana transaction.

Properties

address
Defined in: client/solana/solana.types.ts:161 The address of the account.
idempotencyKey?
Defined in: client/solana/solana.types.ts:165 The idempotency key.
transaction
Defined in: client/solana/solana.types.ts:163 The base64 encoded transaction to sign.

SolanaToken

Defined in: client/solana/solana.types.ts:223

Properties

mintAddress
Defined in: client/solana/solana.types.ts:225 The token address.
name?
Defined in: client/solana/solana.types.ts:227 The token name.
symbol?
Defined in: client/solana/solana.types.ts:229 The token symbol.

SolanaTokenAmount

Defined in: client/solana/solana.types.ts:216

Properties

amount
Defined in: client/solana/solana.types.ts:218 The amount of the token.
decimals
Defined in: client/solana/solana.types.ts:220 The number of decimals in the token.

SolanaTokenBalance

Defined in: client/solana/solana.types.ts:235 A Solana token balance.

Properties

amount
Defined in: client/solana/solana.types.ts:237 The amount of the token.
token
Defined in: client/solana/solana.types.ts:239 The token.

TransactionResult

Defined in: client/solana/solana.types.ts:211 The result of sending a Solana transaction.

Properties

signature
Defined in: client/solana/solana.types.ts:213 The signature of the transaction base58 encoded.

UpdateSolanaAccountOptions

Defined in: client/solana/solana.types.ts:101 Options for creating a SOL server account.

Properties

address
Defined in: client/solana/solana.types.ts:103 The address of the account.
idempotencyKey?
Defined in: client/solana/solana.types.ts:107 The idempotency key.
update
Defined in: client/solana/solana.types.ts:105 The updates to apply to the account

Type Aliases

SolanaClientInterface

Defined in: client/solana/solana.types.ts:17 The SolanaClient type, where all OpenApiSolanaMethods methods are wrapped.

Type declaration

createAccount()
Parameters
options
CreateAccountOptions
Returns
Promise<Account>
exportAccount()
Parameters
options
ExportAccountOptions
Returns
Promise<string>
getAccount()
Parameters
options
GetAccountOptions
Returns
Promise<Account>
getOrCreateAccount()
Parameters
options
GetOrCreateAccountOptions
Returns
Promise<Account>
importAccount()
Parameters
options
ImportAccountOptions
Returns
Promise<SolanaAccount>
listAccounts()
Parameters
options
ListAccountsOptions
Returns
Promise<ListAccountsResult>
listTokenBalances()
Parameters
options
ListTokenBalancesOptions
Returns
Promise<ListTokenBalancesResult>
requestFaucet()
Parameters
options
RequestFaucetOptions
Returns
Promise<SignatureResult>
sendTransaction()
Parameters
options
SendSolanaTransactionBody
Returns
Promise<SignatureResult>
signMessage()
Parameters
options
SignMessageOptions
Returns
Promise<SignatureResult>
signTransaction()
Parameters
options
SignTransactionOptions
Returns
Promise<SignatureResult>
updateAccount()
Parameters
options
UpdateSolanaAccountOptions
Returns
Promise<Account>