<p>I use <code>cabal</code> exclusively. You can include <code>cardano-node</code> as a dependency in the top level <code>cabal.project</code> file using something like <a href="https://github.com/input-output-hk/cardano-db-sync/blob/master/cabal.project#L159-L171" rel="nofollow noreferrer">what db-sync does</a>. This may require that you add some of the other <code>source-repository-package</code> s that <code>db-sync</code> uses.</p>
<blockquote>
<p>Alternatively, is there a web wrapper around cardano-node? (That would allow me to create transactions, submit, query utxos, etc..)</p>
</blockquote>
<p>That sounds like part of the feature set of <code>cardano-db-sync</code> and the rest seems to be <code>cardano-tx-submit-api</code>.</p>

CC BY-SA 4.0
2022-07-26T02:03:11.413Z
2022-07-26T02:24:45.563Z
2022-07-26T02:24:45.563Z
Erik de Castro Lopo
<p>Is there a way to include cardano-node as a dependency in my project? (Stack dependency or cabal dependency). I tried and it keeps failing because not all dependencies can be built. Maybe I need to include it as a Nix dependency, using a Nix project?</p>
<p>I am trying to write code that can make use of some features of cardano-cli and cardano-node without having to be using files.</p>
<p>Alternatively, is there a web wrapper around cardano-node? (That would allow me to create transactions, submit, query utxos, etc..)</p>

<cardano-cli><cardano-node>
Cardano-node over HTTP? Or as stack/cabal dependency?
# Cardano-node over HTTP? Or as stack/cabal dependency?

(Asked by: username_0 on 2022-07-26)

Is there a way to include cardano-node as a dependency in my project? (Stack dependency or cabal dependency). I tried and it keeps failing because not all dependencies can be built. Maybe I need to include it as a Nix dependency, using a Nix project?

I am trying to write code that can make use of some features of cardano-cli and cardano-node without having to be using files.

Alternatively, is there a web wrapper around cardano-node? (That would allow me to create transactions, submit, query utxos, etc..)

**Tags:** cardano-cli, cardano-node

---

## 1 answers

### Answer by username_1 on 2022-07-26. Score: 2 | Accepted answer

I use `cabal` exclusively. You can include `cardano-node` as a dependency in the top level `cabal.project` file using something like [what db-sync does](https://github.com/input-output-hk/cardano-db-sync/blob/master/cabal.project#L159-L171). This may require that you add some of the other `source-repository-package` s that `db-sync` uses.

> Alternatively, is there a web wrapper around cardano-node? (That would allow me to create transactions, submit, query utxos, etc..)

That sounds like part of the feature set of `cardano-db-sync` and the rest seems to be `cardano-tx-submit-api`.


---

