SoproX
Search…
Getting Started
For a deep look, you might navigate to Usage section.

Quick start

1
npx soprox -n my-app
Copied!
1
cd my-app
Copied!
A template will be generated. In the current template, you can instantly build, deploy, and interact with the programs. However, you need an account with SOL to pay the transaction fee. Fortunately, SoproX can support you to create a payer account.
A new account with 10 will be created in devnet. Do not reuse the example account below to store your SOL in mainnet.
1
npx soprox --payer
Copied!
You will see logs printed out,
1
Connection to cluster established: https://devnet.solana.com { 'solana-core': '1.6.8', 'feature-set': 3458834192 }
2
Current balance of D9QcD94LhSp5FhSgQNRpjL8q9qH1cfgCfbh9R4RhGc3c is 10 SOL
3
A new payer is created. Details:
4
Address: D9QcD94LhSp5FhSgQNRpjL8q9qH1cfgCfbh9R4RhGc3c
5
Public key: b47395094a278fa7f6f5ba63f81da754925ad2c2db54477faea8f2503aaad51b
6
Secret key: 4b900b96d2f11f906edf9d9486194b8d9cfa85df3f520f76a4956fe18ca37b6fb47395094a278fa7f6f5ba63f81da754925ad2c2db54477faea8f2503aaad51b
Copied!
Add the information to soprox.config.js like this.
1
{
2
"nodeUrl": "https://devnet.solana.com",
3
"payer": "4b900b96d2f11f906edf9d9486194b8d9cfa85df3f520f76a4956fe18ca37b6fb47395094a278fa7f6f5ba63f81da754925ad2c2db54477faea8f2503aaad51b"
4
}
Copied!
Next, build your SRP and deploy it,
1
npm run build
2
npm run deploy
3
npm start
Copied!
Your terminal should show something like
1
*** Calling to program: CZyfxNGQs46Si8QGWTsj5KU64HXXyT1TPCgwWUco4LcB
2
*** Payer: 5vHjWRc2hys4XwZkMktg35N8oALt5d1ZXYkwCXXX3JHm
3
Hello data before a change: { times: 0 }
4
Change hello data (txId): 4NVbvBcUPSgRdTiR2SzPqFy6pB4oxsdkcyq7Niijzg8ZdRoYrioYYELFaGvE8MYHVhgzkA8HAhc94oq3xVxZAVNF
5
Hello data after a change: { times: 1 }
Copied!
​
πŸ™Œ
Hooray! You did it well.
Last modified 4mo ago
Copy link