ElementsProject / ElementsProject/elements

How to create pset with issuance

Aperta
#1,091 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub
GUI
Lingua principale
C++
Stelle
1.2k
Fork
416
Merge medio
1g 23h
PR unite (30g)
15

Descrizione

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?

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.