You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Where `$SEI_NODE_URI` is the URI of the Sei node and `$MNEMONIC` is the mnemonic of the account that will deploy the contract. If you run local Sei node, the address will be `http://localhost:8545` , otherwise you could grab a `evm_rpc` url from the [registry](https://github.com/sei-protocol/chain-registry/blob/main/chains.json). If deployment is successful, you will get the EVM contract address in the output.
@@ -109,15 +109,21 @@ If command is successful, you will get the transaction hash and other info back.
109
109
110
110
Now let's call the `getCount` function again and this case it should return `1`.
> Foundry generates the ABI for the contract in the `out` folder. You can use this ABI to interact with the contract from other tools like `ethers.js` or `web3.js`.
117
+
118
+
## Calling contract using ethers.js
113
119
114
-
To call contract from frontend, you could use `ethers` like:
120
+
To call or query the contract from a frontend or a NodeJS script, you could use `ethers.js` like:
0 commit comments