Easily interact with tokens on the SPACE blockchain.
git clone https://github.com/SpaceWorksCo/token-cli
cd ~/token-cli
# edit spacepath and spacecli if your location differs from spacecoin/src/spacecoin-cli
./token-cli method
Please note: anywhere you see token, it's looking for the tokenid (txid from the token creation). If you wish to use the abbreviation such as SWTT (SpaceWorks Test Token) you must add your token to the token list.
The address method returns information about a token address according to a specific pubkey. If no pubkey is provided, the pubkey used to launch the daemon is the default.
./token-cli address token [pubkey]
The ask method creates an ask order for the specified token.
./token-cli ask token numtokens price
The balance method checks the token balance according to a provided pubkey. If no pubkey is provided, the pubkey used to launch the daemon is the default.
./token-cli balance token [pubkey]
The bid method creates a bid order for the specified token.
./token-cli bid token numtokens price
The cancelask method cancels an existing ask order.
./token-cli cancelask token asktxid
The cancelbid method cancels an existing bid order.
./token-cli cancelbid token bidtxid
The create method creates a new token. For every token created, the method requires one satoshi of SPACE's coins. For example, 1 SPACE provides 100000000 tokens.
The returned txid is your tokenid.
./token-cli create name supply [description] [data]
The fillask method fills an open ask order.
./token-cli fillask token asktxid fillunits
The fillbid method fills an open bid order.
./token-cli fillbid token bidtxid fillunits
The info method reveals information about any token.
./token-cli info token
The list method lists all available tokens on the SPACE chain.
./token-cli list
The myorders method lists all of your token orders on the SPACE chain.
./token-cli myorders
The orders method shows the orders for a specified token.
./token-cli orders token
The transfer method sends tokens from one address to another.
./token-cli transfer token pubkey amount
token-cli is a work in progress and subject to change. Please use at your own risk.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
For details please refer to the license.