Home > @holochain/tryorama > getCallableCell
Create curried version of callZome function for a specific cell.
Signature:
getCallableCell: (appWs: AppWebsocket, cell: ClonedCell | ProvisionedCell) => {
callZome: <T>(request: CellZomeCallRequest, timeout?: number) => Promise<T>;
cell_id: import("@holochain/client").CellId;
clone_id: RoleName;
original_dna_hash: import("@holochain/client").DnaHash;
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 |
AppWebsocket |
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: RoleName; original_dna_hash: import("@holochain/client").DnaHash; 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.