-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Interacting with smart contract #351
Comments
While the dapp-scaffold repository doesn't appear to have a direct example of smart contract interaction, it's designed as a starting point for building Solana dApps. To interact with a smart contract on Solana, you would typically: 1.Set up a connection to a Solana cluster (mainnet, devnet, or testnet). import { Connection, PublicKey, Transaction, sendAndConfirmTransaction } from '@solana/web3.js'; // Function to interact with the smart contract // Create a wallet instance (assuming you already have a keypair) // Create a provider // Your smart contract program ID // Create a program instance try {
} catch (error) { // Call the function
|
is there any example of interacting with smart contract in this scaffold?
The text was updated successfully, but these errors were encountered: