SolanaSigner
Defined in: account-kit/signer/src/solanaSigner.ts:18
The SolanaSigner class is used to sign transactions and messages for the Solana blockchain. It provides methods to add signatures to transactions and sign messages.
Constructors
Constructor
Defined in: account-kit/signer/src/solanaSigner.ts:27
Constructor for the SolanaSigner class which is a wrapper around the alchemy client, and is more focused on the solana web3
Parameters
Returns
SolanaSigner
Properties
Methods
addSignature()
Defined in: account-kit/signer/src/solanaSigner.ts:41
Adds a signature of the client user to a transaction
Parameters
Returns
Promise
<Transaction
| VersionedTransaction
>
The transaction with the signature added
addSponsorship()
Defined in: account-kit/signer/src/solanaSigner.ts:158
Adds sponsorship to a transaction. Used to have a party like Alchemy pay for the transaction.
Parameters
Returns
Promise
<VersionedTransaction
>
The transaction with sponsorship added
createTransaction()
Creates a transfer transaction. Used for the SolanaCard example.
Param
The instructions to add to the transaction
Param
The connection to use for the transaction
Param
The version of the transaction
Call Signature
Defined in: account-kit/signer/src/solanaSigner.ts:92
Parameters
Returns
Promise
<VersionedTransaction
>
Call Signature
Defined in: account-kit/signer/src/solanaSigner.ts:97
Parameters
Returns
Promise
<Transaction
>
Call Signature
Defined in: account-kit/signer/src/solanaSigner.ts:102
Parameters
Returns
Promise
<VersionedTransaction
>
signMessage()
Defined in: account-kit/signer/src/solanaSigner.ts:73
Signs a message
Parameters
Returns
Promise
<ByteArray
>
The signature of the message