- Notifications
You must be signed in to change notification settings - Fork2
License
NotificationsYou must be signed in to change notification settings
Reedyuk/jsonrpc-kotlin-client
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
A Kotlin Multiplatform Library for performing JSON-RPC 2.0 commands.
Taken inspiration fromSwiftJSONRPC
The library works on the following platforms:Android,iOS,JavaScript.
Create client object with base url:
val client=RPCClient(clientUrl)
Create a subclass of the RPCService object
val service=object:RPCService(client) {suspendfunsha():String {val sha= invoke("web3_sha3", arrayOf("0x68656c6c6f20776f726c64"))return sha.content }}
Invoke the service function call to get the result.
val shaResult= service.sha()
I would recommend you look at the unit tests to get a better idea. I will be working on another library which uses this library, so will link back to here for more inspiration.
About
No description, website, or topics provided.
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.