SunswapV1215_V4 · Contract on Tron
Smart contract
UNVERIFIED · mainnet
{}
SunswapV1215_V4
Address TY3FMLWH7FWgtL5uSTLZ3jfdHkbzfnDSXG
Contract balance 0TRX on-chain
Total calls 0 lifetime triggers
Functions 20 9 read · 11 write
Bytecode 15.28Kbytes runtime
Deployed — unverified
Contract interface
ABI · 20 fns
contract.abi.json
[
{
"outputs": [
{
"type": "bool"
}
],
"inputs": [
{
"name": "_tokenAddr",
"type": "address"
},
{
"name": "_spender",
"type": "address"
},
{
"name": "_amount",
"type": "uint256"
}
],
"name": "_approve",
"stateMutability": "Nonpayable",
"type": "Function"
},
{
"inputs": [
{
"name": "addr",
"type": "address[]"
}
],
"name": "addToken",
"stateMutability": "Nonpayable",
"type": "Function"
},
{
"outputs": [
{
"type": "address"
},
{
"type": "address"
},
{
"type": "address"
},
{
"type": "address"
}
],
"constant": true,
"inputs": [
{
"name": "_id",
"type": "uint256"
}
],
"name": "getTByID",
"stateMutability": "View",
"type": "Function"
},
{
"inputs": [
{
"name": "addr",
"type": "address"
}
],
"name": "setOwner",
"stateMutability": "Nonpayable",
"type": "Function"
},
{
"outputs": [
{
"type": "uint256"
}
],
"constant": true,
"inputs": [
{
"name": "token",
"type": "address"
}
],
"name": "getIdByT",
"stateMutability": "View",
"type": "Function"
},
{
"inputs": [
{
"name": "toAddress",
"type": "address"
},
{
"name": "_amount",
"type": "uint256"
}
],
"name": "withdrawTo",
"stateMutability": "Nonpayable",
"type": "Function"
},
{
"outputs": [
{
"type": "bool"
}
],
"inputs": [
{
"name": "tokenAddr",
"type": "address"
},
{
"name": "fromAddr",
"type": "address"
},
{
"name": "toAddr",
"type": "address"
},
{
"name": "amount",
"type": "uint128"
}
],
"name": "_transferFrom",
"stateMutability": "Nonpayable",
"type": "Function"
},
{
"inputs": [
{
"name": "_amount",
"type": "uint256"
}
],
"name": "withdraw",
"stateMutability": "Nonpayable",
"type": "Function"
},
{
"outputs": [
{
"type": "uint256[]"
}
],
"inputs": [
{
"name": "_id",
"type": "uint256"
},
{
"name": "f",
"type": "bool"
},
{
"name": "trxValue",
"type": "uint256"
},
{
"name": "min_trx",
"type": "uint256"
}
],
"name": "swap12",
"stateMutability": "Nonpayable",
"type": "Function"
},
{
"outputs": [
{
"type": "uint256[]"
},
{
"type": "uint256[]"
}
],
"constant": true,
"inputs": [
{
"name": "_id",
"type": "uint256"
}
],
"name": "getB",
"stateMutability": "View",
"type": "Function"
},
{
"outputs": [
{
"type": "uint256"
}
],
"inputs": [
{
"name": "_id",
"type": "uint256"
},
{
"name": "f",
"type": "bool"
},
{
"name": "trxValue",
"type": "uint256"
},
{
"name": "min_trx",
"type": "uint256"
}
],
"name": "swap21",
"stateMutability": "Nonpayable",
"type": "Function"
},
{
"outputs": [
{
"type": "uint256"
},
{
"type": "uint256"
}
],
"constant": true,
"inputs": [
{
"name": "tokenA",
"type": "address"
},
{
"name": "tokenB",
"type": "address"
},
{
"name": "exAddr",
"type": "address"
}
],
"name": "getRes",
"stateMutability": "View",
"type": "Function"
},
{
"outputs": [
{
"type": "uint256[]"
},
{
"type": "uint256[]"
}
],
"constant": true,
"inputs": [
{
"name": "addr",
"type": "address"
}
],
"name": "getB",
"stateMutability": "View",
"type": "Function"
},
{
"inputs": [
{
"name": "addr",
"type": "address[]"
}
],
"name": "updateToken",
"stateMutability": "Nonpayable",
"type": "Function"
},
{
"outputs": [
{
"type": "uint256"
}
],
"inputs": [
{
"name": "_id",
"type": "uint256"
},
{
"name": "f",
"type": "bool"
},
{
"name": "trxValue",
"type": "uint256"
},
{
"name": "min_trx",
"type": "uint256"
}
],
"name": "trxToTrx",
"stateMutability": "Nonpayable",
"type": "Function"
},
{
"outputs": [
{
"type": "uint256"
}
],
"constant": true,
"name": "getCnts",
"stateMutability": "View",
"type": "Function"
},
{
"outputs": [
{
"type": "address"
},
{
"type": "address"
},
{
"type": "address"
},
{
"type": "address"
}
],
"constant": true,
"inputs": [
{
"name": "tokenAddr",
"type": "address"
}
],
"name": "getTByAddr",
"stateMutability": "View",
"type": "Function"
},
{
"outputs": [
{
"type": "uint256[]"
},
{
"type": "uint256[]"
},
{
"type": "uint256[]"
},
{
"type": "uint256[]"
},
{
"type": "uint256[]"
},
{
"type": "uint256[]"
}
],
"constant": true,
"inputs": [
{
"name": "arg1",
"type": "uint256[]"
}
],
"name": "getBs",
"stateMutability": "View",
"type": "Function"
},
{
"outputs": [
{
"type": "uint256[]"
},
{
"type": "uint256[]"
}
],
"constant": true,
"inputs": [
{
"name": "tokenA",
"type": "address[]"
},
{
"name": "tokenB",
"type": "address[]"
},
{
"name": "exAddr",
"type": "address[]"
}
],
"name": "getResAll",
"stateMutability": "View",
"type": "Function"
},
{
"inputs": [
{
"name": "addr",
"type": "address[]"
},
{
"name": "addr1",
"type": "address[]"
},
{
"name": "addr2",
"type": "address[]"
},
{
"name": "addr3",
"type": "address[]"
}
],
"name": "addToken",
"stateMutability": "Nonpayable",
"type": "Function"
},
{
"stateMutability": "Nonpayable",
"type": "Constructor"
},
{
"payable": true,
"stateMutability": "Payable",
"type": "Fallback"
}
]About this contract
overview
SunswapV1215_V4 is a smart contract on Tron. It has been called 0 times.
This contract is not source-verified, so only its on-chain bytecode and ABI are available. Read calls still run live against the node. Write calls require a signed wallet transaction — wallet support is coming soon.