2020-02-26 12:42:04 +00:00
|
|
|
package result
|
|
|
|
|
2020-03-03 14:21:42 +00:00
|
|
|
import "github.com/nspcc-dev/neo-go/pkg/util"
|
2020-02-26 12:42:04 +00:00
|
|
|
|
|
|
|
// ClaimableInfo is a result of a getclaimable RPC call.
|
|
|
|
type ClaimableInfo struct {
|
|
|
|
Spents []Claimable `json:"claimable"`
|
|
|
|
Address string `json:"address"`
|
|
|
|
Unclaimed util.Fixed8 `json:"unclaimed"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// Claimable represents spent outputs which can be claimed.
|
|
|
|
type Claimable struct {
|
|
|
|
Tx util.Uint256 `json:"txid"`
|
|
|
|
N int `json:"n"`
|
|
|
|
Value util.Fixed8 `json:"value"`
|
|
|
|
StartHeight uint32 `json:"start_height"`
|
|
|
|
EndHeight uint32 `json:"end_height"`
|
|
|
|
Generated util.Fixed8 `json:"generated"`
|
|
|
|
SysFee util.Fixed8 `json:"sys_fee"`
|
|
|
|
Unclaimed util.Fixed8 `json:"unclaimed"`
|
|
|
|
}
|