# Set Asset Script Transaction
Set Asset Script transaction replaces the asset script. Only the token issuer can send an Asset Script transaction. If a token is issued without a script, then no script can be assigned to it. It is also impossible to remove the script and turn the smart asset into a regular one.
# Fee
The minimum fee for a Set Asset script transaction is 1 WAVES.
If the transaction sender is a dApp or smart account, the minimum fee is increased by 0.004 WAVES.
Starting from node version 1.3.1, after activation of feature #16 “Ride V5, dApp-to-dApp invocations”, the extra fee of 0.004 WAVES is only required if the complexity of sender's account script or dApp script verifier function exceeds the sender complexity threshold. Versions 1.3.x are currently available for Stagenet only.
# JSON Representation
{
"senderPublicKey": "AwQYJRHZNd9bvF7C13uwnPiLQfTzvDFJe7DTUXxzrGQS",
"fee": 100000000,
"type": 15,
"version": 1,
"script": "base64:AQa3b8tH",
"sender": "3P67JUW8Djit7hMjKhADmn6CWvKPbRuh2sQ",
"feeAssetId": null,
"chainId": 87,
"proofs": [
"nzYhVKmRmd7BiFDDfrFVnY6Yo98xDGsKrBLWentF7ibe4P9cGWg4RtomHum2NEMBhuyZb5yjThcW7vsCLg7F8NQ"
],
"assetId": "7qJUQFxniMQx45wk12UdZwknEW9cDgvfoHuAvwDNVjYv",
"id": "FwYSpmVDbWQ2BA5NCBZ9z5GSjY39PSyfNZzBayDiMA88",
"timestamp": 1547201038106,
"height": 1346345
}
Field | Description |
---|---|
assetId | Token ID base58 encoded |
chainId | Chain ID |
script | Compiled asset script, up to 8192 bytes, base64 encoded |
The fields that are common to all types of transactions are described in the Transaction article.
# Binary Format
See the Set Asset Script Transaction Binary Format.
# Ride Structure
The SetAssetScriptTransaction structure is used for transaction handling in smart contracts.