Transfer Tokens Between Wallets
To transfer ERC-20 tokens between wallets, send a POST request to the /wallet/erc20/token
endpoint, calling the :transfer
method.
Transfer tokens between wallets
POST
https://api.playfix.io/wallet/erc20/tokens:transfer
Headers
Authorization*
String
Bearer <your_access_token>
Request Body
wallet*
String
Name of the sender's wallet. This should be the value of name
from a previously created wallet. It begins with wallets/
followed by a ULID.
receiverAddress*
String
Wallet address of the destination where you want to send the token. This begins with "0x...
"
contractAddress*
String
Contract address of the ERC-20 token you want to transfer. You can get this by reading the details of the token.
amount*
Integer
Amount of the ERC-20 token you want to transfer. The amount must be expressed in WEI. That is, to send 1 unit of a token, express it as 10¹⁸ (1000000000000000000).
password*
String
The 32-character long password to the sender's wallet. This should be the password entered when creating the wallet.
Example cURL API Call
Example Python API Call
Request Body
wallet
- Name of the sender's wallet. This should be the value ofname
from a previously created wallet. It begins with "wallets/
" followed by a ULID.receiverAddress
- Wallet address of the destination where you want to send the token. This begins with "0x...
"amount
- Amount of the ERC-20 token you want to transfer. The amount must be expressed in WEI. That is, to send 1 unit of a token, express it as 10¹⁸ (1000000000000000000).contractAddress
- Contract address of the ERC-20 token you want to transfer. You can get this by reading the details of the token.password
- The 32-character long password to the sender's wallet. This should be the password entered when creating the wallet.
WEI is the smallest denomination of the ether, the native Ethereum currency.
1 ether = 10¹⁸ wei
Response
Response Field
transactionHash
- Transaction hash of the token transfer.
Note: You can only transfer tokens between wallets that are on the same network.
Last updated