Skip to content

How to provide credentials to Ankr when calling the API with ethers.js WebsocketProvider? #1819

Answered by zemse
netsesame asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @netsesame, if you want to pass a basic authorization, you can include it in the URL itself

const nodeUrl = `ws://${username}:${password}@apis.ankr.com/wss/f4a580b3501c48e1b645fc1d589770f7/49eea1b12b9517a0bde384c1971e7e55/binance/full/main`

Lmk if that works :)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@netsesame
Comment options

Answer selected by netsesame
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants