Interface: AccountHooks
Defined in: src/plugins/types.ts:24
Extends
Methods
beforeExecute()?
optionalbeforeExecute(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
details
Returns
void | { calls: AllowArray<Call>; details: UniversalDetails; }
afterExecute()?
optionalafterExecute(ctx):void
Defined in: src/plugins/types.ts:37
Called after Account.execute() with the result.
Parameters
ctx
calls
result
{ transaction_hash: string; }
result.transaction_hash
string
Returns
void
beforeSign()?
optionalbeforeSign(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
Returns
void | { typedData: TypedData; }
afterSign()?
optionalafterSign(ctx):void
Defined in: src/plugins/types.ts:48
Called after Account.signMessage() with the result.
Parameters
ctx
typedData
signature
Returns
void
beforeRequest()?
optionalbeforeRequest(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
afterRequest()?
optionalafterRequest(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