tx · 63aELHduu8rY8qbp9WZpbAXDMMwYVRggr9g4gYWwPS3b
3MxVYj6ScMArhAamy7nB6b342kh1Pso1LTn: -0.00900000 Waves
2023.03.20 19:37 [2498580] invoke 3MxVYj6ScMArhAamy7nB6b342kh1Pso1LTn > 3MxVYj6ScMArhAamy7nB6b342kh1Pso1LTn setString()
3MxVYj6ScMArhAamy7nB6b342kh1Pso1LTn: baseURI: "@Callable(i) func mint(to: String, tokenURI: String) = { let tokenId = totalAmount + 1 let preName = symbol+"#"+toString(tokenId) let name = if (preName.size() <= 16) then preName else toString(tokenId) let json = invoke(dAppJson, "makeJSON", [["tokenURI"], [tokenURI]], []).exactAs[String] let asset = Issue(name, json, 1, 0, false, unit, height) let assetId = calculateAssetId(asset) let toAddress = Address(fromBase58String(to)) strict transfer = transferOrNot(toAddress, assetId) [ asset, transfer, IntegerEntry("totalAmount", tokenId), StringEntry(name, tokenURI) ] }"
{
"type": 16,
"id": "63aELHduu8rY8qbp9WZpbAXDMMwYVRggr9g4gYWwPS3b",
"fee": 900000,
"feeAssetId": null,
"timestamp": 1679330285907,
"version": 2,
"chainId": 84,
"sender": "3MxVYj6ScMArhAamy7nB6b342kh1Pso1LTn",
"senderPublicKey": "CZeucjRLCKrkiP9zuj9KbLe23Wv9DywFzHBqNDnte51B",
"proofs": [
"3ui41kPfxAd3WAskbkCdiF5tLczNabtEzAPg5MHrRdn6bUZ9QFZkumNZQaBk4zB8oxGEk4JaTS72313YXjKFmwBh"
],
"dApp": "3MxVYj6ScMArhAamy7nB6b342kh1Pso1LTn",
"payment": [],
"call": {
"function": "setString",
"args": [
{
"type": "string",
"value": "baseURI"
},
{
"type": "string",
"value": "@Callable(i) func mint(to: String, tokenURI: String) = { let tokenId = totalAmount + 1 let preName = symbol+"#"+toString(tokenId) let name = if (preName.size() <= 16) then preName else toString(tokenId) let json = invoke(dAppJson, "makeJSON", [["tokenURI"], [tokenURI]], []).exactAs[String] let asset = Issue(name, json, 1, 0, false, unit, height) let assetId = calculateAssetId(asset) let toAddress = Address(fromBase58String(to)) strict transfer = transferOrNot(toAddress, assetId) [ asset, transfer, IntegerEntry("totalAmount", tokenId), StringEntry(name, tokenURI) ] }"
}
]
},
"height": 2498580,
"applicationStatus": "succeeded",
"spentComplexity": 2,
"stateChanges": {
"data": [
{
"key": "baseURI",
"type": "string",
"value": "@Callable(i) func mint(to: String, tokenURI: String) = { let tokenId = totalAmount + 1 let preName = symbol+"#"+toString(tokenId) let name = if (preName.size() <= 16) then preName else toString(tokenId) let json = invoke(dAppJson, "makeJSON", [["tokenURI"], [tokenURI]], []).exactAs[String] let asset = Issue(name, json, 1, 0, false, unit, height) let assetId = calculateAssetId(asset) let toAddress = Address(fromBase58String(to)) strict transfer = transferOrNot(toAddress, assetId) [ asset, transfer, IntegerEntry("totalAmount", tokenId), StringEntry(name, tokenURI) ] }"
}
],
"transfers": [],
"issues": [],
"reissues": [],
"burns": [],
"sponsorFees": [],
"leases": [],
"leaseCancels": [],
"invokes": []
}
}