This forum is a read-only archive. Posting, replying and signing in are disabled.

How to identify type of global state delta in app call txn

humblefool

Look at “Application Global State Delta” in the below transaction:
https://testnet.algoexplorer.io/tx/WVETVCUNKZQL546CIRLDAAFMUR4DAEWTCOGNN2OJWFUMUP5YTOHQ

This is what we get in txn json object for global state delta:

export interface A_GlobalStateDelta {
    key: string
    value: {
        bytes: string
        action: number
        uint: number
    }
}

This doesn’t have “type” in the value object.
Also, what is the significance of “action” in the value?

✔ Solved by Ben in post #2
Ben

The types are described here for action

and here for teal type