Skip to content

Instantly share code, notes, and snippets.

@svanas
Last active October 1, 2023 12:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save svanas/3a331944fba68b1be6c5043d3686dab4 to your computer and use it in GitHub Desktop.
Save svanas/3a331944fba68b1be6c5043d3686dab4 to your computer and use it in GitHub Desktop.
Hello World Smart Contract
web3.eth.call(TWeb3.Create(
Sepolia.SetRPC( // Sepolia test net
'https://sepolia.infura.io/v3/your-project-id')), // RPC access to Sepolia
'0x643C9Db08aBE4D95e4F2Afc733F78b601b84007A', // smart contract address
'myFirstHelloWorld()', [], procedure(tup: TTuple; err: IError)
begin
TThread.Synchronize(nil, procedure
begin
if Assigned(err) then
MessageDlg(err.Message, TMsgDlgType.mtError, [TMsgDlgBtn.mbOK], 0)
else
ShowMessage(tup.ToString);
end);
end);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment