toSolanaSigner

Creates a new instance of SolanaSigner using the provided inner value. This requires the signer to be authenticated first

Import

1import { BaseAlchemySigner } from "@account-kit/signer";

Usage

1import { AlchemyWebSigner } from "@account-kit/signer";
2
3const signer = new AlchemyWebSigner({
4 client: {
5 connection: {
6 rpcUrl: "/api/rpc",
7 },
8 iframeConfig: {
9 iframeContainerId: "alchemy-signer-iframe-container",
10 },
11 },
12});
13
14const solanaSigner = signer.toSolanaSigner();

Returns

SolanaSigner A new instance of SolanaSigner