Development
...
Querying Data from Blockchain
Call non-implemented query function
1 min
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 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 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 all available 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 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