Skip to main content
Defined in: actions/solana/types.ts:19

Properties

requestFaucet()

Defined in: actions/solana/types.ts:40 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()

Defined in: actions/solana/types.ts:203 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()

Defined in: actions/solana/types.ts:63 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()

Defined in: actions/solana/types.ts:123 Signs a transaction.

Parameters

options
Omit<SignTransactionOptions, "address"> Parameters for signing the transaction.

Returns

Promise<SignTransactionResult> A promise that resolves to the signature.

Example


signX402Payment()

Defined in: actions/solana/types.ts:140 Signs an x402 payment payload for direct use with any transport.

Parameters

paymentRequired
SignX402PaymentOptions["paymentRequired"] The payment requirements returned by a resource server.
acceptedIndex
number Index into paymentRequired.accepts.

Returns

Promise<PaymentPayload> The signed x402 payment payload.

Example


transfer()

Defined in: actions/solana/types.ts:230 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