Android SDK for Sui
- Android API 26
- Kotlin
implementation 'com.github.cosmostation:suikotlin:0.3.0'
Initialize for security.
SuiClient.initialize(applicationContext)
Using api like below.
SuiCLient.instance.{API}
fun generateMnemonic(): String
fun getAddress(mnemonic: String): String
fun getAddress(keyPair: EdDSAKeyPair): String
fun getKeyPair(mnemonic: String): EdDSAKeyPair
fun sign(keyPair: EdDSAKeyPair, data: ByteArray): ByteArray
suspend fun getObjectsByOwner
suspend fun getObjectDetails
suspend fun getTransactions
suspend fun getTransactionDetails
suspend fun fetchCustomRequest(requests: JsonRpcRequest): JsonRpcResponse
suspend fun fetchCustomRequests(requests: List<JsonRpcRequest>): List<JsonRpcResponse>
suspend fun faucet
suspend fun transferObject
suspend fun moveCall
suspend fun transferSui
suspend fun executeTransaction