ApiCoreFunctions
Function: runAction()
function runAction(
node,
name,
input?
): Promise<unknown>;Defined in: packages/core/src/node/actions.ts:1036
Runs an action by name, checking its input first.
Parameters
| Parameter | Type |
|---|---|
node | P2PNode |
name | string |
input? | unknown |
Returns
Promise<unknown>
Throws
When the action is unknown or the input does not fit