aptos

suspend fun <T> aptos(config: AptosConfig = AptosConfig(), block: suspend Aptos.() -> T): T

Runs one Aptos workflow with managed lifecycle semantics.

The client always closes after block. Accounts created through Aptos.account are also cleared automatically. Long-lived applications can still construct Aptos directly.