OSDN Git Service

list address return the key_index
authorpaladz <453256728@qq.com>
Wed, 5 Sep 2018 02:28:46 +0000 (10:28 +0800)
committerpaladz <453256728@qq.com>
Wed, 5 Sep 2018 02:28:46 +0000 (10:28 +0800)
api/accounts.go

index 4901c05..b84e25d 100644 (file)
@@ -87,7 +87,7 @@ type addressResp struct {
        Address        string `json:"address"`
        ControlProgram string `json:"control_program"`
        Change         bool   `json:"change"`
-       KeyIndex       uint64 `json:"-"`
+       KeyIndex       uint64 `json:"key_index"`
 }
 
 // SortByIndex implements sort.Interface for addressResp slices