FrankC01 / pysui

SUI Python Client SDK
Apache License 2.0
118 stars 32 forks source link

[Question] Add custom header to rpc call #204

Closed rony-arnac closed 4 months ago

rony-arnac commented 5 months ago

Hey,

I'd like to add Authorization header to the API call to the RPC endpoint. How can I add a custom header?

Thanks!

FrankC01 commented 5 months ago

So:

  1. We are sunsetting the JSON RPC api (pysui legacy)
  2. We have introduced GraphQL RPC client (in beta)

So can you confirn you want the option to be able to do that with every call?

rony-arnac commented 2 months ago

Yes I would @FrankC01

FrankC01 commented 2 months ago

@rony-arnac It went in a few releases ago. You can set at client instantiation as well as each individual 'execute' call.