Transfer ERC-20 tokens to users in your application. This endpoint (previously known as “Credit”) enables you to reward users with ERC-20 tokens for their actions or achievements. The endpoint returns an unsigned transaction that needs to be signed using your application’s private key (stored securely in server environment variables). After signing, you can broadcast the transaction using either:
Important Notes:
Default Behavior: By default, this endpoint transfers existing ERC-20 tokens from the transaction sender’s account to the receiver’s account through the Application contract specified in the app_id parameter.
Required Setup: Before using this endpoint, you must create an allowance for the Application contract to transfer the required amount of tokens. This can be done using the approve endpoint.
Minting Option: If you want to mint new tokens instead of transferring existing ones, set the optional parameter mint to true.
Blockchain network to use
1 - 255"arbitrum-sepolia"
Action Id
1 - 32"dragon_slayed"
Ethereum addres of the receiver
"0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266"
Ethereum address of the application
"0x9716fb655f2a72b1fc1b4db02b8ad20b6747442a"
Ethereum address of the Credit token
"0xd1f09c70f6f2838a3ab6209c1465af68594667ec"
Amount of tokens to reward
x > 0123
Whether to mint the Credit tokens instead of doing a transfer
false