LedgerApiPolicy

fun interface LedgerApiPolicy

Which ledgerApi resources a dApp may reach through the wallet.

ledgerApi is the wallet acting as an authenticating proxy, so without a policy it is an open door onto the ledger with the wallet's own credentials. The default is deliberately narrow; hosts widen it deliberately.

Types

Link copied to clipboard
object Companion

Stock policies and the allowing builder.

Functions

Link copied to clipboard
abstract fun allows(request: LedgerApiRequest): Boolean

Whether request may be proxied. Consulted on every ledgerApi call after the grant check; a refusal answers 4100.