nvm
.
See Installing and Updating in the nvm
README for instructions on how to install nvm
.Once nvm
has been installed, you can install and use the latest versions of Node.js and npm by running the following commands:index.js
contains the code to perform your first transfer with the CDP SDK. Let’s break down the content of this file.base-mainnet
you can trade between different assets from your wallet. Since trading is only supported on mainnet wallets, wallet should be funded with real assets before trading. The code below creates a wallet and trades some ETH to USDC and then all of the USDC to WETH:
trade.js
for a complete example of trading assets.