You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (request.fHelp || request.params.size() < 2 || request.params.size() > 3)
5716
+
if (request.fHelp || request.params.size() < 2 || request.params.size() > 4)
5717
5717
throwstd::runtime_error(
5718
5718
"issueasset assetamount tokenamount ( blind )\n"
5719
5719
"\nCreate an asset. Must have funds in wallet to do so. Returns asset hex id.\n"
5720
5720
"\nArguments:\n"
5721
5721
"1. \"assetamount\" (numeric or string, required) Amount of asset to generate.\n"
5722
5722
"2. \"tokenamount\" (numeric or string, required) Amount of reissuance tokens to generate. These will allow you to reissue the asset if in wallet using `reissueasset`. These tokens are not consumed during reissuance.\n"
5723
5723
"3. \"blind\" (bool, optional, default=true) Whether to blind the issuances.\n"
5724
+
"4. \"contract_hash\" (string, optional) 32-byte string to have asset id commit to.\n"
5724
5725
"\nResult:\n"
5725
5726
"{ (json object)\n"
5726
5727
"\"txid\":\"<txid>\", (string) Transaction id for issuance.\n"
5727
5728
"\"vin\":\"n\", (numeric) The input position of the issuance in the transaction.\n"
5728
5729
"\"entropy\":\"<entropy>\", (string) Entropy of the asset type.\n"
5729
5730
"\"asset\":\"<asset>\", (string) Asset type for issuance.\n"
5730
5731
"\"token\":\"<token>\", (string) Token type for issuance.\n"
5732
+
"\"contract_hash\":<hex> (string) If no `contract_hash` was given as an argument, this will be the SHA256 image of a newly generated public key from your wallet. Can be used to prove authorship of issuance after the fact.\n"