Search
Preparing search index...
The search index is not available
redstone-smartweave
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
redstone-smartweave
HandlerApi
Interface HandlerApi<State>
A handle that effectively runs contract's code.
Type parameters
State
Hierarchy
HandlerApi
Index
Methods
handle
Methods
handle
handle<Input, Result>
(
executionContext
:
ExecutionContext
<
State
,
unknown
>
, state
:
State
, interaction
:
ContractInteraction
<
Input
>
, interactionTx
:
InteractionTx
, currentTx
:
{
contractTxId
:
string
;
interactionTxId
:
string
}
[]
)
:
Promise
<
InteractionResult
<
State
,
Result
>
>
Type parameters
Input
Result
Parameters
executionContext:
ExecutionContext
<
State
,
unknown
>
state:
State
interaction:
ContractInteraction
<
Input
>
interactionTx:
InteractionTx
currentTx:
{
contractTxId
:
string
;
interactionTxId
:
string
}
[]
Returns
Promise
<
InteractionResult
<
State
,
Result
>
>
Exports
Handler
Api
handle
Generated using
TypeDoc
A handle that effectively runs contract's code.