Home > @holochain/tryorama > getCallableCell
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;
}
Parameter |
Type |
Description |
---|---|---|
appWs |
App websocket to use for calling zome. | |
cell |
ClonedCell | ProvisionedCell |
Cell to bind zome call function to. |
{ 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.