tomusdrw / rust-web3

Ethereum JSON-RPC multi-transport client. Rust implementation of web3 library. ENS address: rust-web3.eth
MIT License
1.45k stars 465 forks source link

Can we directly use Call method to call the method of smart contract? #632

Open 0x7063 opened 2 years ago

0x7063 commented 2 years ago

I have a smart contract deployed on ropsten Test network. So with the help of contract address I need to call the method of that smart contract deployed on ropsten Test network. Can I do it by directly using the Call function? Can you please provide a sample for the same.

dangdennis commented 2 years ago

Example right here. https://github.com/tomusdrw/rust-web3/blob/master/examples/contract_storage.rs