Skip to main content

Usage

Available on the Para client in @getpara/web-sdk, @getpara/react-sdk, @getpara/react-sdk-lite, @getpara/server-sdk and @getpara/react-native-wallet, through @getpara/core-sdk.
Signature
The method reads the signing payload, signs it and submits the signature. For safe_eip712, evm_transaction and evm_typed_data payloads it adds a 0x prefix when the signature has none.

Access and Portal behavior

Signed-in approver who can sign in the current stage. walletId must be a wallet loaded on this client. The method signs without opening a transaction review, and it does not broadcast anything. If signing returns no signature, for example because a policy blocks it, the method throws and submits nothing.

Errors

A failed request rejects with an error that carries status, code and message. A few refusals have their own code, such as POLICY_DENIED, INITIATOR_CANNOT_REVIEW and APPROVAL_CASES_AFFECTED. Most arrive as plain text, with code set to ERR_BAD_REQUEST for a 4xx status and the server message in message, so branch on message for those. Rows marked Client throw a plain Error with only a message, before any request is sent, so call the method inside try with await to catch every error. Permissions errors lists every error.