Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Server Based Payment Method #18

Open
jettblu opened this issue Apr 6, 2023 · 0 comments
Open

Add Server Based Payment Method #18

jettblu opened this issue Apr 6, 2023 · 0 comments
Assignees

Comments

@jettblu
Copy link
Collaborator

jettblu commented Apr 6, 2023

Is your feature request related to a problem? Please describe.
This feature will eventually be used as part of a referral program, providing new users with a small amount of currency.

Describe the solution you'd like
Create a new function that sends a small amount of cryptocurrency to new users from the server.

A few helpful guidelines are listed below.

  • Set up a wallet that the server can access. This will require a new mnemonic seed, which can be stored as an environment variable.
  • Initiate a provider to broadcast the transaction.
  • Use these methods to build and send the transfer transaction.
  • The function should take three arguments: amount, recipient address, and currency ticker.
  • Throw an error if the currency type is not supported.
  • The payment will be made in the base network currency (e.g., eth, sol, etc.), not tokens. This simplifies development.

Keep in mind this function will only be called on the server.

@jettblu jettblu assigned jettblu and jj7302 and unassigned jettblu Apr 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants