Sending and Receiving $

Last updated 3 months ago

You will need to send $tokens to the wallet in order to use it.

The end user should pay you in USD and you should send the equivalent amount to the user's wallet address.

To get the user's wallet address:

app.js
let wallet = getWallet('user_id')
let getWallet = (address) => {
// GET to https://api.middleman.cx/wallets/address/:addr
// Use the X-Auth-Key HTTP header for authentication
}
console.log(wallet.address)