Skip to content

Phala-Network/phat-hello

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hello World in Phat Contract

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.

Build

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

Test

To test your contract locally and see its output, run with

cargo test -- --nocapture

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages