# tsHooks

There are several tsHooks currently being developed. \
&#x20;\
Install the below package in your root directory to be able to acccess TS Hooks&#x20;

```bash
npm i use-essential-pint
```

Starting using the hooks in any TS/JS Projects<br>

```typescript
import usePint from "use-essential-pint";
```

```typescript
const data = usePint(builderEndPointApi : String, solutionJson : JSON)
```

Import the hooks from the npm package\
\
`usePint()` - It runs the solution for the respective builder api endpoints and takes in two input \
&#x20; \- `builderApiEndpoint` - Smart Contract Api Endpoint\
&#x20; \- `SolutionJson` - You solution in JSON format\
\
And it returns an object with the output data and error handling variables\
\
`{`\
`"data" : "F6C5D3455C41801BC6E82901E9142DB068E17569AD15953C8C402072B8E70FAB",`\
`"isError" : "...",`\
`"isPending" : "..."`\
`}`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://pints-organization.gitbook.io/ts-docs.essential.builder/getting-started/tshooks.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
