Skip to content
function signAuthorization(ctx, authorization): Promise<`0x${string}`>;

Signs a previously built definition after re-checking its chain and signer identity. LOC authorizations must target the profile’s LOC proxy. Vault authorizations bind the caller-selected verifyingContract, including historical vaults; they do not follow the current-vault selection. Definition validation checks identity and payload consistency, but does not attest vault compatibility. The public client and connected wallet must still be on the chain captured when the definition was built.

Parameters

ParameterType
ctxSDKContext
authorizationAnvilAuthorization

Returns

Promise<`0x${string}`>

Throws

BaseError when the wallet rejects or cannot complete the request; the underlying wallet error remains available as cause.

Throws

InvalidArgumentError when any inspectable definition metadata disagrees with the canonical EIP-712 payload for its authorization kind.

Throws

ConfigError when either connected client is on another chain.