ElementsProject / ElementsProject/elements

How to create pset with issuance

Open
#1,091 4 comments 0 reactions 0 assignees View on GitHub
GUI
Dominant language
C++
Stars
1.2k
Forks
416
Avg merge
1d 23h
Merged PRs (30d)
15

Description

Hello,

I'm trying to use the CLI to create a pset (v2 format) in order to issue a new asset. For simplicity, I'm going for a fully unblinded pset. These are my steps:

```
$ e1 sendtoaddress ${issuer_unconf_addr_1} 1
$ e1 generatetoaddress 1 $(e1 getnewaddress)

# fund the issuer and retrie ${issuer_utxp_txid} and ${issuer_utxo_vout}

$ e1 calculateasset ${issuer_utxo_txid} ${issuer_utxo_vout} 0000000000000000000000000000000000000000000000000000000000000000 false

# retrieve ${issued_asset} and ${issued_token}

$ e1 walletcreatefundedpsbt '[{"txid": "${issuer_utxo_txid}", "vout": ${issuer_utxo_vout}, "asset_entropy": "0000000000000000000000000000000000000000000000000000000000000000", "issuance_amount": 1000, "issuance_tokens": 1, "blind_reissuance": false}]' '[{"${issuer_unconf_addr_1}": 0.00001, "asset": "${issued_asset}"}, {"${issuer_unconf_addr_2}": 0.00000001, "asset": "${issued_token}"}]'
```

This always produces the error:

```
error code: -4
error message:
Insufficient funds
```

Can someone help me figuring out what's wrong with this?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.