issueasset (0.18.1.8 RPC)

issueasset assetamount tokenamount ( blind )

Create an asset. Must have funds in wallet to do so. Returns asset hex id.
For more fine-grained control such as non-empty contract-hashes to commit
to an issuance policy, see `rawissueasset` RPC call.

Arguments:
1. assetamount    (numeric or string, required) Amount of asset to generate. Note that the amount is BTC-like, with 8 decimal places.
2. tokenamount    (numeric or string, required) Amount of reissuance tokens to generate. Note that the amount is BTC-like, with 8 decimal places. These will allow you to reissue the asset if in wallet using `reissueasset`. These tokens are not consumed during reissuance.
3. blind          (boolean, optional, default=true) Whether to blind the issuances.

Result:
{                        (json object)
  "txid":"<txid>",   (string) Transaction id for issuance.
  "vin":"n",         (numeric) The input position of the issuance in the transaction.
  "entropy":"<entropy>", (string) Entropy of the asset type.
  "asset":"<asset>", (string) Asset type for issuance.
  "token":"<token>", (string) Token type for issuance.
}

Examples:
> elements-cli issueasset 10 0
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "issueasset", "params": [10, 0] }' -H 'content-type: text/plain;' http://127.0.0.1:7041/