SignatureEnvelope.toRpc
Converts a signature envelope to RPC format.
Imports
Named
import { SignatureEnvelope } from 'ox/tempo'Examples
import { SignatureEnvelope } from 'ox/tempo'
const rpc = SignatureEnvelope.toRpc({
signature: { r: 0n, s: 0n, yParity: 0 },
type: 'secp256k1',
})Definition
function toRpc<envelope>(
envelope: envelope,
): toRpc.ReturnType<envelope>Source: src/tempo/SignatureEnvelope.ts
Parameters
envelope
- Type:
envelope
The signature envelope to convert.
Return Type
The RPC signature envelope with hex values.
toRpc.ReturnType<envelope>

