rawSign

suspend fun rawSign(message: String, chainId: String, signatureApprovalMemo: String? = null): PortalProviderResult

See also


suspend fun rawSign(message: String, chainId: String, signatureApprovalMemo: String?, traceId: String?): PortalProviderResult

Generates raw signatures using the underlying key share without chain-specific formatting.

This method allows you to create signatures that can be used with any blockchain that utilizes SECP256K1 or ED25519 cryptography, effectively making the Portal SDK chain-agnostic.

Return

A PortalProviderResult containing the raw signature.

Parameters

message

The message to be signed.

chainId

The blockchain network identifier to use for signing.

signatureApprovalMemo

Optional memo recorded with the signature approval.

traceId

Optional trace ID for request correlation. Forwarded as the X-Portal-Trace-Id header and mapped to MPC signing metadata reqId. When null, a new UUID is generated for this request.

Throws

If an error occurs during the signing process.