You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 18, 2020. It is now read-only.
4041: Batch Import Addresses to 1.4.2 r=disassembler a=KtorZ
## Description
<!--- A brief description of this PR and the problem is trying to solve -->
Backporting cardano-foundation/cardano-wallet#259 to 1.4.2
## Linked issue
<!--- Put here the relevant issue from YouTrack -->
Co-authored-by: KtorZ <[email protected]>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+6
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,11 @@
1
1
# CHANGELOG
2
2
3
+
## Cardano SL 2.0.2
4
+
5
+
### Features
6
+
7
+
- Support for (unused) addresses batch import ([CO-448](https://iohk.myjetbrains.com/youtrack/issue/CO-448)[#4041](https://github.com/input-output-hk/cardano-sl/pull/4041))
When restoring a wallet, only the information available on the blockchain can
987
+
be retrieved. Some pieces of information aren't stored on
988
+
the blockchain and are only defined as _Metadata_ of the wallet backend. This
989
+
includes:
990
+
991
+
- The wallet's name
992
+
- The wallet's assurance level
993
+
- The wallet's spending password
994
+
- The wallet's unused addresses
995
+
996
+
Unused addresses are not recorded on the blockchain and, in the case of random
997
+
derivation, it is unlikely that the same addresses will be generated on two
998
+
different node instances. However, some API users may wish to preserve unused
999
+
addresses between different instances of the wallet backend.
1000
+
1001
+
To enable this, the wallet backend provides an endpoint ([`POST /api/v1/wallets/{{walletId}}/accounts/{{accountId}/addresses`](#tag/Addresses%2Fpaths%2F~1api~1v1~1wallets~1{walletId}~1accounts~1{accountId}~1addresses%2Fpost))
1002
+
to import a list of addresses into a given account. Note that this endpoint is
1003
+
quite lenient when it comes to errors: it tries to import all provided addresses
1004
+
one by one, and ignores any that can't be imported for whatever reason. The
1005
+
server will respond with the total number of successes and, if any, a list of
1006
+
addresses that failed to be imported. Trying to import an address that is already
0 commit comments