这是Waves IDE的示例。
请让我知道如何转移此智能资产令牌。 m(__)m
match tx {case tx : TransferTransaction =>
let issuer = Address(base58'3MsZgp7XvTJV7TuqaZ46RJZuG2CtvcxYgC9')
isDefined(getInteger(issuer, toBase58String(tx.id)))
case m :SetAssetScriptTransaction | SetScriptTransaction =>true
case _ => false
}
我是发行人。我是否要在此Json和POST中添加一些内容?
分享签名链接↓
{
"version": 2,
"assetId": "GMpv7cLThamxe7sHh5n52zZFKcHqPU4GAmxGXTxwRA2A",
"amount": 100000,
"feeAssetId": "",
"fee": 500000,
"recipient": "3Muet8GgfyC6Xd1Qv7TNjqT2N4dUwmJPfXC",
"attachment": "",
"timestamp": 1554080004122,
"senderPublicKey": "9QYYVjZntWane75e8ZyoacJdtrfUhuCTSYctVTqxTnJM",
"proofs": ["SoFHDJY6SMUyY8a4t2ZiEFgdc8DRUCcBUNcqrPjfbjgvq7bg74TJKdBw8UHDunKpg9GhjSw7QRXh4VMhuNcPdjm"],
"type": 4
}
感谢您的阅读。
答案 0 :(得分:0)
现在,您可以发送先前生成的TX,并且 您可以立即播放
{-# STDLIB_VERSION 3 #-}
{-# CONTENT_TYPE EXPRESSION #-}
{-# SCRIPTTYPE ASSET #-}
match tx {
case tx : TransferTransaction =>
let issuer = Address(base58'3MsZgp7XvTJV7TuqaZ46RJZuG2CtvcxYgC9')
isDefined(getInteger(issuer, toBase58String(tx.id)))
case m : SetAssetScriptTransaction =>true
case => false
}
点击问题令牌后,您需要定义3个变量:"name": "your token name", "quantity":1000000, "description": "for testing"
,
之后,请按照上述步骤操作。
传输示例:
const tx = transfer({amount: 10, recipient: "recipient address"})
Datatx示例:
const DataTx = data({data: [{key: "transfer transaction id", value: 100}]})
broadcast(tx)
要找到转移交易ID,您只需在控制台中输入其名称(例如tx
)