AccountSimulation.toRpc
Converts an account simulation spec to its JSON-RPC representation.
Imports
Named
import { AccountSimulation } from 'ox/tempo'Examples
import { AccountSimulation } from 'ox/tempo'
const specRpc = AccountSimulation.toRpc(spec)Definition
function toRpc(
spec: Spec,
): RpcSource: src/tempo/AccountSimulation.ts
Parameters
spec
- Type:
Spec
Account simulation spec.
spec.approvals
- Type:
readonly PrimitiveApproval[]
Owner approvals to model.
spec.config
- Type:
{ owners: readonly Owner[]; salt: 0x${string}; threshold: number; version: bigint; }
Complete applicable configuration.
spec.signer
- Type:
Address.Address | undefined - Optional
Account that signs the modeled key authorization. Omitted for a direct signature.
Return Type
The JSON-RPC account simulation spec with encoded configurations.
Rpc

