Skip to content

Latest commit

 

History

History
84 lines (47 loc) · 1.97 KB

tryorama.getcallablecell.md

File metadata and controls

84 lines (47 loc) · 1.97 KB

Home > @holochain/tryorama > getCallableCell

getCallableCell() function

Create curried version of callZome function for a specific cell.

Signature:

getCallableCell: (appWs: IAppWebsocket, cell: ClonedCell | ProvisionedCell) => {
    callZome: <T>(request: CellZomeCallRequest, timeout?: number) => Promise<T>;
    cell_id: import("@holochain/client").CellId;
    clone_id: string;
    original_dna_hash: Uint8Array;
    dna_modifiers: import("@holochain/client").DnaModifiers;
    name: string;
    enabled: boolean;
} | {
    callZome: <T>(request: CellZomeCallRequest, timeout?: number) => Promise<T>;
    cell_id: import("@holochain/client").CellId;
    dna_modifiers: import("@holochain/client").DnaModifiers;
    name: string;
}

Parameters

Parameter

Type

Description

appWs

IAppWebsocket

App websocket to use for calling zome.

cell

ClonedCell | ProvisionedCell

Cell to bind zome call function to.

**Returns:**

{ callZome: <T>(request: CellZomeCallRequest, timeout?: number) => Promise<T>; cell_id: import("@holochain/client").CellId; clone_id: string; original_dna_hash: Uint8Array; dna_modifiers: import("@holochain/client").DnaModifiers; name: string; enabled: boolean; } | { callZome: <T>(request: CellZomeCallRequest, timeout?: number) => Promise<T>; cell_id: import("@holochain/client").CellId; dna_modifiers: import("@holochain/client").DnaModifiers; name: string; }

A callable cell.