# NFT Module Commands

# Create NFT Table

# Usage

Usage: miyabi-cli sendtransaction createnfttable [Options] [-- InnerCommand [InnerCommand Options] <arg(s)>]

Options:
--help                 Show help information
-o|--owner <address>   Table owner's address
--trusted <addresses>  Trusted addresses
-p|--privatekey <key>  Private key of table admin
-t|--table <name>      Table name
--proofs               Turn on proof
--track                Track the history

# Functionality

Transaction subcommand that will create an NFT table. -o, -p, and -t are required.

# Example

$ ./miyabi-cli.exe sendtransaction createnfttable -o 0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 -p 10425b7e6ebf5e0d5918717f77ce8a66aaf92bc64b65996f885ff12bd94ef529 -t NFT_Test
3432ca7320e572276fdc8c14cbc3909578a9768cf783e3d6b32479d65aac5f98

# Get NFT Table

# Usage

Usage: miyabi-cli getnfttable [Options]

Options:
--help                 Show help information
-t|--table <name>      Table name

# Functionality

Command that will get all records from an NFT table specified by t .t is required.

# Example

$ ./miyabi-cli.exe getnfttable -t NFT_Test
{"2185":"0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","382":"0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"}

# Generate NFT

# Usage

Usage: miyabi-cli sendtransaction generatenft [Options] [-- InnerCommand [InnerCommand Options] <arg(s)>]

Options:
--help                  Show help information
-p|--privatekey <key>   Private key of table owner
-t|--table <name>       NFT table name
-a|--address <address>  Address to generate token for
-i|--tokenid <tokenId>  Token id to generate
--memo <string>         Memo text for the operation

# Functionality

Transaction subcommand that will generate NFT of id -i for specific address specified by -a. -a, -p, -i, and -t are required.

# Example

$ ./miyabi-cli.exe sendtransaction generatenft -p 01 -a 0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 -i 382 -t NFT_Test --memo "test NFT"
20c82178c7a45b648704c54b58108a1d266299bca20470b5bbeeec008bc55d84

# Move NFT

# Usage

Usage: miyabi-cli sendtransaction movenft [Options] [-- InnerCommand [InnerCommand Options] <arg(s)>]

Options:
--help                  Show help information
-p|--privatekey <key>   Private key of signer(trusted address/owner)
--to <address>          To address
-t|--table <name>       NFT table name
-i|--tokenid <tokenid>  Token id to move
--memo <string>         Memo text for the operation

# Functionality

Transaction subcommand that will update nft's owner to address --to. --to, -p, -i, and -t are required.

# Example

$ ./miyabi-cli.exe sendtransaction movenft -p 01 --to 03a9914fa341da4357ae0db2d19eb6377d4956f0c3284946fff932313be925444b -i 382 -t NFT_Test --memo "test NFT"
c362e9bbfb4f5480815cca860c2cb45d89afbed1208656cebabe3101086097f0

# Get Owner of NFT

# Usage

Usage: miyabi-cli getnftowner [Options]

Options:
--help                  Show help information
-t|--table <name>       NFT table name
-i|--tokenid <tokenId>  Token id

# Functionality

Online general reference command that will return the owner of specified NFT. -iand -t are required.

# Example

$ ./miyabi-cli.exe getnftowner -t NFT_Test -i 382
03a9914fa341da4357ae0db2d19eb6377d4956f0c3284946fff932313be925444b

# Get Balance of NFT

# Usage

Usage: miyabi-cli getnftbalanceof [Options]

Options:
--help                              Show help information
-t|--table <name>                   NFT table name
-a <address>|--address <address>    Address to check the balance

# Functionality

Online command that will return the balance(Total number of tokens) for a given address a in a table t.t and a are required.

# Example

$ ./miyabi-cli.exe getnftbalanceof -t NFT_Test -a 0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798
Balance: 2