
Security News
GPT-6 Astra Attempts Supply Chain Attacks Against Open Source Maintainers in Testing
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.
@axvn-vn/kit-plugin-signer
Advanced tools
This package offers plugins that set up the payer and identity signers on your Kit clients. Each plugin comes in three variants so you can set only the payer, only the identity, or both at once.
pnpm install @solana/kit-plugin-signer
Kit clients can hold two distinct signer roles:
payer — the signer responsible for paying transaction fees and storage costs (i.e. the minimum balance required to keep newly created accounts alive based on their size).identity — the signer representing the wallet that owns things in the application, such as the authority over accounts, tokens, or other on-chain assets.In many cases both roles are filled by the same keypair. Every plugin in this package therefore comes in three variants:
| Variant | Sets |
|---|---|
signer* | Both payer and identity (same signer) |
payer* | Only payer |
identity* | Only identity |
For instance, signer(mySigner) is a shorthand for using both payer(mySigner) and identity(mySigner).
signer / payer / identity pluginsThese plugins accept an existing TransactionSigner and install it on the client.
import { createClient } from '@solana/kit';
import { signer } from '@solana/kit-plugin-signer';
const client = createClient().use(signer(mySigner));
Use payer(mySigner) or identity(mySigner) to set only one role.
generatedSigner / generatedPayer / generatedIdentity pluginsThese asynchronous plugins generate a new random KeyPairSigner and install it on the client.
import { createClient } from '@solana/kit';
import { generatedSigner } from '@solana/kit-plugin-signer';
const client = await createClient().use(generatedSigner());
Use generatedPayer() or generatedIdentity() to generate a signer for only one role.
generatedSignerWithSol / generatedPayerWithSol / generatedIdentityWithSol pluginsThese asynchronous plugins generate a new random KeyPairSigner, airdrop some SOL to it, and install it on the client. They require an airdrop function to already be available on the client (e.g. via rpcAirdrop or litesvmAirdrop).
import { createClient, lamports } from '@solana/kit';
import { rpcAirdrop, solanaRpcConnection } from '@solana/kit-plugin-rpc';
import { generatedSignerWithSol } from '@solana/kit-plugin-signer';
const client = await createClient()
.use(solanaRpcConnection({ rpcUrl: 'http://127.0.0.1:8899' }))
.use(rpcAirdrop())
.use(generatedSignerWithSol(lamports(10_000_000_000n)));
Use generatedPayerWithSol(amount) or generatedIdentityWithSol(amount) to target only one role.
airdropSigner / airdropPayer / airdropIdentity pluginsThese plugins airdrop SOL to a signer that is already installed on the client. They are particularly useful when the airdrop function is provided by a plugin that requires a signer to already be installed on the client. For instance, solanaLocalRpc bundles an airdrop function but requires a payer to be set first. In that case, you can generate the signer first, then install the RPC plugin, and then use airdropSigner to fund the signer after the fact.
import { createClient, lamports } from '@solana/kit';
import { solanaLocalRpc } from '@solana/kit-plugin-rpc';
import { generatedSigner, airdropSigner } from '@solana/kit-plugin-signer';
const client = await createClient()
.use(generatedSigner())
.use(solanaLocalRpc())
.use(airdropSigner(lamports(1_000_000_000n)));
Use airdropPayer(amount) or airdropIdentity(amount) to target only one role. Note that airdropSigner(amount) will throw if the payer and identity on the client are not the same signer.
signerFromFile / payerFromFile / identityFromFile pluginsThese plugins load a KeyPairSigner from a local JSON keypair file and install it on the client. Node.js only — other environments will throw an error.
import { createClient } from '@solana/kit';
import { signerFromFile } from '@solana/kit-plugin-signer';
const client = await createClient().use(signerFromFile('~/.config/solana/id.json'));
Use payerFromFile(path) or identityFromFile(path) to load a signer for only one role.
FAQs
Signer helpers for Kit clients
We found that @axvn-vn/kit-plugin-signer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.

Product
Socket can now send alerts and supply chain attack notifications to Microsoft Teams, with filters that route the right updates to each channel.

Security News
pnpm 12 rewrites the package manager in Rust, cutting install times by up to 90% while preserving pnpm 11 workflows and lockfiles.