<p>You could try <a href="https://www.npmjs.com/package/@hyperionbt/helios" rel="nofollow noreferrer">Helios</a>.</p>
<p>Here is a guide to building transactions: <a href="https://www.hyperion-bt.org/Helios-Book/api/building/index.html" rel="nofollow noreferrer">https://www.hyperion-bt.org/Helios-Book/api/building/index.html</a></p>
<p>The following links will help you define a UTxO containing native assets:</p>
<ul>
<li><a href="https://www.hyperion-bt.org/Helios-Book/api/reference/utxo.html" rel="nofollow noreferrer">https://www.hyperion-bt.org/Helios-Book/api/reference/utxo.html</a></li>
<li><a href="https://www.hyperion-bt.org/Helios-Book/api/reference/txoutput.html" rel="nofollow noreferrer">https://www.hyperion-bt.org/Helios-Book/api/reference/txoutput.html</a></li>
<li><a href="https://www.hyperion-bt.org/Helios-Book/api/reference/value.html" rel="nofollow noreferrer">https://www.hyperion-bt.org/Helios-Book/api/reference/value.html</a></li>
<li><a href="https://www.hyperion-bt.org/Helios-Book/api/reference/assets.html" rel="nofollow noreferrer">https://www.hyperion-bt.org/Helios-Book/api/reference/assets.html</a></li>
<li><a href="https://www.hyperion-bt.org/Helios-Book/api/reference/mintingpolicyhash.html" rel="nofollow noreferrer">https://www.hyperion-bt.org/Helios-Book/api/reference/mintingpolicyhash.html</a></li>
</ul>
<p>If you're struggling with using ES imports, then you can try the following import style:</p>
<pre><code>import(&quot;/path/to/helios.js&quot;).then( helios=&gt;{
   const tx = new helios.Tx()
   
   ...
})
</code></pre>
<p>Note: Helios is more low-level than Lucid/Mesh because you need to take care of calling the Blockfrost API yourself.</p>

CC BY-SA 4.0
2022-12-05T06:00:09.947Z
Thanks! figured out how to import via mesh tho
AmirhN
CC BY-SA 4.0
2022-12-05T06:06:50.413Z
How did you end up doing it? (might be helpful for others who are struggling with the same issue)
Christian Schmitz
CC BY-SA 4.0
2022-12-05T05:55:47.923Z
2022-12-05T06:05:37.200Z
2022-12-05T06:05:37.200Z
Christian Schmitz
<p>Yes, you can use libraries like <a href="https://github.com/spacebudz/lucid/tree/main/src/examples" rel="nofollow noreferrer">lucid</a> &amp; <a href="https://mesh.martify.io/" rel="nofollow noreferrer">mesh</a>.</p>

CC BY-SA 4.0
2022-12-05T04:41:10.497Z
hey, thanks for suggesting these. i have already tried Mesh, but I was not really able to use it, because it was more like TS friendly (import style), and I was not able to import "type" in my node js backend, and I did not find any example for this in lucid. mesh's examples: https://mesh.martify.io/apis/transaction/basic
AmirhN
CC BY-SA 4.0
2022-12-05T05:19:52.740Z
Regarding _"import style"_, did you try [this](https://stackoverflow.com/a/45854500/20330802)?
Sourabh
CC BY-SA 4.0
2022-12-05T05:46:10.453Z
yeah, didn't work. can't really find a way to convert "import type { ... } from '...'" to require format
AmirhN
CC BY-SA 4.0
2022-12-05T06:00:33.503Z
this worked: const { AppWallet, BlockfrostProvider, Asset, Transaction } = require('@martifylabs/mesh');
AmirhN
CC BY-SA 4.0
2022-12-05T03:15:21.613Z
2022-12-05T03:15:21.613Z
Sourabh
<p>is there any library or proper guide to send custom/native tokens in NodeJS?
i don't want to run full node (cardano-node/cardano-wallet), just want to build and sign a transaction and submit it via Blockfrost's API?
want something like this: <a href="https://github.com/blockfrost/blockfrost-js/blob/fb9a55fee07927f8d7c8b0a5aa9efd2d3daf6c77/examples/simple-transaction/src/index.ts" rel="nofollow noreferrer">https://github.com/blockfrost/blockfrost-js/blob/fb9a55fee07927f8d7c8b0a5aa9efd2d3daf6c77/examples/simple-transaction/src/index.ts</a>
but with Native token option. thanks!
p.s: I want to do it in MAINNET if matters.</p>

<transaction><native-assets><blockfrost>
Send native tokens without running node
# Send native tokens without running node

(Asked by: username_0 on 2022-12-05)

is there any library or proper guide to send custom/native tokens in NodeJS?
i don't want to run full node (cardano-node/cardano-wallet), just want to build and sign a transaction and submit it via Blockfrost's API?
want something like this: <https://github.com/blockfrost/blockfrost-js/blob/fb9a55fee07927f8d7c8b0a5aa9efd2d3daf6c77/examples/simple-transaction/src/index.ts>
but with Native token option. thanks!
p.s: I want to do it in MAINNET if matters.

**Tags:** transaction, native-assets, blockfrost

---

## 2 answers

### Answer by username_2 on 2022-12-05. Score: 2 | Accepted answer

Yes, you can use libraries like [lucid](https://github.com/spacebudz/lucid/tree/main/src/examples) & [mesh](https://mesh.martify.io/).

> **Comments:**
> **username_0**: hey, thanks for suggesting these. i have already tried Mesh, but I was not really able to use it, because it was more like TS friendly (import style), and I was not able to import "type" in my node js backend, and I did not find any example for this in lucid. mesh's examples: https://mesh.martify.io/apis/transaction/basic  
> **username_2**: Regarding _"import style"_, did you try [this](https://stackoverflow.com/a/45854500/20330802)?  
> **username_0**: yeah, didn't work. can't really find a way to convert "import type { ... } from '...'" to require format  
> **username_0**: this worked: const { AppWallet, BlockfrostProvider, Asset, Transaction } = require('@martifylabs/mesh');  

---

### Answer by username_1 on 2022-12-05. Score: 2

You could try Helios.
Here is a guide to building transactions: https://www.hyperion-bt.org/Helios-Book/api/building/index.html
The following links will help you define a UTxO containing native assets:

https://www.hyperion-bt.org/Helios-Book/api/reference/utxo.html
https://www.hyperion-bt.org/Helios-Book/api/reference/txoutput.html
https://www.hyperion-bt.org/Helios-Book/api/reference/value.html
https://www.hyperion-bt.org/Helios-Book/api/reference/assets.html
https://www.hyperion-bt.org/Helios-Book/api/reference/mintingpolicyhash.html

If you're struggling with using ES imports, then you can try the following import style:
import("/path/to/helios.js").then( helios=>{
   const tx = new helios.Tx()
   
   ...
})

Note: Helios is more low-level than Lucid/Mesh because you need to take care of calling the Blockfrost API yourself.

> **Comments:**
> **username_0**: Thanks! figured out how to import via mesh tho  
> **username_1**: How did you end up doing it? (might be helpful for others who are struggling with the same issue)  

---

