seekia/internal/cryptocurrency/ethereumNode/ethereumNode.go

26 lines
786 B
Go
Raw Permalink Normal View History

// ethereumNode provides functions to access a local ethereum node
package ethereumNode
//TODO: Complete this package
// We should start by using go-ethereum as the node, and possibly add support for other node implementations later.
// We might need to use an indexer to access the information faster
// We need to be able to access all transactions to an address, when they were sent, and the amount in ETH of each transaction
// We should also include the fee paid so that users can get credit/score for the amount paid in fees
//Outputs:
// -bool: Able to get data from node
// -map[int64]int64: Map of Deposit time -> Amount deposited (in gwei or wei?)
// -error
func GetAddressDeposits(address string)(bool, map[string]string, error){
//TODO
return false, nil, nil
}