Transfer ERC-20
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:
- Execute Transaction endpoint for immediate submission
- Execute Transaction and Wait endpoint if you need to wait for transaction confirmation
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_idparameter. -
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
minttotrue.
Documentation Index
Fetch the complete documentation index at: https://docs.openformat.tech/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Body
Blockchain network to use
1 - 255"arbitrum-sepolia"
Action Id
1 - 32"dragon_slayed"
Ethereum addres of the receiver
^(0x)?[0-9a-fA-F]{40}$"0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266"
Ethereum address of the application
^(0x)?[0-9a-fA-F]{40}$"0x9716fb655f2a72b1fc1b4db02b8ad20b6747442a"
Ethereum address of the Credit token
^(0x)?[0-9a-fA-F]{40}$"0xd1f09c70f6f2838a3ab6209c1465af68594667ec"
Amount of tokens to reward
x > 0123
Whether to mint the Credit tokens instead of doing a transfer
false