@textile/hub > Client > readTransaction
Client.readTransaction() method
readTransaction creates a new read-only transaction object. See ReadTransaction for details.
Signature:
readTransaction(threadID: ThreadID, collectionName: string): ReadTransaction;
Parameters
| Parameter | Type | Description | 
|---|---|---|
| threadID | ThreadID | the ID of the database | 
| collectionName | string | The human-readable name of the model to use. | 
Returns: