Skip to content

Commit

Permalink
Add Store method
Browse files Browse the repository at this point in the history
  • Loading branch information
duggavo committed Aug 18, 2023
1 parent 378043d commit 3b9d235
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions rpc/wallet/jsonrpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,3 +165,11 @@ func (c *Client) RelayTx(ctx context.Context, hex string) (*RelayTxResult, error

return resp, nil
}

// Save the wallet file.
func (c *Client) Store(ctx context.Context) error {
if err := c.JSONRPC(ctx, "store", map[string]string{}, &struct{}{}); err != nil {
return fmt.Errorf("jsonrpc: %w", err)
}
return nil
}

0 comments on commit 3b9d235

Please sign in to comment.