Class DinariClientImpl

    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      DinariClientAsync async() Returns a version of this client that uses asynchronous execution.
      DinariClient.WithRawResponse withRawResponse() Returns a view of this service that provides access to raw HTTP responses for each method.
      DinariClient withOptions(Consumer<ClientOptions.Builder> modifier) Returns a view of this service with the given option modifications applied.
      V2Service v2() Orders represent the buying and selling of assets under an Account.
      Unit close() Closes this client, relinquishing any underlying resources.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • async

         DinariClientAsync async()

        Returns a version of this client that uses asynchronous execution.

        The returned client shares its resources, like its connection pool and thread pools, with this client.

      • v2

         V2Service v2()

        Orders represent the buying and selling of assets under an Account.

        For Accounts using self-custodied Wallets, Orders are created and fulfilled by making calls to Dinari's smart contracts, or using the Proxied Orders methods.

        For Accounts using managed Wallets, Orders are created and fulfilled by using the Managed Orders methods, which then create the corresponding transactions on the blockchain.

      • close

         Unit close()

        Closes this client, relinquishing any underlying resources.

        This is purposefully not inherited from AutoCloseable because the client is long-lived and usually should not be synchronously closed via try-with-resources.

        It's also usually not necessary to call this method at all. the default HTTP client automatically releases threads and connections if they remain idle, but if you are writing an application that needs to aggressively release unused resources, then you may call this method.