Interface TokenUpgradeTransaction

Token script upgrade transaction data. This is what gets sent to the network for consensus.

interface TokenUpgradeTransaction {
    newScript: {
        code: string;
        hooks: TokenHookType[];
        methods: TokenScriptMethod[];
    };
    tokenAddress: string;
    type: "tokenUpgrade";
    upgradeReason?: string;
}

Properties

newScript: {
    code: string;
    hooks: TokenHookType[];
    methods: TokenScriptMethod[];
}

New script definition

tokenAddress: string

Address of the token being upgraded

type

Transaction type identifier

upgradeReason?: string

Optional upgrade reason for audit trail