diff --git a/packages/api/src/utils.js b/packages/api/src/utils.js index 14953c4d1..f07c5a48c 100644 --- a/packages/api/src/utils.js +++ b/packages/api/src/utils.js @@ -83,7 +83,7 @@ const decodeStateTransition = async (client, base64) => { decoded.senderId = stateTransition.getIdentityId().toString() decoded.amount = parseInt(stateTransition.getAmount()) decoded.nonce = parseInt(stateTransition.getNonce()) - decoded.outputScript = stateTransition.getOutputScript().toString('hex') + decoded.outputScript = stateTransition.getOutputScript()?.toString('hex') ?? null decoded.coreFeePerByte = stateTransition.getCoreFeePerByte() break