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