Decode the operations in a MetaUpdatePayload from CBOR into typed operations.
the payload with decoded operations.
const parsed = parseMetaUpdatePayload(encodedPayload);parsed.operations.forEach(op => { switch (true) { case MetaUpdateOperationType.Transfer in op: console.log(op[MetaUpdateOperationType.Transfer].amount); break; default: console.warn('Unknown operation', op); }});
the MetaUpdate payload to parse.
Generated using TypeDoc
Decode the operations in a MetaUpdatePayload from CBOR into typed operations.
Returns
the payload with decoded operations.
Example