PolygonOptions

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

Polygon blockchain anchor client options.

Parameters

rpcUrl

Optional RPC endpoint URL (defaults to network-specific endpoint)

privateKey

Optional private key in hex format (required for real transactions)

contractAddress

Optional contract address for contract interactions

Constructors

Link copied to clipboard
constructor(rpcUrl: String? = null, privateKey: String? = null, 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 (which often embeds an API key) is reduced to scheme and host.