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: SignatureEnvelope,
): SignatureEnvelopeRpcSource: src/tempo/SignatureEnvelope.ts
Parameters
envelope
- Type:
SignatureEnvelope
The signature envelope to convert.
envelope.inner
- Type:
SignatureEnvelope
The actual signature from the access key (can be Secp256k1, P256, or WebAuthn)
envelope.metadata
- Type:
Pick
envelope.prehash
- Type:
boolean
envelope.publicKey
- Type:
{ prefix: number; x: bigint; y: bigint; }
envelope.signature
- Type:
{ r: bigintType; s: bigintType; yParity?: numberType; }
envelope.type
- Type:
"keychain"
envelope.userAddress
- Type:
abitype_Address
Root account address that this transaction is being executed for
Return Type
The RPC signature envelope with hex values.

