How to connect Dapp UI to Venom
Project Setup
Install Dependencies
npm i everscale-inpage-provider --saveConnecting to the Venom Wallet
import { ProviderRpcClient } from 'everscale-inpage-provider';
const ever = new ProviderRpcClient();
async function myApp() {
if (!(await ever.hasProvider())) {
/**
* Handle this case by showing the user a link to the Venom extension
*/
throw new Error('Extension is not installed');
}
//...
}How to call smart contracts from code
Last updated