This README file provides information about the Express-Oumla application, a Node.js application utilizing Express and the Oumla SDK for managing cryptocurrency profiles, wallets, and transactions.
The Express-Oumla application is designed to interact with the Oumla API, allowing users to perform various cryptocurrency operations like creating profiles, wallets, generating addresses, and viewing transactions. It's structured as an Express.js application and leverages the Oumla SDK to facilitate these operations.
Before running this application, ensure you have the following installed:
- Node.js
- npm (Node Package Manager)
To set up the Express-Oumla application on your local machine, follow these steps:
-
Clone the Repository:
git clone https://github.com/BDR-Pro/Make-My-Chain
-
Navigate to the Directory:
cd /Make-My-Chain
-
Install Dependencies:
npm install
-
Environment Variables:
- Change the name of
template.env
to.env
file in the root directory. - Edit the following variable:
Oumla_API_KEY=your_oumla_api_key
- Change the name of
To run the application, execute the following command in the terminal:
npm start
The server will start, and you should see a message indicating that it's listening on the specified port.
The application provides several endpoints:
-
Home (
/
):- Method: GET
- Description: Provides instruction to use the
/status
endpoint.
-
Status (
/status
):- Method: GET
- Description: Returns the status of the server.
-
Create Profile (
/create-profile
):- Method: GET
- Query Parameters:
type
,reference
- Description: Creates a new user profile.
-
Get Wallets (
/get-wallets
):- Method: GET
- Query Parameters:
network
,reference
- Description: Retrieves wallets associated with a reference.
-
Get Transactions (
/get-transactions
):- Method: GET
- Query Parameters:
reference
- Description: Retrieves transactions for a given reference.
-
Create Wallet (
/createWallet
):- Method: GET
- Query Parameters:
network
,reference
- Description: Generates a new wallet.
-
Generate Address (
/generateAddress
):- Method: GET
- Query Parameters:
network
,reference
- Description: Generates a new address.
-
Get Address (
/getAddress
):- Method: GET
- Query Parameters:
reference
- Description: Retrieves addresses associated with a reference.
The application includes basic error handling for missing parameters and unsuccessful requests.
Contributions to the Express-Oumla application are welcome. Please follow the standard GitHub pull request process to propose changes.
MIT License