diff --git a/rpc/javascript.go b/rpc/javascript.go index c4fa80c0b1..211a6644ed 100644 --- a/rpc/javascript.go +++ b/rpc/javascript.go @@ -250,7 +250,15 @@ web3._extend({ [ new web3._extend.Property({ name: 'pendingTransactions', - getter: 'eth_pendingTransactions' + getter: 'eth_pendingTransactions', + outputFormatter: function(txs) { + var formatted = []; + for (var i = 0; i < txs.length; i++) { + formatted.push(web3._extend.formatters.outputTransactionFormatter(txs[i])); + formatted[i].blockHash = null; + } + return formatted; + } }) ] });