Package-level declarations

This package contains all the utility functions used by Ksui.

This package contains all the utility functions used by Ksui.

This package contains all the utility functions used by Ksui.

This package contains all the utility functions used by Ksui.

This package contains all the utility functions used by Ksui.

Types

Link copied to clipboard
enum Logger : Enum<Logger>
Link copied to clipboard

Properties

Link copied to clipboard
const val FUNCTION: String
Link copied to clipboard
const val LENGTH: Int = 32
Link copied to clipboard
const val MAX_COMMANDS_IN_PTB: Int = 1024
Link copied to clipboard
const val MODULE: String
Link copied to clipboard
val NetworkToChainId: <Error class: unknown class>
Link copied to clipboard
val NetworkToFaucetAPI: <Error class: unknown class>
Link copied to clipboard
val NetworkToIndexerAPI: <Error class: unknown class>
Link copied to clipboard
val NetworkToNetworkName: <Error class: unknown class>
Link copied to clipboard
val NetworkToNodeAPI: <Error class: unknown class>
Link copied to clipboard
const val PACKAGE_ID: String
Link copied to clipboard

Functions

Link copied to clipboard
inline fun <T> bcsDecode(data: ByteArray): T
Link copied to clipboard
inline fun <T> bcsEncode(data: T): ByteArray
Link copied to clipboard
infix suspend fun ProgrammableTransaction.compose(details: <Error class: unknown class><Account, <Error class: unknown class>>): String

Composes a ProgrammableTransaction into the final transaction bytes string. This is the infix version for a more expressive syntax.

suspend fun ProgrammableTransaction.compose(details: <Error class: unknown class><Account, <Error class: unknown class>>, sui: Sui = SuiKit.client): String

Composes a ProgrammableTransaction into the final transaction bytes string. This is the standard extension function.

Link copied to clipboard
fun convertBits(data: ByteArray, fromBits: Int, toBits: Int, pad: Boolean): ByteArray
Link copied to clipboard

Decodes the base58 string into a ByteArray

Link copied to clipboard

Encodes the bytes as a base58 string (no checksum is appended).

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Logger.getKtorLogger(): Logger
Link copied to clipboard
fun LogLevel.getKtorLogLevel(): LogLevel
Link copied to clipboard
Link copied to clipboard
fun idToParts(id: String): <Error class: unknown class><String, String, String>
Link copied to clipboard
inline fun <T : Any> ProgrammableTransactionBuilder.inputs(vararg inputs: T): List<Argument>

Extension functions to create Argument.Inputs from various types.

Link copied to clipboard
actual fun <T> runBlocking(context: CoroutineContext, block: suspend CoroutineScope.() -> T)
expect fun <T> runBlocking(context: <Error class: unknown class> = EmptyCoroutineContext, block: suspend CoroutineScope.() -> T)
actual fun <T> runBlocking(context: <Error class: unknown class>, block: suspend CoroutineScope.() -> T)
actual fun <T> runBlocking(context: CoroutineContext, block: suspend CoroutineScope.() -> T)
actual fun <T> runBlocking(context: <Error class: unknown class>, block: suspend CoroutineScope.() -> T)
Link copied to clipboard

Extension function to create a TransactionDigest from a String.

Link copied to clipboard
Link copied to clipboard
inline fun <T : TypeTag> ProgrammableTransactionBuilder.types(vararg types: T): List<TypeTag>