@33cn/chain33-rpc-api
Advanced tools
Comparing version 1.5.6 to 1.5.7
@@ -469,3 +469,3 @@ import HttpProvider from './HttpProvider'; | ||
* @description 查询合约状态 | ||
* @param {string[]} hash 是对应创建合约的交易Hash | ||
* @param {string} hash 是对应创建合约的交易Hash | ||
* @param {string} [url=''] | ||
@@ -477,3 +477,3 @@ * @returns {Promise<any>} | ||
* @description 查询合约可提币量 | ||
* @param {string[]} hash 是对应创建合约的交易Hash | ||
* @param {string} hash 是对应创建合约的交易Hash | ||
* @param {string} [url=''] | ||
@@ -484,2 +484,182 @@ * @returns {Promise<any>} | ||
/** | ||
* @description 创建多重签名账户(未签名) | ||
* @param {string[]} owners owner数组[{ownerAddr:string,weight:uint64}],最少2个owner | ||
* @param {uint64} RequiredWeight 交易被执行的请求权重值,此值不能大于所有owner权重的总和 | ||
* @param {object} dailyLimit 资产的每日限额值(execer:string,symbol:string,dailyLimit:uint64) | ||
* @param {string} [url=''] | ||
* @returns {Promise<any>} | ||
*/ | ||
createMultipleSignAccount(owners: string[], RequiredWeight: number, dailyLimit: object, url?: string): Promise<any>; | ||
/** | ||
* @description 多重签名账户修改RequiredWeight值(未签名) | ||
* @param {string} multiSigAccAddr 多重签名账户地址 | ||
* @param {uint64} newRequiredWeight 新的请求权重值 | ||
* @param {boolean} operateFlag account账户操作类型:true 修改RequiredWeight值 | ||
* @param {string} [url=''] | ||
* @returns {Promise<any>} | ||
*/ | ||
editRequiredWeight(multiSigAccAddr: string, newRequiredWeight: number, operateFlag?: boolean, url?: string): Promise<any>; | ||
/** | ||
* @description 多重签名账户修改DailyLimit每日限额(未签名) | ||
* @param {string} multiSigAccAddr 多重签名账户地址 | ||
* @param {uint64} dailyLimit 资产的每日限额值(execer:string,symbol:string,dailyLimit:uint64) | ||
* @param {boolean} operateFlag account账户操作类型:false 修改DailyLimit值 | ||
* @param {string} [url=''] | ||
* @returns {Promise<any>} | ||
*/ | ||
editDailyLimit(multiSigAccAddr: string, dailyLimit: any, operateFlag?: boolean, url?: string): Promise<any>; | ||
/** | ||
* @description 获取已经创建的多重签名账户个数 | ||
* @param {string} [url=''] | ||
* @returns {Promise<any>} | ||
*/ | ||
getMultipleSignAccountNum(url?: string): Promise<any>; | ||
/** | ||
* @description 获取多重签名地址 | ||
* @param {number} start 多重签名账户index索引,从0开始 | ||
* @param {number} end 多重签名账户index索引,end>=start && end< MultiSigAccCount获取的值 | ||
* @param {string} [url=''] | ||
* @returns {Promise<any>} | ||
*/ | ||
getMultipleSignAddress(start: number | undefined, end: number, url?: string): Promise<any>; | ||
/** | ||
* @description 获取多重签名账户信息 | ||
* @param {string} address 多重签名账户地址 | ||
* @param {string} [url=''] | ||
* @returns {Promise<any>} | ||
*/ | ||
getMultipleAccountInfos(address: string, url?: string): Promise<any>; | ||
/** | ||
* @description 查询多重签名账户指定资产当日免密余额 | ||
* @param {string} multiSigAddr 多重签名账户地址 | ||
* @param {string} execer 多重签名账户资产执行器名 | ||
* @param {string} symbol 多重签名账户资产标识 | ||
* @param {boolean} isAll 是否所有资产,true:所有资产,false:只查询指定资产的 | ||
* @param {string} [url=''] | ||
* @returns {Promise<any>} | ||
*/ | ||
searchMultiSigAccUnSpentToday(multiSigAddr: string, execer: string, symbol: string, isAll: boolean, url?: string): Promise<any>; | ||
/** | ||
* @description 查询多重签名账户指定资产信息 | ||
* @param {string} multiSigAddr 多重签名账户地址 | ||
* @param {string} execer 多重签名账户资产执行器名 | ||
* @param {string} symbol 多重签名账户资产标识 | ||
* @param {boolean} isAll 是否所有资产,true:所有资产时不需要填写具体的assets信息,false:只查询指定资产的信息 | ||
* @param {string} [url=''] | ||
* @returns {Promise<any>} | ||
*/ | ||
searchMultiSigAccAssets(multiSigAddr: string, execer: string, symbol: string, isAll: boolean, url?: string): Promise<any>; | ||
/** | ||
* @description 查询指定地址创建的多重签名账户列表 | ||
* @param {string} address 多重签名账户地址 | ||
* @param {string} [url=''] | ||
* @returns {Promise<any>} | ||
*/ | ||
searchMultiSigAccAllAddress(address: string, url?: string): Promise<any>; | ||
/** | ||
* @description 多重签名账户增加owner(未签名) | ||
* @param {string} multiSigAccAddr 多重签名账户地址 | ||
* @param {string} newOwner 需要添加的owner地址 | ||
* @param {uint64} newWeight 需要添加的owner拥有的权重 | ||
* @param {uint64} operateFlag owner操作类型:1 (默认) | ||
* @param {string} [url=''] | ||
* @returns {Promise<any>} | ||
*/ | ||
addMultiSigOwnerOperateTx(multiSigAccAddr: string, newOwner: string, newWeight: number, operateFlag?: number, url?: string): Promise<any>; | ||
/** | ||
* @description 多重签名账户删除owner(未签名) | ||
* @param {string} multiSigAccAddr 多重签名账户地址 | ||
* @param {string} oldOwner 需要删除的owner地址 | ||
* @param {uint64} operateFlag owner操作类型:2 (默认) | ||
* @param {string} [url=''] | ||
* @returns {Promise<any>} | ||
*/ | ||
delMultiSigOwnerOperateTx(multiSigAccAddr: string, oldOwner: string, operateFlag?: number, url?: string): Promise<any>; | ||
/** | ||
* @description 多重签名账户owner权重修改(未签名) | ||
* @param {string} multiSigAccAddr 多重签名账户地址 | ||
* @param {string} oldOwner 需要删除的owner地址 | ||
* @param {uint64} newWeight 新的权重值 | ||
* @param {uint64} operateFlag owner操作类型:3 (默认) | ||
* @param {string} [url=''] | ||
* @returns {Promise<any>} | ||
*/ | ||
editMultisigOwnerWeight(multiSigAccAddr: string, oldOwner: string, newWeight: number, operateFlag?: number, url?: string): Promise<any>; | ||
/** | ||
* @description 多重签名账户owner替换(未签名) | ||
* @param {string} multiSigAccAddr 多重签名账户地址 | ||
* @param {string} oldOwner 需要删除的owner地址 | ||
* @param {string} newOwner 新的owner地址 | ||
* @param {uint64} operateFlag owner操作类型:4 (默认) | ||
* @param {string} [url=''] | ||
* @returns {Promise<any>} | ||
*/ | ||
changeMultisigOwnerAcc(multiSigAccAddr: string, oldOwner: string, newOwner: string, operateFlag?: number, url?: string): Promise<any>; | ||
/** | ||
* @description 多重签名账户资产转入(未签名) | ||
* @param {string} symbol 资产标识,例如:BTY | ||
* @param {string} execname 资产执行器名,例如:coins | ||
* @param {string} note 转账说明 | ||
* @param {string} to 收账地址,必须是多重签名地址 | ||
* @param {int64} amount 转入的资产额度 | ||
* @param {string} [url=''] | ||
* @returns {Promise<any>} | ||
*/ | ||
MultisigAccAssetsIn(symbol: string, execname: string, note: string, to: string, amount: number, url?: string): Promise<any>; | ||
/** | ||
* @description 多重签名账户资产转出(未签名) | ||
* @param {string} symbol 资产标识,例如:BTY | ||
* @param {string} execname 资产执行器名,例如:coins | ||
* @param {string} note 转账说明 | ||
* @param {string} from 出账地址,必须是多重签名地址 | ||
* @param {string} to 收账地址,必须是多重签名地址 | ||
* @param {int64} amount 转入的资产额度 | ||
* @param {string} [url=''] | ||
* @returns {Promise<any>} | ||
*/ | ||
MultisigAccAssetsOut(symbol: string, execname: string, note: string, from: string, to: string, amount: number, url?: string): Promise<any>; | ||
/** | ||
* @description 多重签名账户交易确认(未签名) | ||
* @param {string} multiSigAccAddr 多重签名地址 | ||
* @param {int64} txId 需要确认或者撤销的交易index,从0开始 | ||
* @param {boolean} confirmOrRevoke true/false 确认/取消交易 | ||
* @param {string} [url=''] | ||
* @returns {Promise<any>} | ||
*/ | ||
confirmMultisigAccTx(multiSigAccAddr: string, txId: number, confirmOrRevoke: boolean, url?: string): Promise<any>; | ||
/** | ||
* @description 获取多重签名账户交易数 | ||
* @param {string} multiSigAccAddr 多重签名账户地址 | ||
* @param {string} [url=''] | ||
* @returns {Promise<any>} | ||
*/ | ||
getMultiSigAccTxCount(multiSigAccAddr: string, url?: string): Promise<any>; | ||
/** | ||
* @description 获取指定区间的指定状态的多重签名交索引易 | ||
* @param {string} multiSigAddr 多重签名账户地址 | ||
* @param {uint64} fromTxId 多重签名账户交易索引值,fromTxId>=0 | ||
* @param {uint64} toTxId 多重签名账户交易索引,toTxId< MultiSigAccTxCount 获取的交易数 | ||
* @param {boolean} pending 未执行的交易 | ||
* @param {boolean} executed 已执行的交易 | ||
* @param {string} [url=''] | ||
* @returns {Promise<any>} | ||
*/ | ||
getSectionMultiSigAccTx(multiSigAddr: string, fromTxId: number, toTxId: number, pending: boolean, executed: boolean, url?: string): Promise<any>; | ||
/** | ||
* @description 获取多重签名交易信息 | ||
* @param {string} multiSigAddr 多重签名账户地址 | ||
* @param {uint64} txId 多重签名账户交易索引值,fromTxId>=0 | ||
* @param {string} [url=''] | ||
* @returns {Promise<any>} | ||
*/ | ||
getMultiSigTxInfo(multiSigAddr: string, txId: number, url?: string): Promise<any>; | ||
/** | ||
* @description 获取指定交易被确认的权重信息 | ||
* @param {string} multiSigAddr 多重签名账户地址 | ||
* @param {uint64} txId 多重签名账户交易索引值,fromTxId>=0 | ||
* @param {string} [url=''] | ||
* @returns {Promise<any>} | ||
*/ | ||
getMultiSigTxConfirmedWeight(multiSigAddr: string, txId: number, url?: string): Promise<any>; | ||
/** | ||
* @description 钱包加锁 Lock | ||
@@ -486,0 +666,0 @@ * @param {string} [url='http://localhost:8801'] |
@@ -845,3 +845,3 @@ "use strict"; | ||
* @description 查询合约状态 | ||
* @param {string[]} hash 是对应创建合约的交易Hash | ||
* @param {string} hash 是对应创建合约的交易Hash | ||
* @param {string} [url=''] | ||
@@ -862,3 +862,3 @@ * @returns {Promise<any>} | ||
* @description 查询合约可提币量 | ||
* @param {string[]} hash 是对应创建合约的交易Hash | ||
* @param {string} hash 是对应创建合约的交易Hash | ||
* @param {string} [url=''] | ||
@@ -877,2 +877,350 @@ * @returns {Promise<any>} | ||
}; | ||
/** | ||
* @description 创建多重签名账户(未签名) | ||
* @param {string[]} owners owner数组[{ownerAddr:string,weight:uint64}],最少2个owner | ||
* @param {uint64} RequiredWeight 交易被执行的请求权重值,此值不能大于所有owner权重的总和 | ||
* @param {object} dailyLimit 资产的每日限额值(execer:string,symbol:string,dailyLimit:uint64) | ||
* @param {string} [url=''] | ||
* @returns {Promise<any>} | ||
*/ | ||
BtyBaseSdk.prototype.createMultipleSignAccount = function (owners, RequiredWeight, dailyLimit, url) { | ||
if (url === void 0) { url = ''; } | ||
return this.callPromiseAPI('multisig.MultiSigAccCreateTx', { | ||
owners: owners, | ||
RequiredWeight: RequiredWeight, | ||
dailyLimit: dailyLimit, | ||
}, url); | ||
}; | ||
/** | ||
* @description 多重签名账户修改RequiredWeight值(未签名) | ||
* @param {string} multiSigAccAddr 多重签名账户地址 | ||
* @param {uint64} newRequiredWeight 新的请求权重值 | ||
* @param {boolean} operateFlag account账户操作类型:true 修改RequiredWeight值 | ||
* @param {string} [url=''] | ||
* @returns {Promise<any>} | ||
*/ | ||
BtyBaseSdk.prototype.editRequiredWeight = function (multiSigAccAddr, newRequiredWeight, operateFlag, url) { | ||
if (operateFlag === void 0) { operateFlag = true; } | ||
if (url === void 0) { url = ''; } | ||
return this.callPromiseAPI('multisig.MultiSigAccOperateTx', { | ||
multiSigAccAddr: multiSigAccAddr, | ||
newRequiredWeight: newRequiredWeight, | ||
operateFlag: operateFlag, | ||
}, url); | ||
}; | ||
/** | ||
* @description 多重签名账户修改DailyLimit每日限额(未签名) | ||
* @param {string} multiSigAccAddr 多重签名账户地址 | ||
* @param {uint64} dailyLimit 资产的每日限额值(execer:string,symbol:string,dailyLimit:uint64) | ||
* @param {boolean} operateFlag account账户操作类型:false 修改DailyLimit值 | ||
* @param {string} [url=''] | ||
* @returns {Promise<any>} | ||
*/ | ||
BtyBaseSdk.prototype.editDailyLimit = function (multiSigAccAddr, dailyLimit, operateFlag, url) { | ||
if (operateFlag === void 0) { operateFlag = false; } | ||
if (url === void 0) { url = ''; } | ||
return this.callPromiseAPI('multisig.MultiSigAccOperateTx', { | ||
multiSigAccAddr: multiSigAccAddr, | ||
dailyLimit: dailyLimit, | ||
operateFlag: operateFlag, | ||
}, url); | ||
}; | ||
/** | ||
* @description 获取已经创建的多重签名账户个数 | ||
* @param {string} [url=''] | ||
* @returns {Promise<any>} | ||
*/ | ||
BtyBaseSdk.prototype.getMultipleSignAccountNum = function (url) { | ||
if (url === void 0) { url = ''; } | ||
return this.callPromiseAPI('Query', { | ||
"execer": "multisig", | ||
"funcName": "MultiSigAccCount", | ||
"payload": null | ||
}, url); | ||
}; | ||
/** | ||
* @description 获取多重签名地址 | ||
* @param {number} start 多重签名账户index索引,从0开始 | ||
* @param {number} end 多重签名账户index索引,end>=start && end< MultiSigAccCount获取的值 | ||
* @param {string} [url=''] | ||
* @returns {Promise<any>} | ||
*/ | ||
BtyBaseSdk.prototype.getMultipleSignAddress = function (start, end, url) { | ||
if (start === void 0) { start = 0; } | ||
if (url === void 0) { url = ''; } | ||
return this.callPromiseAPI('Query', { | ||
"execer": "multisig", | ||
"funcName": "MultiSigAccCount", | ||
"payload": { 'start': start, 'end': end } | ||
}, url); | ||
}; | ||
/** | ||
* @description 获取多重签名账户信息 | ||
* @param {string} address 多重签名账户地址 | ||
* @param {string} [url=''] | ||
* @returns {Promise<any>} | ||
*/ | ||
BtyBaseSdk.prototype.getMultipleAccountInfos = function (address, url) { | ||
if (url === void 0) { url = ''; } | ||
return this.callPromiseAPI('Query', { | ||
"execer": "multisig", | ||
"funcName": "MultiSigAccCount", | ||
"payload": { 'multiSigAccAddr': address } | ||
}, url); | ||
}; | ||
/** | ||
* @description 查询多重签名账户指定资产当日免密余额 | ||
* @param {string} multiSigAddr 多重签名账户地址 | ||
* @param {string} execer 多重签名账户资产执行器名 | ||
* @param {string} symbol 多重签名账户资产标识 | ||
* @param {boolean} isAll 是否所有资产,true:所有资产,false:只查询指定资产的 | ||
* @param {string} [url=''] | ||
* @returns {Promise<any>} | ||
*/ | ||
BtyBaseSdk.prototype.searchMultiSigAccUnSpentToday = function (multiSigAddr, execer, symbol, isAll, url) { | ||
if (url === void 0) { url = ''; } | ||
return this.callPromiseAPI('Query', { | ||
"execer": "multisig", | ||
"funcName": "MultiSigAccUnSpentToday", | ||
"payload": { | ||
"multiSigAddr": multiSigAddr, | ||
"assets": { "execer": execer, "symbol": symbol }, | ||
"isAll": isAll | ||
} | ||
}, url); | ||
}; | ||
/** | ||
* @description 查询多重签名账户指定资产信息 | ||
* @param {string} multiSigAddr 多重签名账户地址 | ||
* @param {string} execer 多重签名账户资产执行器名 | ||
* @param {string} symbol 多重签名账户资产标识 | ||
* @param {boolean} isAll 是否所有资产,true:所有资产时不需要填写具体的assets信息,false:只查询指定资产的信息 | ||
* @param {string} [url=''] | ||
* @returns {Promise<any>} | ||
*/ | ||
BtyBaseSdk.prototype.searchMultiSigAccAssets = function (multiSigAddr, execer, symbol, isAll, url) { | ||
if (url === void 0) { url = ''; } | ||
return this.callPromiseAPI('Query', { | ||
"execer": "multisig", | ||
"funcName": "MultiSigAccAssets", | ||
"payload": { | ||
"multiSigAddr": multiSigAddr, | ||
"assets": { "execer": execer, "symbol": symbol }, | ||
"isAll": isAll | ||
} | ||
}, url); | ||
}; | ||
/** | ||
* @description 查询指定地址创建的多重签名账户列表 | ||
* @param {string} address 多重签名账户地址 | ||
* @param {string} [url=''] | ||
* @returns {Promise<any>} | ||
*/ | ||
BtyBaseSdk.prototype.searchMultiSigAccAllAddress = function (address, url) { | ||
if (url === void 0) { url = ''; } | ||
return this.callPromiseAPI('Query', { | ||
"execer": "multisig", | ||
"funcName": "MultiSigAccAllAddress", | ||
"payload": { "multiSigAccAddr": address, } | ||
}, url); | ||
}; | ||
////------------------owner | ||
/** | ||
* @description 多重签名账户增加owner(未签名) | ||
* @param {string} multiSigAccAddr 多重签名账户地址 | ||
* @param {string} newOwner 需要添加的owner地址 | ||
* @param {uint64} newWeight 需要添加的owner拥有的权重 | ||
* @param {uint64} operateFlag owner操作类型:1 (默认) | ||
* @param {string} [url=''] | ||
* @returns {Promise<any>} | ||
*/ | ||
BtyBaseSdk.prototype.addMultiSigOwnerOperateTx = function (multiSigAccAddr, newOwner, newWeight, operateFlag, url) { | ||
if (operateFlag === void 0) { operateFlag = 1; } | ||
if (url === void 0) { url = ''; } | ||
return this.callPromiseAPI('multisig.MultiSigOwnerOperateTx', { | ||
multiSigAccAddr: multiSigAccAddr, | ||
newOwner: newOwner, | ||
newWeight: newWeight, | ||
operateFlag: operateFlag | ||
}, url); | ||
}; | ||
/** | ||
* @description 多重签名账户删除owner(未签名) | ||
* @param {string} multiSigAccAddr 多重签名账户地址 | ||
* @param {string} oldOwner 需要删除的owner地址 | ||
* @param {uint64} operateFlag owner操作类型:2 (默认) | ||
* @param {string} [url=''] | ||
* @returns {Promise<any>} | ||
*/ | ||
BtyBaseSdk.prototype.delMultiSigOwnerOperateTx = function (multiSigAccAddr, oldOwner, operateFlag, url) { | ||
if (operateFlag === void 0) { operateFlag = 2; } | ||
if (url === void 0) { url = ''; } | ||
return this.callPromiseAPI('multisig.MultiSigOwnerOperateTx', { | ||
multiSigAccAddr: multiSigAccAddr, | ||
oldOwner: oldOwner, | ||
operateFlag: operateFlag | ||
}, url); | ||
}; | ||
/** | ||
* @description 多重签名账户owner权重修改(未签名) | ||
* @param {string} multiSigAccAddr 多重签名账户地址 | ||
* @param {string} oldOwner 需要删除的owner地址 | ||
* @param {uint64} newWeight 新的权重值 | ||
* @param {uint64} operateFlag owner操作类型:3 (默认) | ||
* @param {string} [url=''] | ||
* @returns {Promise<any>} | ||
*/ | ||
BtyBaseSdk.prototype.editMultisigOwnerWeight = function (multiSigAccAddr, oldOwner, newWeight, operateFlag, url) { | ||
if (operateFlag === void 0) { operateFlag = 3; } | ||
if (url === void 0) { url = ''; } | ||
return this.callPromiseAPI('multisig.MultiSigOwnerOperateTx', { | ||
multiSigAccAddr: multiSigAccAddr, | ||
oldOwner: oldOwner, | ||
newWeight: newWeight, | ||
operateFlag: operateFlag | ||
}, url); | ||
}; | ||
/** | ||
* @description 多重签名账户owner替换(未签名) | ||
* @param {string} multiSigAccAddr 多重签名账户地址 | ||
* @param {string} oldOwner 需要删除的owner地址 | ||
* @param {string} newOwner 新的owner地址 | ||
* @param {uint64} operateFlag owner操作类型:4 (默认) | ||
* @param {string} [url=''] | ||
* @returns {Promise<any>} | ||
*/ | ||
BtyBaseSdk.prototype.changeMultisigOwnerAcc = function (multiSigAccAddr, oldOwner, newOwner, operateFlag, url) { | ||
if (operateFlag === void 0) { operateFlag = 4; } | ||
if (url === void 0) { url = ''; } | ||
return this.callPromiseAPI('multisig.MultiSigOwnerOperateTx', { | ||
multiSigAccAddr: multiSigAccAddr, | ||
oldOwner: oldOwner, | ||
newOwner: newOwner, | ||
operateFlag: operateFlag | ||
}, url); | ||
}; | ||
////-----------------tx | ||
/** | ||
* @description 多重签名账户资产转入(未签名) | ||
* @param {string} symbol 资产标识,例如:BTY | ||
* @param {string} execname 资产执行器名,例如:coins | ||
* @param {string} note 转账说明 | ||
* @param {string} to 收账地址,必须是多重签名地址 | ||
* @param {int64} amount 转入的资产额度 | ||
* @param {string} [url=''] | ||
* @returns {Promise<any>} | ||
*/ | ||
BtyBaseSdk.prototype.MultisigAccAssetsIn = function (symbol, execname, note, to, amount, url) { | ||
if (url === void 0) { url = ''; } | ||
return this.callPromiseAPI('multisig.MultiSigAccTransferInTx', { | ||
symbol: symbol, | ||
execname: execname, | ||
note: note, | ||
to: to, | ||
amount: amount | ||
}, url); | ||
}; | ||
/** | ||
* @description 多重签名账户资产转出(未签名) | ||
* @param {string} symbol 资产标识,例如:BTY | ||
* @param {string} execname 资产执行器名,例如:coins | ||
* @param {string} note 转账说明 | ||
* @param {string} from 出账地址,必须是多重签名地址 | ||
* @param {string} to 收账地址,必须是多重签名地址 | ||
* @param {int64} amount 转入的资产额度 | ||
* @param {string} [url=''] | ||
* @returns {Promise<any>} | ||
*/ | ||
BtyBaseSdk.prototype.MultisigAccAssetsOut = function (symbol, execname, note, from, to, amount, url) { | ||
if (url === void 0) { url = ''; } | ||
return this.callPromiseAPI('multisig.MultiSigAccTransferOutTx', { | ||
symbol: symbol, | ||
execname: execname, | ||
note: note, | ||
from: from, | ||
to: to, | ||
amount: amount | ||
}, url); | ||
}; | ||
/** | ||
* @description 多重签名账户交易确认(未签名) | ||
* @param {string} multiSigAccAddr 多重签名地址 | ||
* @param {int64} txId 需要确认或者撤销的交易index,从0开始 | ||
* @param {boolean} confirmOrRevoke true/false 确认/取消交易 | ||
* @param {string} [url=''] | ||
* @returns {Promise<any>} | ||
*/ | ||
BtyBaseSdk.prototype.confirmMultisigAccTx = function (multiSigAccAddr, txId, confirmOrRevoke, url) { | ||
if (url === void 0) { url = ''; } | ||
return this.callPromiseAPI('multisig.MultiSigConfirmTx', { | ||
multiSigAccAddr: multiSigAccAddr, | ||
txId: txId, | ||
confirmOrRevoke: confirmOrRevoke | ||
}, url); | ||
}; | ||
/** | ||
* @description 获取多重签名账户交易数 | ||
* @param {string} multiSigAccAddr 多重签名账户地址 | ||
* @param {string} [url=''] | ||
* @returns {Promise<any>} | ||
*/ | ||
BtyBaseSdk.prototype.getMultiSigAccTxCount = function (multiSigAccAddr, url) { | ||
if (url === void 0) { url = ''; } | ||
return this.callPromiseAPI('Query', { | ||
"execer": "multisig", | ||
"funcName": "MultiSigAccTxCount", | ||
"payload": { "multiSigAccAddr": multiSigAccAddr } | ||
}, url); | ||
}; | ||
/** | ||
* @description 获取指定区间的指定状态的多重签名交索引易 | ||
* @param {string} multiSigAddr 多重签名账户地址 | ||
* @param {uint64} fromTxId 多重签名账户交易索引值,fromTxId>=0 | ||
* @param {uint64} toTxId 多重签名账户交易索引,toTxId< MultiSigAccTxCount 获取的交易数 | ||
* @param {boolean} pending 未执行的交易 | ||
* @param {boolean} executed 已执行的交易 | ||
* @param {string} [url=''] | ||
* @returns {Promise<any>} | ||
*/ | ||
BtyBaseSdk.prototype.getSectionMultiSigAccTx = function (multiSigAddr, fromTxId, toTxId, pending, executed, url) { | ||
if (url === void 0) { url = ''; } | ||
return this.callPromiseAPI('Query', { | ||
"execer": "multisig", | ||
"funcName": "MultiSigTxids", | ||
"payload": { "multiSigAddr": multiSigAddr, | ||
"fromTxId": fromTxId, "toTxId": toTxId, | ||
"pending": pending, "executed": executed | ||
} | ||
}, url); | ||
}; | ||
/** | ||
* @description 获取多重签名交易信息 | ||
* @param {string} multiSigAddr 多重签名账户地址 | ||
* @param {uint64} txId 多重签名账户交易索引值,fromTxId>=0 | ||
* @param {string} [url=''] | ||
* @returns {Promise<any>} | ||
*/ | ||
BtyBaseSdk.prototype.getMultiSigTxInfo = function (multiSigAddr, txId, url) { | ||
if (url === void 0) { url = ''; } | ||
return this.callPromiseAPI('Query', { | ||
"execer": "multisig", | ||
"funcName": "MultiSigTxInfo", | ||
"payload": { "multiSigAddr": multiSigAddr, "txId": txId } | ||
}, url); | ||
}; | ||
/** | ||
* @description 获取指定交易被确认的权重信息 | ||
* @param {string} multiSigAddr 多重签名账户地址 | ||
* @param {uint64} txId 多重签名账户交易索引值,fromTxId>=0 | ||
* @param {string} [url=''] | ||
* @returns {Promise<any>} | ||
*/ | ||
BtyBaseSdk.prototype.getMultiSigTxConfirmedWeight = function (multiSigAddr, txId, url) { | ||
if (url === void 0) { url = ''; } | ||
return this.callPromiseAPI('Query', { | ||
"execer": "multisig", | ||
"funcName": "MultiSigTxConfirmedWeight", | ||
"payload": { "multiSigAddr": multiSigAddr, "txId": txId } | ||
}, url); | ||
}; | ||
//合约接口 -----------------E | ||
@@ -879,0 +1227,0 @@ // 钱包接口 start///////////////////////// |
{ | ||
"name": "@33cn/chain33-rpc-api", | ||
"version": "1.5.6", | ||
"version": "1.5.7", | ||
"description": "chain33 rpc 接口封装", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
142553
2836
1