Skip to content
IC Reactor

FakeReplicaRequest

Defined in: core/src/testing/fake-replica.ts:78

A request an agent sent to the fake replica.

readonly endpoint: "status" | "query" | "call" | "read_state"

Defined in: core/src/testing/fake-replica.ts:79


readonly optional canisterId?: string

Defined in: core/src/testing/fake-replica.ts:81

The canister the request was addressed to, as text.


readonly optional methodName?: string

Defined in: core/src/testing/fake-replica.ts:83

The canister method a query or call named.


readonly optional caller?: string

Defined in: core/src/testing/fake-replica.ts:85

The principal the request came from, as text, once it was checked.


readonly optional refused?: string

Defined in: core/src/testing/fake-replica.ts:91

Why the fake refused the request before any canister saw it, as a replica refuses it: the signature, a delegation, or its targets did not check out. The agent received HTTP 400.