A complete course for learning Solana, including creating and transferring tokens, making NFTs, on-chain app development, and more.
Mozilla Public License 2.0
395
stars
134
forks
source link
the client-side script in "local-setup chapter" of Intermediate Solana Program Development need to be adjusted #303
Closed
yjshi2015 closed 2 months ago
The article mentioned that
program_id
needs to be modified, and the following may also need to be adjusted:1. cluster URL
let connection = new web3.Connection(web3.clusterApiUrl("devnet"))
->const connection = new web3.Connection('http://localhost:8899')
2. Transaction signature URL
console.log(
Transaction: https://explorer.solana.com/tx/${transactionSignature}?cluster=devnet
) To console.log(Transaction: https://explorer.solana.com/tx/$ {transactionSignature}?cluster=custom
)Note:the transactionSignature url will be invalid soon, because the localhost node loads a smaller snapshot of historical data.