Creates and returns a typed Ethers v6 contract instance for the Wasm precompile contract. This contract is used for interoperability between the EVM and Cosmos.
import { getWasmPrecompileEthersV6Contract } from '@sei-js/evm';import { ethers } from 'ethers';const provider = new ethers.BrowserProvider(window.ethereum); // or any other providerconst signer = await provider.getSigner();const wasmPrecompileContract = getWasmPrecompileEthersV6Contract(signer);const queryResponse = await wasmPrecompileContract.query(CONTRACT_ADDRESS, REQUEST);console.log('Query Response:', queryResponse); Copy
import { getWasmPrecompileEthersV6Contract } from '@sei-js/evm';import { ethers } from 'ethers';const provider = new ethers.BrowserProvider(window.ethereum); // or any other providerconst signer = await provider.getSigner();const wasmPrecompileContract = getWasmPrecompileEthersV6Contract(signer);const queryResponse = await wasmPrecompileContract.query(CONTRACT_ADDRESS, REQUEST);console.log('Query Response:', queryResponse);
A Provider (read-only) or ethers.Signer to use with the contract.
The typed contract instance for interacting with the Wasm precompile contract.
Creates and returns a typed Ethers v6 contract instance for the Wasm precompile contract. This contract is used for interoperability between the EVM and Cosmos.
Example