SendToken
Action ID: 0x02abc227
Helper action to send a token to the specified address
const sendTokenAction = new dfs.actions.basic.SendTokenAction(
tokenAddr,
to,
amount,
);
This is a DFS STANDARD_ACTION.
If amount is type(uint).max it will send proxy balance
Input:
/// @param tokenAddr Address of token, use 0xEeee... for eth
/// @param to Where the tokens are sent
/// @param amount Amount of tokens, can be type(uint).max
struct Params {
address tokenAddr;
address to;
uint256 amount;
}
Return value:
return bytes32(inputData.amount);
Events:
Last modified 10mo ago