rpc: implement client-side getunspents

This commit is contained in:
Roman Khimov 2019-11-19 20:15:32 +03:00
parent 29882b076c
commit 826a29cc98
3 changed files with 21 additions and 0 deletions

View file

@ -2,6 +2,7 @@ package rpc
import (
"github.com/CityOfZion/neo-go/pkg/core/transaction"
"github.com/CityOfZion/neo-go/pkg/rpc/wrappers"
"github.com/CityOfZion/neo-go/pkg/vm"
)
@ -27,6 +28,13 @@ type AccountStateResponse struct {
Result *Account `json:"result"`
}
// UnspentResponse represents server response to the `getunspents` command.
type UnspentResponse struct {
responseHeader
Error *Error `json:"error,omitempty"`
Result *wrappers.Unspents `json:"result,omitempty"`
}
// Account represents details about a NEO account.
type Account struct {
Version int `json:"version"`