-
Notifications
You must be signed in to change notification settings - Fork 4
/
nameresults.go
26 lines (23 loc) · 947 Bytes
/
nameresults.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright (c) 2014 The btcsuite developers
// Copyright (c) 2019 The Namecoin developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
package ncbtcjson
// NameShowResult models the data from the name_show command.
type NameShowResult struct {
Name string `json:"name"`
NameEncoding Encoding `json:"name_encoding"`
NameError string `json:"name_error"`
Value string `json:"value"`
ValueEncoding Encoding `json:"value_encoding"`
ValueError string `json:"value_error"`
TxID string `json:"txid"`
Address string `json:"address"`
Vout uint32 `json:"vout"`
Height int32 `json:"height"`
ExpiresIn int32 `json:"expires_in"`
IsMine bool `json:"ismine"`
Expired bool `json:"expired"`
}
// NameScanResult models the data from the name_scan command.
type NameScanResult []NameShowResult