Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fetching blocks and transactions #32

Open
dev-dantealighieri opened this issue Jan 15, 2025 · 2 comments
Open

fetching blocks and transactions #32

dev-dantealighieri opened this issue Jan 15, 2025 · 2 comments

Comments

@dev-dantealighieri
Copy link

hi,

how can i fetch blocks and transactions using the rest api, your documentation is pretty bad to be honest...

thanks, dante

@belhaghassan
Copy link

Agreed its not that clear but here is a curl command:

curl 'https://api.hyperliquid.xyz/explorer' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  --data-raw '{
    "height": 416632723,
    "type": "blockDetails"
  }'
curl 'https://api.hyperliquid.xyz/explorer' \
  -H 'Content-Type: application/json' \
  --data-raw '{"type":"txDetails","hash":"0xd1cd453424b3eb295e660418d54f930101005f5a5d0ce924c088dbda99877da2"}'

@dev-dantealighieri
Copy link
Author

hi,

this is very good, thank you

how can i find all the rest api endpoints?

because i also need one for fetching last block of blockchain, but i couldnt find it in the docs

thanks, dante

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants