Skip to content

Add Server Based Payment Method #18

@jettblu

Description

@jettblu

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions