hashgraph / hedera-services

Crypto, token, consensus, file, and smart contract services for the Hedera public ledger
Apache License 2.0
309 stars 136 forks source link

Update system file `0.0.101` and `0.0.102` at genesis with the gRPC web proxies for each node #16051

Open SimiHunjan opened 4 days ago

SimiHunjan commented 4 days ago

Problem

SDK clients that require supporting communication via browser need to a way to get the gRPC web proxy endpoints. We have HIP-1046 that will be implemented in the future, but in the near term we need a solution for private networks who may want to use the SDK to build browser based applications.

Solution

For this solution, files 101/102 should be updated with the gRPC web proxy domain names either at genesis or through a file update transaction. This information will be sent to the mirror node and made accessible via the mirror node address book API. SDKs can then programmatically retrieve the gRPC web proxies from the respective network they connect to using this API.

Alternatives

No response

SimiHunjan commented 4 days ago

The list of the gRPC web proxy endpoints can be found here: https://github.com/hashgraph/hedera-sdk-js/blob/main/src/constants/ClientConstants.js#L4