Creates and returns a typed Ethers v6 contract instance for the IBC precompile contract. This contract is used for interoperability between the EVM and Cosmos.
import { getIbcPrecompileEthersV6Contract } 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 ibcPrecompileContract = getIbcPrecompileEthersV6Contract(signer);const cosmosAddress = 'cosmos1...';const bool = await ibcPrecompileContract.transfer(cosmosAddress, 'transfer', 'channel-0', 'usei', 100, 1n, 1n, 1n, 'memo');console.log('Transfer successful:', bool); Copy
import { getIbcPrecompileEthersV6Contract } 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 ibcPrecompileContract = getIbcPrecompileEthersV6Contract(signer);const cosmosAddress = 'cosmos1...';const bool = await ibcPrecompileContract.transfer(cosmosAddress, 'transfer', 'channel-0', 'usei', 100, 1n, 1n, 1n, 'memo');console.log('Transfer successful:', bool);
A Provider (read-only) or ethers.Signer to use with the contract.
The typed contract instance for interacting with the IBC precompile contract.
Creates and returns a typed Ethers v6 contract instance for the IBC precompile contract. This contract is used for interoperability between the EVM and Cosmos.
Example