You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
556 B
24 lines
556 B
5 years ago
|
package hmyclient
|
||
|
|
||
|
import (
|
||
|
"github.com/ethereum/go-ethereum/common"
|
||
|
"github.com/harmony-one/harmony/core/types"
|
||
|
)
|
||
|
|
||
|
type rpcBlock struct {
|
||
|
Hash common.Hash `json:"hash"`
|
||
|
Transactions []rpcTransaction `json:"transactions"`
|
||
|
UncleHashes []common.Hash `json:"uncles"`
|
||
|
}
|
||
|
|
||
|
type rpcTransaction struct {
|
||
|
tx *types.Transaction
|
||
|
txExtraInfo
|
||
|
}
|
||
|
|
||
|
type txExtraInfo struct {
|
||
|
BlockNumber *string `json:"blockNumber,omitempty"`
|
||
|
BlockHash *common.Hash `json:"blockHash,omitempty"`
|
||
|
From *common.Address `json:"from,omitempty"`
|
||
|
}
|