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