Class SdkUserAgent

java.lang.Object
com.hedera.hashgraph.sdk.SdkUserAgent

final class SdkUserAgent extends Object
The value the SDK sends as x-user-agent, on the gRPC leg and the mirror node REST leg alike.

Shared so that the two provably agree. x-user-agent rather than User-Agent because a browser cannot set the latter — every Hiero SDK's gRPC path already sends the custom spelling, and sending both would invent a difference between runtimes that no SDK has today.

  • Field Details

  • Method Details

    • value

      static String value()
      Extract the user agent. This information is used to gather usage metrics. If the version is not available, the user agent is hiero-sdk-java/DEV.
      Returns:
      the user agent value