From 3b9d2357ca220f4f926ae05d033afe0601c9725c Mon Sep 17 00:00:00 2001 From: duggavo <> Date: Fri, 18 Aug 2023 09:32:16 +0200 Subject: [PATCH] Add Store method --- rpc/wallet/jsonrpc.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rpc/wallet/jsonrpc.go b/rpc/wallet/jsonrpc.go index 102e5b6..530002d 100644 --- a/rpc/wallet/jsonrpc.go +++ b/rpc/wallet/jsonrpc.go @@ -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 +}