Skip to main content
Version: Next

Interface: AccountHooks

Defined in: src/plugins/types.ts:24

Extends

Methods

beforeExecute()?

optional beforeExecute(ctx): void | { calls: AllowArray<Call>; details: UniversalDetails; }

Defined in: src/plugins/types.ts:29

Called before Account.execute(). Return modified context to transform calls/details, or void to pass through.

Parameters

ctx
calls

AllowArray<Call>

details

UniversalDetails

Returns

void | { calls: AllowArray<Call>; details: UniversalDetails; }


afterExecute()?

optional afterExecute(ctx): void

Defined in: src/plugins/types.ts:37

Called after Account.execute() with the result.

Parameters

ctx
calls

AllowArray<Call>

result

{ transaction_hash: string; }

result.transaction_hash

string

Returns

void


beforeSign()?

optional beforeSign(ctx): void | { typedData: TypedData; }

Defined in: src/plugins/types.ts:43

Called before Account.signMessage(). Return modified context to transform typedData, or void to pass through.

Parameters

ctx
typedData

TypedData

Returns

void | { typedData: TypedData; }


afterSign()?

optional afterSign(ctx): void

Defined in: src/plugins/types.ts:48

Called after Account.signMessage() with the result.

Parameters

ctx
typedData

TypedData

signature

Signature

Returns

void


beforeRequest()?

optional beforeRequest(ctx): void | { method: string; params: any; }

Defined in: src/plugins/types.ts:13

Called before every RPC request through the channel. Return modified context to transform the request, or void to pass through.

Parameters

ctx
method

string

params

any

Returns

void | { method: string; params: any; }

Inherited from

ProviderHooks.beforeRequest


afterRequest()?

optional afterRequest(ctx): any

Defined in: src/plugins/types.ts:19

Called after every RPC request through the channel. Return a value to replace the result, or void to pass through.

Parameters

ctx
method

string

params

any

result

any

Returns

any

Inherited from

ProviderHooks.afterRequest