---
title: Call non-implemented query function
slug: signum/call-non-implemented-query-function
createdAt: 2022-09-02T15:49:16.000Z
---

SignumJS wraps most functions in a very thin wrapper function to reduce code complexity as much as possible. But it may happen that a function supported by the Node HTTP API is not available in SignumJS yet. To not depend on ongoing development by the SignumJS maintainers one can use the leaky abstraction layer to run your query.&#x20;

Let's assume that the method `getAccount`  was not implemented. Then one can/need to use the internal `service`  instance and use the `query`  function. These functions mount the required HTTP requests as required by the Node HTTP API.

```javascript
import {LedgerClientFactory} from '@signumjs/core'

const ledger = LedgerClientFactory.createClient({
    nodeHost: "http://localhost:6876"
});

const account = await ledger.service.query('getAccount', {account: '2402520554221019656'})
```

This way it is possible to call <u>all</u> available [Node API Endpoints](https://europe.signum.network/api-doc) even if they are not directly supported by SignumJS. Just set the correct method name, and pass a JSON with the field names according to the API specification.&#x20;

### Tips

`ledger.service.query` allows you to make HTTP `GET` requests to Node API Endpoints

`ledger.service.send`allows you to make HTTP `POST` requests to Node API Endpoints
