GanacheOptions

data class GanacheOptions(val rpcUrl: String? = null, val privateKey: String, val contractAddress: String? = null) : BlockchainAnchorClientOptions

Ganache blockchain anchor client options.

Parameters

rpcUrl

Optional RPC endpoint URL (defaults to http://localhost:8545)

privateKey

Private key in hex format (required)

contractAddress

Optional contract address for contract interactions

Constructors

Link copied to clipboard
constructor(rpcUrl: String? = null, privateKey: String, contractAddress: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
inline fun <T> get(key: String): T?

Retrieves a typed value from toMap representation.

Link copied to clipboard
open override fun toMap(): Map<String, Any?>

Converts options to a map for backward compatibility.

Link copied to clipboard
open override fun toString(): String

Never prints privateKey; the RPC URL is reduced to scheme and host.