Skip to content

SqueezerIO/squeezer-2way-payment

Repository files navigation

Framework : squeezer.io

Documentation : docs.squeezer.io

  1. Install Squeezer's command line tool globally on your machine using npm: npm install squeezer-cli -g
  2. Create a new project using the squeezer-2way-payment template: sqz create --project my-first-project --template https://github.com/SqueezerIO/squeezer-2way-payment
  3. Switch to the project's directory: cd my-first-project
  4. Initialize the local directory as a Git repository: git init
  5. Add the files in your new local repository. This stages them for the first commit: git add .
  6. Open up GitHub in a browser, navigate to the repositories page, and click on the New button, and enter the name of your project that you've created locally, in our case it will be my-first-project, then create the new repository.
  7. In Terminal, add the URL for the remote repository where your local repository will be pushed: git remote add origin remote repository URL
  8. Commit the files that you've staged in your local repository: git commit -m "First commit"
  9. Push the master branch to GitHub: git push -u origin master
  10. Open up a new browser window and navigate to https://platform.squeezer.io, then login to the platform.
  11. Click on the import project button and import the project you've created from GitHub.
  12. In the first step of the import process, you have to select the repository from your list.
  13. In the second step of the import, you have to choose the provider and the stage name, dev or prod.
  14. After importing the project, the deployment will start automatically.
  15. When the deploy will be finished, we can check the logs by clicking on it.
  16. Scroll all the way down in the log window and copy the Swagger URL, then paste in a browser window.

/v1/itn/callback - here we will receive every transaction that is made in or out of our wallet in real time.

/v1/wallet/create - create a new wallet - Important! Save all the information you receive after a wallet creation (wallet address, walled id and token)

/v1/wallet/{id}/balance - get wallet balance

/v1/wallet/{id}/transactions - get a history of the transactions made on your wallet

/v1/wallet/sendTransaction - initiate a blockchain transaction to another address

/v1/wallet/types - get current available wallet types

This is our Squeezer 2-way payment decentralized app - we made it agnostic, so it can be adapted to absolutely any blockchain out there, make sure to test it out, and let us know what you think!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published