Error


/home/rpc/rpc/views/transaction.pug:29
    27| 
    28| 		- var totalInputValue = new Decimal(0);
  > 29| 		if (result.getrawtransaction.vin[0].coinbase)
    30| 			- totalInputValue = totalInputValue.plus(new Decimal(coinConfig.blockRewardFunction(result.getblock.height)));
    31| 		each txInput, txInputIndex in result.txInputs
    32| 			if (txInput)

Cannot read property 'coinbase' of undefined

TypeError: /home/rpc/rpc/views/transaction.pug:29
    27| 
    28| 		- var totalInputValue = new Decimal(0);
  > 29| 		if (result.getrawtransaction.vin[0].coinbase)
    30| 			- totalInputValue = totalInputValue.plus(new Decimal(coinConfig.blockRewardFunction(result.getblock.height)));
    31| 		each txInput, txInputIndex in result.txInputs
    32| 			if (txInput)

Cannot read property 'coinbase' of undefined
    at eval (eval at wrap (/home/rpc/rpc/node_modules/pug-runtime/wrap.js:6:10), <anonymous>:713:38)
    at template (eval at wrap (/home/rpc/rpc/node_modules/pug-runtime/wrap.js:6:10), <anonymous>:3391:72)
    at Object.exports.renderFile (/home/rpc/rpc/node_modules/pug/lib/index.js:427:38)
    at Object.exports.renderFile (/home/rpc/rpc/node_modules/pug/lib/index.js:417:21)
    at exports.__express (/home/rpc/rpc/node_modules/pug/lib/index.js:464:11)
    at View.app.engine (/home/rpc/rpc/app.js:62:23)
    at View.render (/home/rpc/rpc/node_modules/express/lib/view.js:135:8)
    at tryRender (/home/rpc/rpc/node_modules/express/lib/application.js:640:10)
    at Function.render (/home/rpc/rpc/node_modules/express/lib/application.js:592:3)
    at ServerResponse.render (/home/rpc/rpc/node_modules/express/lib/response.js:1008:7)
    at /home/rpc/rpc/routes/baseActionsRouter.js:560:9
    at process._tickCallback (internal/process/next_tick.js:68:7)