@turnkey/wallet-stamper
package provides a flexible mechanism for using your Solana or EVM wallet to stamp and approve activity requests for Turnkey’s API. This stamping process leverages your wallet’s signature key to authenticate requests securely.
@turnkey/wallet-stamper
client.
WalletStamper
class implements the TStamper
interface used by the TurnkeyClient in the @turnkey/http
package. It encapsulates the logic necessary to sign activity requests using your wallet and generate the appropriate HTTP headers for authentication.
constructor(wallet: WalletInterface): TStamper
solana
or evm
.SolanaWalletInterface
EvmWalletInterface
WalletInterface
stamp: (input: string) => Promise<TStamp>
TStamp
TStamper
WalletStamper
with the TurnkeyClient
to make a request to Turnkey’s /public/v1/query/whoami
endpoint:
WalletStamper
class provides a seamless integration with Turnkey’s API, enabling you to leverage your existing wallet for secure, authenticated requests. By following this guide, you can quickly set up and start using WalletStamper
in your projects.