You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The goal is to try to reduce the number of calls the sdk makes to the web3rpc endpoints. I think that some of them can be reduced by simply caching the values on the sdk during instantiation
eth_getTransactionByHash: I think this is coming from the nvm one backend that needs to fetch the transaction receipts for the events. should be fixed when we improve the subgraphs
eth_getBlockByNumber: Same as above
eth_chainId: This method is used in multiple places in the sdk. I think this value is being queried every time we need it. If that is the case it would be enough to just add this value as a property of sdk.keeper during initialization and then just use that value
eth_accounts: Not sure why this method is called. We don't use accounts stored in the node. infura always returns an empty array. I think this is called when doing sdk.accounts.list() which we use a lot. In any case the accounts list should be populated at sdk instantiation time and the values re-used after that
The text was updated successfully, but these errors were encountered:
The goal is to try to reduce the number of calls the sdk makes to the web3rpc endpoints. I think that some of them can be reduced by simply caching the values on the sdk during instantiation
eth_getTransactionByHash
: I think this is coming from the nvm one backend that needs to fetch the transaction receipts for the events. should be fixed when we improve the subgraphseth_getBlockByNumber
: Same as aboveeth_chainId
: This method is used in multiple places in the sdk. I think this value is being queried every time we need it. If that is the case it would be enough to just add this value as a property ofsdk.keeper
during initialization and then just use that valueeth_accounts
: Not sure why this method is called. We don't use accounts stored in the node. infura always returns an empty array. I think this is called when doingsdk.accounts.list()
which we use a lot. In any case the accounts list should be populated at sdk instantiation time and the values re-used after thatThe text was updated successfully, but these errors were encountered: