Skip to content

Commit

Permalink
add ref
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhengYuTay committed Sep 23, 2023
1 parent e3e7ac1 commit 6734fa9
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export const DEVNET_URL =
'https://devnet.helius-rpc.com/?api-key=cdb44f70-0173-4b5d-aa3d-8d128eb8a86c'
"https://devnet.helius-rpc.com/?api-key=cdb44f70-0173-4b5d-aa3d-8d128eb8a86c";
1 change: 1 addition & 0 deletions src/exercises/1-generate-keypairs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@
`Keypair.generate()` is used to generate a random keypair

## Ref
https://solanacookbook.com/references/keypairs-and-wallets.html#how-to-generate-a-new-keypair
https://solana-labs.github.io/solana-web3.js/classes/Keypair.html
3 changes: 2 additions & 1 deletion src/exercises/2-airdropping/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ const Exercise2Airdropping: React.FC<{
setAirdropping(true);
setAirdropped(true);

/** Exercise 2, use the connection object to request an airdrop to your Keypair */
try {
/** Exercise 2, use the connection object to request an airdrop to your Keypair */
const txid = await connection.requestAirdrop(
keypair?.publicKey,
1_000_000_000
);

const result = await connection.confirmTransaction(txid);
/** End of exercise 2 */

Expand Down
2 changes: 2 additions & 0 deletions src/exercises/3-getting-balances/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ To get balance:
`Connection.getBalance(pubkey)` is used to request to get SOL balance of a wallet.

## Ref
https://solanacookbook.com/references/accounts.html#how-to-get-account-balance

https://solana-labs.github.io/solana-web3.js/classes/Connection.html
2 changes: 2 additions & 0 deletions src/exercises/4-reading-realtime-blocks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
`Connection.onSignature(signature, callback)` is used to understand the status of a transaction.

## Ref
https://solanacookbook.com/references/local-development.html#subscribing-to-events

https://solana-labs.github.io/solana-web3.js/classes/Connection.html#onRootChange

https://solana-labs.github.io/solana-web3.js/classes/Connection.html#onSignature
2 changes: 2 additions & 0 deletions src/exercises/5-sending-tokens/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@


## Ref
https://solanacookbook.com/references/basic-transactions.html#how-to-send-sol

https://solana-labs.github.io/solana-web3.js/classes/Connection.html#sendTransaction

https://solana-labs.github.io/solana-web3.js/classes/SystemProgram.html

0 comments on commit 6734fa9

Please sign in to comment.