-
Hi all, I'm trying to connect to the Solana blockchain via a Deno http server. This is my code:
I run it like this:
But it throws this error when I try to get the recentBlockhash:
How can I resolve this? Best regards, |
Beta Was this translation helpful? Give feedback.
Answered by
Ciantic
Jul 2, 2022
Replies: 1 comment 1 reply
-
Deno does not have functioning XMLHttpRequest by default. You can try a polyfill Do this before your imports: import "https://deno.land/x/xhr@0.1.0/mod.ts"; |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
WeihanWMW
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Deno does not have functioning XMLHttpRequest by default.
You can try a polyfill
Do this before your imports: