mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-05 03:06:16 +00:00
rpc: implement client-side getunspents
This commit is contained in:
parent
29882b076c
commit
826a29cc98
3 changed files with 21 additions and 0 deletions
|
@ -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"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue