Inscriber tool for easy Slimweb inscriptionsI've tested the inscriber tool in mainnet and now after a few fixes it seems to work OK.
It can be downloaded here:
https://github.com/d5000/acme-minitools (download the whole repository).
It uses the blocknotifybase script as a dependency; this is not ideal, but it was the easiest way to realize it
In the future it should work as a standalone tool and use the standard configuration file (slimcoin.conf) for the needed parameters.
What does this tool do?The inscriber tool provides an easy way to inscribe data on the blockchain via OP_RETURN transactions and gives you the ability to control the address from which the inscription is done.
This is important if you want to publish "Slimweb" websites and update them regularly, because in this case an address is the "identifier" of the website. As the current client doesn't allow coin control, currently you need to use workarounds.
NOTE: The Inscriber tool uses the Raw Transactions API. It is therefore a
potentially dangerous tool. You should
NEVER use it with your main wallet - in theory, a bug could "thrash" your coins. Try it out on testnet and then create a wallet with few coins to create inscriptions. As inscriptions cost only 0.02 SLM, with a few coins you'll be fine for a long time.
Basic Syntaxpython3 inscriber.py INSCRIPTION [ADDRESS]
INSCRIPTION being the data you want to inscribe (e.g. a magnet link or torrent hash)
ADDRESS being the address (it must be one of your wallet addresses and contain more than 0.02 SLM) from which you want to send the data inscription.
If you don't provide an address, you can select one from the available addresses in your wallet with at least one unspent output of more than 0.02 SLM.
The inscriber tool will select an output from your address and then do the inscription. It can use the "smalldata" format which is recognized by the client as a "message" (default) or the raw OP_RETURN format which provides 4 bytes more. Maximum length is 80 bytes in raw format and 76 bytes in Smalldata format.
Each inscription costs two fees:
- 0.01 minimum standard transaction fee
- 0.01 additional fee because each output must have at least an amount of 0.01 SLM. This fee is burnt, too. (In theory, it could be transferred to another address you own, but you won't be able to use that output normally unless the 0.01 minimum fee is lowered.)
The default behaviour is that the change coins are returned to the original address. If you want to transfer the change to a new address use the "-n" option.
Example transaction created by the Inscriber tool(More documentation - e.g. a simple howto to create and update a Slimweb site - to follow on the Wiki.)