Last active
February 7, 2023 14:53
-
-
Save svanas/7428e796cb09c4d58d93ff8d22f559cb to your computer and use it in GitHub Desktop.
ENS reverse lookup
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
TAddress.Create('0xa0400ba66b4fe0b13bb909abfd377596c02b6733').ToString( | |
TWeb3.Create(Ethereum.SetRPC('https://mainnet.infura.io/v3/your-project-id')), | |
procedure(str: string; err: IError) | |
begin | |
TThread.Synchronize(nil, procedure | |
begin | |
if Assigned(err) then | |
MessageDlg(err.Message, TMsgDlgType.mtError, [TMsgDlgBtn.mbOK], 0) | |
else | |
ShowMessage(str); | |
end); | |
end | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment