YFD Contract Executes
Table of contents
Below I will describe the possible Execute messages that can be used on this YFD contract in both object and JSON formats.
Transfer:
Moves tokens into a recipients users wallet address
{
transfer: {
recipient: "Addr",
amount: "123123",
}
}
{
"transfer": {
"recipient": "Addr",
"amount": "123123",
}
}
Send:
Similar to transfer. Moves tokens to a smart contract instead of a user wallet. When processing a transaction, it triggers the given message in msg. The given message should be executable on its recipient contract. msg is a base64-encoded JSON string.
{
send: {
contract: "Addr",
amount: "123123",
msg: "1234erwfaffaesfaef="
}
}
{
"send": {
"contract": "Addr",
"amount": "123123",
"msg": "1234erwfaffaesfaef="
s}
}
Burn:
Removes tokens from the balance of the connected wallet
{
burn: {
amount: "123123"
}
}
{
"burn": {
"amount": "123123"
}
}