• TrustedTrucks Documentation
Dokümantasyon
How to Start a Local ValidatorConnecting to a Solana EnvironmentGetting Test SOLSubscribing to EventsUsing Mainnet Accounts and ProgramsLoad a local json file keypair
How to Create a KeypairHow to Restore a KeypairHow to Verify a KeypairHow to Validate a Public KeyHow to Generate Mnemonics for KeypairsHow to Restore a Keypair from a MnemonicHow to Generate a Vanity AddressHow to Sign and Verify a MessageHow to Connect a Wallet with React
How to Send SOLHow to Send TokensHow to Calculate Transaction CostHow to Add a Memo to a TransactionHow to Add Priority Fees to a TransactionHow to Optimize Compute RequestedOffline Transactions
How to Create an AccountHow to Calculate Account Creation CostHow to Create a PDA's AccountHow to Sign with a PDA's AccountHow to Close an AccountHow to Get Account Balance
How to Transfer SOL in a Solana ProgramHow to get clock in a programHow to change account sizeHow to do Cross Program InvocationHow to create a Program Derived AddressHow to read accounts in a programReading Multiple InstructionsHow to verify accounts in a Solana program
How to Create a TokenHow to Get a Token MintHow to Create a Token AccountHow to Get a Token AccountHow to get a token account's balanceHow to Mint TokensHow to Transfer TokensHow to Burn TokensHow to Close Token AccountsHow to Set Authority on Token Accounts or MintsHow to Delegate Token AccountsHow to Revoke a Token DelegateHow to Use Wrapped SOLHow to Get All Token Accounts by AuthorityHow to create an NFTHow to Fetch the NFT MetadataHow to get the owner of an NFTHow to get all NFTs from a wallet?
Solana CookbookWallets

How to Create a Keypair

Any transaction on the Solana blockchain requires a keypair or wallet. If you are connecting to a wallet, you do not need to worry about the keypair. Otherwise a keypair must be generated for signing transactions.

import { generateKeyPairSigner } from "@solana/web3.js";
const signer = await generateKeyPairSigner();
console.log("address: ", signer.address);

Önceki

Load a local json file keypair

Sonraki

How to Restore a Keypair

Yönetici

© 2025 Solana Vakfı. Tüm hakları saklıdır.
Solana
  • Hibeler
  • Solana'yı kır
  • Medya Kiti
  • Kariyer
  • Sorumluluk Reddi
  • Gizlilik Politikası
Bağlanın
  • Blog
  • Bülten
© 2025 Solana Vakfı. Tüm hakları saklıdır.