Class DinariClientAsyncImpl

    • Constructor Detail

      • DinariClientAsyncImpl

        DinariClientAsyncImpl(ClientOptions clientOptions)
    • Method Detail

      • sync

         DinariClient sync()

        Returns a version of this client that uses synchronous execution.

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

      • v2

         V2ServiceAsync 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.