Interact with a smart contract with Taquito
Install Taquito
npm install @taquito/taquito
npm install @taquito/signerImport the library
import { TezosToolkit } from '@taquito/taquito';
import { InMemorySigner} from '@taquito/signer';Instantiate the library with the same contracts rpc
const Tezos = new TezosToolkit('https://YOUR_PREFERRED_RPC_URL');Maybe you have an error and need to install 'stream-browserify'.
npm install 'stream-browserify'and add "stream" to vue.config.js file.
Sign configuration
You get your private key from your wallet, in settings.
Interact with the smart contract
You need the contract address. Example: KT1NvFHBQv3Zkv3wmWYqYpWWR8rMdd5pUG14 .
Send a method
Get a op hash confimation
Catch error
Inspect the contract methods and data types
Reference Links
Last updated