Overview
The Pointer precompile enables creation of EVM-compatible pointer contracts that bridge CosmWasm tokens (CW20, CW721) and native Cosmos tokens to the EVM ecosystem. This allows seamless interoperability and unified token management across both environments. Contract Address:0x000000000000000000000000000000000000100B
Key Features
- CW20 Bridging: Create EVM pointers for CosmWasm CW20 tokens
- CW721 Bridging: Create EVM pointers for CosmWasm CW721 NFTs
- Native Token Bridging: Create EVM pointers for native Cosmos tokens
- Automatic Contract Creation: Deploys ERC20/ERC721 compatible contracts
- Gas Fee Required: All functions are payable and require gas
Available Functions
State-Changing Functions
addCW20Pointer(string) → address
addCW20Pointer(string) → address
Create an EVM pointer contract for a CosmWasm CW20 token.Parameters:
cwAddr(string): The CosmWasm CW20 contract address
ret(address): The deployed EVM pointer contract address
addCW721Pointer(string) → address
addCW721Pointer(string) → address
Create an EVM pointer contract for a CosmWasm CW721 NFT collection.Parameters:
cwAddr(string): The CosmWasm CW721 contract address
ret(address): The deployed EVM pointer contract address
addNativePointer(string) → address
addNativePointer(string) → address
Create an EVM pointer contract for a native Cosmos token.Parameters:
token(string): The native token denomination (e.g., “usei”, “uatom”)
ret(address): The deployed EVM pointer contract address
Usage Examples
- Viem
- Ethers.js
- Manual
Pointer Creation Patterns
Token Bridge Setup
Batch Bridge Creation
Bridge Verification
Common Use Cases
DeFi Protocol Integration
- Token Listing: Create EVM pointers for new tokens
- Liquidity Pools: Bridge tokens for DEX integration
- Yield Farming: Enable farming with CosmWasm tokens
Cross-Chain Applications
- Multi-Ecosystem Support: Bridge tokens between CosmWasm and EVM
- Unified Interfaces: Provide single interface for all token types
- Portfolio Management: Track assets across ecosystems
NFT Marketplace Development
- Collection Bridging: Bridge CW721 collections to EVM
- Cross-Platform Trading: Enable trading across ecosystems
- Metadata Preservation: Maintain NFT metadata across bridges
Gas Optimization
Fee Management
Transaction Batching
Error Handling
Common scenarios when creating pointers:- Insufficient gas fee: Transaction reverts due to low gas payment
- Token already bridged: Pointer already exists for the token
- Invalid token address: Malformed or non-existent token
- Network congestion: Transaction delays or failures
Security Considerations
Address Validation
- Validate token addresses before creating pointers
- Check token existence on source chain
- Verify token metadata and permissions
Gas Fee Management
- Set appropriate gas fees to ensure transaction success
- Monitor gas price fluctuations
- Implement fee estimation and adjustment
Transaction Monitoring
- Track pointer creation transactions
- Verify successful deployment
- Monitor for failed or pending transactions
Related Precompiles
- Pointerview: Query existing pointer contracts
- Bank: Manage token balances after bridging
- Address: Convert between address formats