This contract shows the off-chain computation with native HTTP request support in Phat Contract from Phala Network.
It receives the Ethereum accounts from users and reports the account balance by querying the Etherscan with its native HTTP request.
Setup the environment for Ink! contract compilation following the official tutorial
# tested on Ubuntu 22.04
cargo contract --version
# cargo-contract-contract 3.0.1-unknown-x86_64-unknown-linux-gnu
then run
cargo contract build
To test your contract locally and see its output, run with
cargo test -- --nocapture