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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+30-1Lines changed: 30 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,34 @@
1
1
# Coinbase Node.js SDK Changelog
2
2
3
+
## Unreleased
4
+
5
+
## [0.1.0] - 2024-08-22
6
+
7
+
### Added
8
+
9
+
- Add `listHistoricalBalances` wallet method, that lists the historical balances for the wallet's default address.
10
+
- Add toAddressId() method to Transaction class
11
+
12
+
### Removed
13
+
14
+
- Remove user concept from the SDK
15
+
- Remove "pending" status from StakingOperationStatusEnum
16
+
- Add staking operation class helper methods like `isTerminalState`, `isFailedState` and `isCompleteState`.
17
+
- Add validator status enum
18
+
19
+
### Changed
20
+
21
+
- The `createTransfer` and `createTrade` functions no longer wait for the transactions to confirm or
22
+
fail on-chain.
23
+
- Now they return a `Transfer` and `Trade` object respectively, which support the `wait`
24
+
function, e.g. `await transfer.wait()`.
25
+
- This ensures that the developer has a reference to the object in case there is a timeout while
26
+
waiting to land on-chain.
27
+
- Update `reload()` method to work with both External and Wallet address.
28
+
- Update `createStakingOperation` logic to make sure we only pull in newer unsigned txs from the server.
29
+
This is especially important for External Address use-case where tx signing and broadcast status is maintained on client side, and we risk overwriting the existing txs.
30
+
- Increase default timeout for `createStakingOperation` to 10 min.
31
+
3
32
## [0.0.16] - 2024-08-14
4
33
5
34
### Added
@@ -8,7 +37,7 @@
8
37
- Support for retrieving historical staking balances information
9
38
- USD value conversion details to the StakingReward object
10
39
- Gasless USDC Sends
11
-
- Support for Etherum-Mainnet and Polygon-Mainnet
40
+
- Support for Ethereum-Mainnet and Polygon-Mainnet
Copy file name to clipboardExpand all lines: README.md
+20-16Lines changed: 20 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ nvm use node
42
42
43
43
Optional: Initialize the npm
44
44
45
-
This command initializes a new npm project with default settings and configures it to use ES modules by setting the type field to "module" in the package.json file.
45
+
This command initializes a new npm project with default settings and configures it to use ES modules by setting the type field to "module" in the package.json file.
To start, [create a CDP API Key](https://portal.cdp.coinbase.com/access/api). Then, initialize the Platform SDK by passing your API Key name and API Key's private key via the `Coinbase` constructor:
@@ -98,34 +98,38 @@ Another way to initialize the SDK is by sourcing the API key from the json file
0 commit comments