lib/transaction.js
function() {
        return {
            chainID: this.chainID,
            from: this.from.getAddressString(),
            to: this.to.getAddressString(),
            value: utils.isBigNumber(this.value) ? this.value.toNumber() : this.value,
            nonce: this.nonce,
            gasPrice: utils.isBigNumber(this.gasPrice) ? this.gasPrice.toNumber() : this.gasPrice,
            gasLimit: utils.isBigNumber(this.gasLimit) ? this.gasLimit.toNumber() : this.gasLimit,
            contract: this.contract
        };
    }
function() {
        return {
            chainID: this.chainID,
            from: this.from.getAddressString(),
            to: this.to.getAddressString(),
            value: utils.isBigNumber(this.value) ? this.value.toNumber() : this.value,
            nonce: this.nonce,
            gasPrice: utils.isBigNumber(this.gasPrice) ? this.gasPrice.toNumber() : this.gasPrice,
            gasLimit: utils.isBigNumber(this.gasLimit) ? this.gasLimit.toNumber() : this.gasLimit,
            contract: this.contract
        };
    }
function ( ) { return { chainID : this . chainID , from : this . from . getAddressString ( ) , to : this . to . getAddressString ( ) , value : utils . isBigNumber ( this . value ) ? this . value . toNumber ( ) : this . value , nonce : this . nonce , gasPrice : utils . isBigNumber ( this . gasPrice ) ? this . gasPrice . toNumber ( ) : this . gasPrice , gasLimit : utils . isBigNumber ( this . gasLimit ) ? this . gasLimit . toNumber ( ) : this . gasLimit , contract : this . contract } ; }
Conver transaction data to plain JavaScript object.

@return {Object} Plain JavaScript object with Transaction fields.
@example
var acc = Account.NewAccount();
var tx = new Transaction({
chainID: 1,
from: acc,
to: "n1SAeQRVn33bamxN4ehWUT7JGdxipwn8b17",
value: 10,
nonce: 12,
gasPrice: 1000000,
gasLimit: 2000000
});
txData = tx.toPlainObject();
// {chainID: 1001, from: "n1USdDKeZXQYubA44W2ZVUdW1cjiJuqswxp", to: "n1SAeQRVn33bamxN4ehWUT7JGdxipwn8b17", value: 1000000000000000000, nonce: 1, …}
Conver transaction data to plain JavaScript object .