|
|
|
@ -22,6 +22,8 @@ type RPCTransaction struct { |
|
|
|
|
To *common.Address `json:"to"` |
|
|
|
|
TransactionIndex hexutil.Uint `json:"transactionIndex"` |
|
|
|
|
Value *hexutil.Big `json:"value"` |
|
|
|
|
FromShardID uint32 `json:"fromShardID"` |
|
|
|
|
ToShardID uint32 `json:"toShardID"` |
|
|
|
|
V *hexutil.Big `json:"v"` |
|
|
|
|
R *hexutil.Big `json:"r"` |
|
|
|
|
S *hexutil.Big `json:"s"` |
|
|
|
@ -46,6 +48,8 @@ func newRPCTransaction(tx *types.Transaction, blockHash common.Hash, blockNumber |
|
|
|
|
Nonce: hexutil.Uint64(tx.Nonce()), |
|
|
|
|
To: tx.To(), |
|
|
|
|
Value: (*hexutil.Big)(tx.Value()), |
|
|
|
|
FromShardID: tx.ShardID(), |
|
|
|
|
ToShardID: tx.ToShardID(), |
|
|
|
|
V: (*hexutil.Big)(v), |
|
|
|
|
R: (*hexutil.Big)(r), |
|
|
|
|
S: (*hexutil.Big)(s), |
|
|
|
|