Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 679 Bytes

README.md

File metadata and controls

27 lines (22 loc) · 679 Bytes

A Kotlin API for interacting with the XRP Ledger

Example

val r = Server(Network.Mainnet)

r.getAccountInfo(GetAccountParams("1234"))
    .subscribeBy(
        onNext={
            println("no error:")
            println(it)
        },
        onError={
            println("with error:")
            println(it as? ErrorResponse)
        }
    )

r.getAccountTrustLines(GetTrustLinesParams("rrrrrrrrrrrrrrrrrrrrBZbvji"))
    .subscribe { println(it) }

r.submitTx(SubmitTxParams("13lfjhdfkjdhf"))
    .subscribe { println(it) }

r.getTxInfo(GetTxInfoParams("55C99B26DB61307D6003ADA5946F505D70C06259DE11A6A3CFCB321D4D718C43"))
    .subscribe { println(it) }