Skip to content

Instantly share code, notes, and snippets.

@svanas
Last active February 7, 2023 14:53
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/7428e796cb09c4d58d93ff8d22f559cb to your computer and use it in GitHub Desktop.
Save svanas/7428e796cb09c4d58d93ff8d22f559cb to your computer and use it in GitHub Desktop.
ENS reverse lookup
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