I would like to add a header (namely x-api-key) to each RPC request fired off by the Web3 class. How do I do this?
I have tried using AuthenticationHeaderValue
as a constructor parameter but from what I can tell either my implementation is incorrect (new AuthenticationHeaderValue("x-api-key", "(api key here)")
) or AuthenticationHeaderValue will not work as this is not a standard schema.