FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

solana-program-examples/basics/create-account at main · quicknode/solana-program-examples · GitHub

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Create Account

Create a Solana account.

The account is a system account - owned by the System Program, which means only the System Program can modify its data. In this example, the account simply holds some SOL.

The tests cover two ways to create the account:

  1. Via cross-program invocation (CPI): the client sends a transaction to our deployed program, which in turn calls the System Program.
  2. Directly: the client sends the create-account transaction straight to the System Program.

See cross-program-invocation for more CPI examples.

Links


Back | FazBrowse Home | New Git URL