Token命令

Token命令

创建代币
createtoken
参数:
{
createaddress:
toekenaddress:
id:
name:
symbol:
totalamount:
digits:
}

发送代币
sendtoken TokenAddress fromAddress Toaddress TokenNumber [changeAddress]

锁代币
locktoken TokenAddress fromAddress Lockaddress TokenNumber LockTime [changeAddress]

查询代币详情
gettokeninfo [Tokenaddress1, Tokenaddress2]
结果:
[
{
createaddress:
tokenaddress:
id:
name:
symbol:
totalamount:
digits:
}
]

查询地址代币余额
gettokenbalance address [Tokenaddress1, Tokenaddress2]
结果:
[
{
toeknaddress:
locked-balance:
unlocked-balance:
}
]

通过地址获取token的交易hash
gettokentransactionid address [Tokenaddress1, Tokenaddress2]
结果:
[
{
toeknaddress:
txids:[
id1, id2
]
}
]

通过交易hash查询交易信息
gettokentransaction txid
结果:
[
tokenaddress:
fromaddress:
toaddresses:[
{
toaddress:
amount:
[lock-time:]
}
]
]

你可能感兴趣的:(Token命令)