coinpayments


License

License

GroupId

GroupId

com.alexdupre
ArtifactId

ArtifactId

coinpayments_2.13
Last Version

Last Version

1.2
Release Date

Release Date

Type

Type

jar
Description

Description

coinpayments
coinpayments
Project URL

Project URL

https://github.com/alexdupre/coinpayments-scala
Project Organization

Project Organization

com.alexdupre
Source Code Management

Source Code Management

https://github.com/alexdupre/coinpayments-scala

Download coinpayments_2.13

How to add to project

<!-- https://jarcasting.com/artifacts/com.alexdupre/coinpayments_2.13/ -->
<dependency>
    <groupId>com.alexdupre</groupId>
    <artifactId>coinpayments_2.13</artifactId>
    <version>1.2</version>
</dependency>
// https://jarcasting.com/artifacts/com.alexdupre/coinpayments_2.13/
implementation 'com.alexdupre:coinpayments_2.13:1.2'
// https://jarcasting.com/artifacts/com.alexdupre/coinpayments_2.13/
implementation ("com.alexdupre:coinpayments_2.13:1.2")
'com.alexdupre:coinpayments_2.13:jar:1.2'
<dependency org="com.alexdupre" name="coinpayments_2.13" rev="1.2">
  <artifact name="coinpayments_2.13" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.alexdupre', module='coinpayments_2.13', version='1.2')
)
libraryDependencies += "com.alexdupre" % "coinpayments_2.13" % "1.2"
[com.alexdupre/coinpayments_2.13 "1.2"]

Dependencies

compile (5)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.13.1
com.eed3si9n : gigahorse-okhttp_2.13 jar 0.5.0
com.typesafe.play : play-json_2.13 jar 2.8.1
commons-codec : commons-codec jar 1.11
org.slf4j : slf4j-api jar 1.7.30

test (1)

Group / Artifact Type Version
ch.qos.logback : logback-classic jar 1.2.3

Project Modules

There are no modules declared in this project.

coinpayments-scala

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)

Artifacts

The latest release of the library is compiled with Scala 2.12 and 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

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

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

Usage

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")

Versions

Version
1.2