Skip to main content

AppPayload

Note: If you change the following struct you have to update default_entrypoint.ts

Fields

FieldType
function_callsFunctionCall; ACCOUNT_MAX_CALLS]
nonceField

Methods

to_be_bytes

Serializes the payload as an array of bytes. Useful for hashing with sha256.

AppPayload::to_be_bytes(self);

Parameters

NameType
self

execute_calls

AppPayload::execute_calls(self, context);

Parameters

NameType
self
context&mut PrivateContext

Standalone Functions

serialize

serialize(self);

Parameters

NameType
self

hash

hash(self);

Parameters

NameType
self