neo-go/pkg/rpc/wrappers/validate_address.go
Roman Khimov bfa2d54e16 rpc: move validateAddress() function from wrappers into server
It's a server implementation detail, it has nothing to do with the data format
itself. It also makes no sense exporing it.
2020-02-21 15:12:04 +03:00

9 lines
349 B
Go

package wrappers
// ValidateAddressResponse represents response to validate address call. Notice
// Address is an interface{} here because server echoes back whatever address
// value user has sent to it, even if it's not a string.
type ValidateAddressResponse struct {
Address interface{} `json:"address"`
IsValid bool `json:"isvalid"`
}