alexdupre / coinpayments-scala   2.0.0


A Scala library for the CoinPayments API

Scala versions: 3.x 2.13


Build Status

An asynchronous / non-blocking Scala library for the CoinPayments API.

Supported functionalities:

  • Create Transaction
  • Callback Addresses
  • Instant Payment Notifications (currently limited to 'deposit' type)


The latest release of the library supports only Gigahorse with OkHttp backend as HTTP provider.

Version Artifact Id HTTP Provider Play-JSON Scala
1.0.1 coinpayments Gigahorse 0.3.x 2.6.x 2.12 Only
1.1 coinpayments Gigahorse 0.3.x 2.7.x 2.12 Only
1.2 coinpayments Gigahorse 0.5.x 2.8.x 2.12 & 2.13
1.3 coinpayments Gigahorse 0.7.x 2.10.x 2.12 & 2.13 & 3
2.0.0 coinpayments Gigahorse 0.7.x 3.0.x 2.13 & 3

If you're using SBT, add the following line to your build file:

libraryDependencies += "com.alexdupre" %% "coinpayments" % "<version>"


The CoinPayments trait contains all the public methods that can be called on the client object.

Eg. if you like to create a new LTCT deposit address you can use the following code snippet:

import com.alexdupre.coinpayments._
import com.alexdupre.coinpayments.models._

val pubKey = ...
val privKey = ...

val client: CoinPayments = CoinPaymentsClient(pubKey, privKey)

val address: Future[Address] = client.getCallbackAddress("LTCT")