AlgorandOptions

data class AlgorandOptions(val algodUrl: String? = null, val algodToken: String? = null, val privateKey: String? = null, val appId: String? = null, val indexerUrl: String? = null, val indexerToken: String? = null) : BlockchainAnchorClientOptions

Algorand blockchain anchor client options.

Parameters

algodUrl

Optional Algod API URL (defaults to network-specific endpoint)

algodToken

Optional Algod API token (defaults to empty string)

privateKey

Optional private key in base64 format (required for real transactions). Accepts either the 32-byte Ed25519 seed or the 64-byte exported secret key (seed || public key, e.g. JS SDK account.sk / algokey output)

appId

Optional Algorand application ID for contract interactions

indexerUrl

Optional Algorand Indexer URL. Required for reading historical anchors — without it, reads can only resolve recently submitted transactions still tracked by the node's pending-transaction endpoint

indexerToken

Optional Algorand Indexer API token (defaults to empty string)

Constructors

Link copied to clipboard
constructor(algodUrl: String? = null, algodToken: String? = null, privateKey: String? = null, appId: String? = null, indexerUrl: String? = null, indexerToken: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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 or the API tokens; URLs are reduced to scheme and host.