Skip to content

AccountSimulation

Configurable account RPC simulation utilities.

Converts the owner approvals and configuration modeled during gas estimation between their domain and Tempo JSON-RPC representations.

Functions

NameDescription
AccountSimulation.fromRpcConverts a JSON-RPC account simulation spec to its domain representation.
AccountSimulation.toRpcConverts an account simulation spec to its JSON-RPC representation.

Errors

NameDescription
AccountSimulation.InvalidSimulationErrorThrown when an account simulation spec is invalid.

Types

NameDescription
AccountSimulation.ApprovalConfigurable account owner approval used for RPC simulation.
AccountSimulation.ApprovalRpcJSON-RPC configurable account owner approval used for RPC simulation.
AccountSimulation.PrimitiveApprovalPrimitive owner approval used for RPC simulation.
AccountSimulation.RpcJSON-RPC representation of an account simulation spec.
AccountSimulation.SpecAccount simulation spec used to construct an RPC simulation signature.