|
@@ -78,6 +78,11 @@ bitkeepTron.getTokenBalance=async function (selectedAddress,contractType) {
|
|
|
return balance;
|
|
return balance;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+/**
|
|
|
|
|
+ * 获取合约信息
|
|
|
|
|
+ * @param contractType
|
|
|
|
|
+ * @returns {Promise<boolean|*>}
|
|
|
|
|
+ */
|
|
|
bitkeepTron.getContract=async function (contractType) {
|
|
bitkeepTron.getContract=async function (contractType) {
|
|
|
let contractData = await tronWeb.trx.getContract(contractArr[contractType])
|
|
let contractData = await tronWeb.trx.getContract(contractArr[contractType])
|
|
|
if(contractData.abi){
|
|
if(contractData.abi){
|
|
@@ -106,6 +111,12 @@ bitkeepTron.getContractData=function (to,money,contractType){
|
|
|
return data;
|
|
return data;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+/**
|
|
|
|
|
+ * 转账接口
|
|
|
|
|
+ * @param to
|
|
|
|
|
+ * @param money
|
|
|
|
|
+ * @returns {{}}
|
|
|
|
|
+ */
|
|
|
bitkeepTron.getTransactionData=function (to,money){
|
|
bitkeepTron.getTransactionData=function (to,money){
|
|
|
let data={};
|
|
let data={};
|
|
|
data.to=to;
|
|
data.to=to;
|