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