Last active
October 1, 2023 12:46
-
-
Save svanas/3a331944fba68b1be6c5043d3686dab4 to your computer and use it in GitHub Desktop.
Hello World Smart Contract
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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