Skip to content

provider.getNetwork() returns an empty object #3977

Answered by ricmoo
Azleal asked this question in Q&A
Discussion options

You must be logged in to vote

It’s not empty, it’s a JavaScript instance of a class, which only included enumerated properties in the default console.log. You can either use a custom logger (I believe node’s console.dir accepts an optional parameter to recurse over internal properties) or just access the fields you wish. :)

Replies: 1 comment 1 reply

Comment options

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

Answer selected by Azleal
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
Converted from issue

This discussion was converted from issue #3976 on April 14, 2023 03:11.