FrameSignature.fromRpc
Converts an RPC signature entry to a structured frame signature.
Imports
Named
import { FrameSignature } from 'ox'Examples
Basic Usage
import { FrameSignature } from 'ox'
const entry = FrameSignature.fromRpc({
msg: '0x',
scheme: '0x0',
signature: '0xdeadbeef'
})Definition
function fromRpc(
entry: Rpc,
): FrameSignatureSource: src/core/FrameSignature.ts
Parameters
entry
- Type:
Rpc
The value to convert.
entry.msg
- Type:
0x${string} - Optional
Explicit digest, or empty bytes for the transaction signing hash.
entry.scheme
- Type:
"0x0" | "0x1" | "0x2"
Signature verification scheme.
entry.signature
- Type:
0x${string} - Optional
Encoded signature bytes.
entry.signer
- Type:
Address.Address | null | undefined - Optional
Signer address; absent for the transaction sender.
Return Type
The converted value.
FrameSignature

