Retrieves the WalletContext stored in an RPC context, throwing if absent.

Synopsis

Declared in <wallet/rpc/util.h>

WalletContext&
EnsureWalletContext(std::any const& context);

Return Value

A reference to the wallet context.

Parameters

Name

Description

context

The type‐erased RPC context.

Created with MrDocs