rest-api-examples

User-to-user transaction

This sample project demonstrates how to perform a transaction from one Uphold user to another, with the latter identified by their email address. For further background, please refer to the API documentation.

Summary

This sample project performs the following actions:

Requirements

Setup

Run

Run node index.js.

The code will locate a card with nonzero balance in the source account, and prepare a $1 USD transaction from that card to the account identified by the email in the .env file.

The result will depend on the status of the destination email: