Skip to content

SenderInfo

Defined in: packages/pic/src/pocket-ic-types.ts:921

Sender information attached to a canister call.

This is passed through to the canister, which can inspect it via the msg_caller_info_data and msg_caller_info_signer system APIs. PocketIC does not validate or verify anything; it simply forwards both fields for canister inspection, mocking the signer’s signature.

Principal

info: Uint8Array

Defined in: packages/pic/src/pocket-ic-types.ts:925

An arbitrary binary blob of sender information.


signer: Principal

Defined in: packages/pic/src/pocket-ic-types.ts:930

The Principal of the canister whose signature will be mocked.