Use Cases
You can use WalletKit to submit your transactions from your backend, lambdas, workers, scripts, or webhook handlers. For example, if you want to make an on-chain transaction when an event occurs in your app, you can make a call to WalletKit to do so. Or let’s say you want to airdrop tokens when a user signs up, you can do that as well.Setup
Make sure you do the following first:- Setup your WalletKit account
- Buy some gas. You can do this from the dashboard. Have 0.01 MATIC available, although we’ll use a lot less.
- Get the Project ID and the API Secret from the API Keys page in the dashboard
Submit Transaction
As an example, let’s say we want to transfer 0.001 MATIC to0xe883Cd7ADfe55CD84798a8129468e106b32CDC7A
. The raw transaction for this is:
JSON
Shell