CityOfZion / neon-wallet-db

Serves neo blockchain data to light wallets
28 stars 22 forks source link

Improving Transaction History Struct #1

Open saltyskip opened 7 years ago

saltyskip commented 7 years ago

Problem: Currently the transaction history struct is not well defined.

Without these data fields I have to manually query for each transaction again using an RPC command to get additional details

Solution: Remodel each entry in the struct to look like this

{ transactionHistory: [
    entry : {
        blockIndex: Int
        timestamp: Int
        transactionType: String
        assetID: String
        amount: Double
        senderAddress: String
        recieverAddress: String
        transactionID: String
    }]  
}

This allows for a more detailed history, and will be easier to use in light clients. Also I'm wondering how this will work once RPX token is introduced