Skip to content

Instantly share code, notes, and snippets.

@svanas

svanas/Unit1.pas

Last active Jun 7, 2020
Embed
What would you like to do?
QuikNode
var
client: TWeb3;
begin
client := TWeb3.New('https://<your-node-name>.quiknode.pro/<your-token>/');
web3.eth.blockNumber(client, procedure(num: BigInteger; err: IError)
begin
TThread.Synchronize(nil, procedure
begin
if Assigned(err) then
MessageDlg(err.Message, mtError, [mbOK], 0)
else
MessageDlg(num.ToString, mtInformation, [mbOK], 0);
end);
end);
end;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.