Slides used during the "Connecting to EVM from ICP Canisters" workshop during the Internet Computer BUIDL Bitcoin Hackathon Powered by Encode (May 2023).
Connect to EVM Chains
• Content
• Connect to EVM Chains via ic-web3
• Communicate with EVM Contracts via Omnic
The Internet Computer
• Applications run in canisters (smart contracts)
• Canisters can make http calls
• Canister can fetch/post data from other chains
• Canisters can sign messages via threshold ECDSA
• Canister can sign tx of any chain with ECDSA support
ic-web3
• A library that helps you
connect to EVM chains inside
a canister
• Fetch info from EVM chains
• Sign EVM chain
transactions via t-ECDSA
• Send transactions to EVM
chains
Endpoint Canister
• A proxy canister to access
EVM chains
• Support Raw RPC calls
• Canister id: 3ondx-siaaa-
aaaam-abf3q-cai
Reminders
• Avoid replica consensus issue:
• Remember to add `transform` function to your canister
• Fetch `block_height` before you make RPC calls
• Ensure authenticity: Fetch from multiple RPC providers and
compare the result
• Send Tx: sign the tx -> send the tx -> query tx result
What is
Powered by the Internet Computer, speci
fi
cally, canister smart contracts, threshold ECDSA & outbound http calls
A scalable and programmable crosschain messaging protocol