getDeployer

suspend fun getDeployer(): KeyPair

Returns the deployer keypair, resolving to the default if not explicitly configured. The result is cached after the first call to avoid repeated keypair creation. The cache is not synchronized; concurrent callers may redundantly create the deployer, but the result is deterministic and idempotent.

The deployer keypair is used for deploying smart account contracts. If no deployer was provided in the configuration, a deterministic deployer is derived from SHA256("openzeppelin-smart-account-kit") for deterministic address derivation.

Note: The deployer only pays for deployment transactions. It does not control user wallets. The deployer's G-address is needed to fund it externally on networks without Friendbot.

Return

The configured or default deployer keypair

Throws

if default deployer creation fails