README
Description
Provides convenient way to call PDS server API of edzLabs.com's PDS service. Full API reference is located at app.dase.io
Examples
var CONN = require("dsd-client-conn-lib");
var dsdConn = CONN.connClient2;
var dsdCst = CONN.Consts;
//default host for all is "partner.dase.io"
//but you may specify different hosts and ports like that:
//dsdConn.setCoreServer({ host: "partner.dase.io", port: 5090 });
//dsdConn.setDaseServer({ host: "partner.dase.io", port: 5100 });
//dsdConn.setPdsServer({ host: "partner.dase.io", port: 5200 });
//dsdConn.setKeychainServer({ host: "partner.dase.io", port: 5110 });
function log(title, msg) {
console.log(title, msg ? msg : "");
}
log("sendSilver should success");
dsdConn.getCoreClient().sendSilver({
senderId: "0x003e8c791cb39b4cad756b9c25431d6eb3fed85c",
senderPassword: "12345678",
silverAmount: 100,
toUserId: "0xb35ef3e31f2944d252eda42801caf5d890d1d7f9"
}).then(
ok => { log("sendSilver ok: ", ok); },
err => { log("sendSilver err: ", err); }
);
log("sendSilver2 should error");
dsdConn.getDaseClient().sendSilver({
senderId: "0x003e8c791cb39b4cad756b9c25431d6eb3fed85c",
senderPassword: "12345678",
toUserId: "0xb35ef3e31f2944d252eda42801caf5d890d1d7f9"
}).then(
ok => { log("sendSilver2 ok: ", ok); },
err => {
log("sendSilver2 err: ", err);
//specify error handlers if necessary
if(err.code === dsdCst.errorCodes.WrongParametersCount.id) {
log("I have wrong parameters count..."+dsdCst.errorCodes.WrongParametersCount.name);
//do something
}
else if(err.code === dsdCst.errorCodes.ServerSideError.id) {
log("I have server error..."+ dsdCst.errorCodes.ServerSideError.name);
//do something
}
}
);
console.log("addDab should success");
dsdConn.getPdsClient().addDab({
ownerId: "0x003e8c791cb39b4cad756b9c25431d6eb3fed85c",
assetUrl: "http:*localhost",
ownerPassword: "12345678",
publicDescription: "new client lib asset"
}).then(
ok => { log("addDab ok: ", ok); },
err => { log("addDab err: ", err); }
);
API reference
here
Core API methodshere
DASE API methodshere
PDS API methodshere
Keychain API methodsDeprecated API
here
Core API methodshere
DASE API methodshere
PDS API methodshere
Keychain API methodsCORE API methods
(Back)
Functions
- newUser(bchainTypeCode, credentials) ⇒
Keys
Description: Method newUser
- getLastBlock(bchainTypeCode) ⇒
Integer
Description: Method getLastBlock
- sendLeos(currencyTypeCode, senderId, senderCredentials, amount, toUserId) ⇒
Integer
Description: Method sendLeos
- transfer(srcCurrencyTypeCode, senderId, senderCredentials, srcLeosAmount) ⇒
Integer
Description: Method transfer
- silverCostInGold(userId, silverLeosAmount) ⇒
Integer
Description: Method silverCostInGold
- goldCostInSilver(userId, goldLeosAmount) ⇒
Integer
Description: Method goldCostInSilver
- completeAppCashProductPurchase(userId, paymentInfo, engineName) ⇒
Integer
Description: Method completeAppCashProductPurchase
- getAppCashProducts(appId, engineName) ⇒
Object
Description: Method getAppCashProducts
- sendWeis_Ethereum(sender, senderCredentials, receiver, weisAmount, databytes) ⇒
Integer
Description: Method sendWeis_Ethereum
- getSystemAccounts() ⇒
Object
Description: Method getSystemAccounts
- getBalances(zetUserId, ethUserId) ⇒
Object
Description: Method getBalances
- v_getEligibilityValue(userId) ⇒
Integer
Description: Method v_getEligibilityValue
- v_wantVote(userId, userCredentials, iWish) ⇒
Boolean
Description: Method v_wantVote
- v_supportVoter(userId, userCredentials, voterToSupport) ⇒
Boolean
Description: Method v_supportVoter
- v_getAccountsByCoinbases(coinbases) ⇒
Array_of_Address
Description: Method v_getAccountsByCoinbases
- v_getVoteCostInSilverLeos(userId) ⇒
Integer
Description: Method v_getVoteCostInSilverLeos
- v_getContractVoters(userId) ⇒
Array_of_Address
Description: Method v_getContractVoters
- v_getQuorumVoters() ⇒
Array_of_Address
Description: Method v_getQuorumVoters
- v_getCandidatesPool(userId) ⇒
Array_of_Address
Description: Method v_getCandidatesPool
- v_isInCandidatesPool(userId) ⇒
Boolean
Description: Method v_isInCandidatesPool
- v_hasPledge(userId) ⇒
Boolean
Description: Method v_hasPledge
- v_isLicensedForVoting(userId) ⇒
Boolean
Description: Method v_isLicensedForVoting
- getMyCoinbase() ⇒
Address
Description: Method getMyCoinbase
- v_withdrawPledge(userId, userCredentials) ⇒
Boolean
Description: Method v_withdrawPledge
- v_offerBuyVoting(userId, userCredentials, silverLeosAmount) ⇒
Boolean
Description: Method v_offerBuyVoting
- offerCurrencyExchangeGoldForWeis(sellerId, sellerCredentials, buyerId, goldLeosAmount, weisAmount) ⇒
Boolean
Description: Method offerCurrencyExchangeGoldForWeis
- offerCurrencyExchangeWeisForGold(sellerId, sellerCredentials, buyerId, goldLeosAmount, weisAmount) ⇒
Boolean
Description: Method offerCurrencyExchangeWeisForGold
- cancelCurrencyExchangeOffer(sellerId, sellerCredentials, offerId) ⇒
Boolean
Description: Method cancelCurrencyExchangeOffer
- getCurrencyExchangeOffers(userId, offersIds) ⇒
Array_of_Object
Description: Method getCurrencyExchangeOffers
- acceptCurrencyExchangeGoldForWeisOffer(buyerId, buyerCredentials, offerId, goldLeosAmount) ⇒
Boolean
Description: Method acceptCurrencyExchangeGoldForWeisOffer
- acceptCurrencyExchangeWeisForGoldOffer(buyerId, buyerCredentials, offerId, weisAmount) ⇒
Boolean
Description: Method acceptCurrencyExchangeWeisForGoldOffer
- rejectCurrencyExchangeOffer(buyerId, buyerCredentials, offerId) ⇒
Boolean
Description: Method rejectCurrencyExchangeOffer
- getCurrencyExchangeOffersIdsToMe(userId, pos, size) ⇒
Array_of_Integer
Description: Method getCurrencyExchangeOffersIdsToMe
- getCurrencyExchangeOffersCountToMe(userId) ⇒
Integer
Description: Method getCurrencyExchangeOffersCountToMe
- getCurrencyExchangeTradeHistory(tradeTypeCode, userId, startBlock) ⇒
Array_of_Event
Description: Method getCurrencyExchangeTradeHistory
- offerTokenExchangeGoldForPnft(sellerId, sellerCredentials, buyerId, goldLeosAmount, pnftId) ⇒
Boolean
Description: Method offerTokenExchangeGoldForPnft
- offerTokenExchangePnftForGold(sellerId, sellerCredentials, buyerId, goldLeosAmount, pnftId) ⇒
Boolean
Description: Method offerTokenExchangePnftForGold
- cancelTokenExchangeOffer(sellerId, sellerCredentials, offerId) ⇒
Boolean
Description: Method cancelTokenExchangeOffer
- getTokenExchangeOffers(userId, offersIds) ⇒
Array_of_Object
Description: Method getTokenExchangeOffers
- acceptTokenExchangeGoldForPnftOffer(buyerId, buyerCredentials, offerId, goldLeosAmount) ⇒
Boolean
Description: Method acceptTokenExchangeGoldForPnftOffer
- acceptTokenExchangePnftForGoldOffer(buyerId, buyerCredentials, offerId, pnftId) ⇒
Boolean
Description: Method acceptTokenExchangePnftForGoldOffer
- rejectTokenExchangeOffer(buyerId, buyerCredentials, offerId) ⇒
Boolean
Description: Method rejectTokenExchangeOffer
- getTokenExchangeOffersIdsToMe(userId, pos, size) ⇒
Array_of_Integer
Description: Method getTokenExchangeOffersIdsToMe
- getTokenExchangeOffersCountToMe(userId) ⇒
Integer
Description: Method getTokenExchangeOffersCountToMe
- getTokenExchangeTradeHistory(tradeTypeCode, userId, startBlock) ⇒
Array_of_Event
Description: Method getTokenExchangeTradeHistory
- importFromNft(userId, credentials, erc721Addr, tokenId, pnftId) ⇒
Integer
Description: Method importFromNft
- exportToNft(userId, credentials, pnftId) ⇒
Boolean
Description: Method exportToNft
- getPnft(pnftId) ⇒
Object
Description: Method getPnft
- erc721_safeTransferFrom(userId, credentials, erc721Addr, from, to, tokenId) ⇒
Boolean
Description: Method erc721_safeTransferFrom
- erc721_transferFrom(userId, credentials, erc721Addr, from, to, tokenId) ⇒
Boolean
Description: Method erc721_transferFrom
- erc721_approve(userId, credentials, erc721Addr, approved, tokenId) ⇒
Boolean
Description: Method erc721_approve
- erc721_setApprovalForAll(userId, credentials, erc721Addr, operator, approved) ⇒
Boolean
Description: Method erc721_setApprovalForAll
- erc721_balanceOf(erc721Addr, owner) ⇒
Integer
Description: Method erc721_balanceOf
- erc721_ownerOf(erc721Addr, tokenId) ⇒
Address
Description: Method erc721_ownerOf
- erc721_getApproved(erc721Addr, tokenId) ⇒
Address
Description: Method erc721_getApproved
- erc721_isApprovedForAll(erc721Addr, owner, operator) ⇒
Boolean
Description: Method erc721_isApprovedForAll
- erc721_tokenOfOwnerByIndex(erc721Addr, owner, index) ⇒
Integer
Description: Method erc721_tokenOfOwnerByIndex
Keys
newUser(bchainTypeCode, credentials) ⇒ Description: Method newUser
Kind: global function
Returns: Keys
- Look at Type description in Docs.
Param | Type | Description |
---|---|---|
bchainTypeCode | Constant_of_Integer |
(optional. default: 1) Look at Constants description in Docs. |
credentials | String |
(optional. default: null) |
Example
1st:
Call (in pseudo-code):
newUser(1,'12345678');
Response json-data:
{"result":{"userId":"0xa6338a68b941684b5adb7524a06ccc396ebad5a6","pubKey":"0x0535aaa59911be010f44950df20f9b680b90f77f8d6b27fef5615b208dbdc20ca2ab237d56bd5d4aee340192e0f385e8a53d49d82e02b0d5e9dcec5abb845d31","prvKey":"0x43725c1cf6ae8ad9b88d0f49e24e2181c6ac5b9e01d4c00f578ae0909fdc07ea"}}
Example
2nd:
Call (in pseudo-code):
newUser(1,'12345678_Zetonium');
Response json-data:
{"result":{"userId":"0x5387953b5ae9761ba82381cd4bf90c0c2d610836","pubKey":"0x5749e2716c8e1f27f7f566ffef4c3862cc26fd4cfacb136c37a2f7f660b771ec9d7edb4cb0da980ceb9b8aef7bff16e6749be5627da182b79cc953831f7129f2","prvKey":"0xf3bfb49352772533c94e3363a64517e676e8cc802577045061002515114c143c"}}
Example
3th:
Call (in pseudo-code):
newUser(2,'12345678_Ethereum');
Response json-data:
{"result":{"userId":"0xec437de270daa9c9afbc431e8b280da08433c65e","pubKey":"0x8a84cff8fde8a9c2b3e166a846f1002903807238a0dfe78fd2b1837dc3e335b9ba296676e18c2f441a4e011f79d42444bb197c8e4517e5b4b24361e1f828027b","prvKey":"0xd53db5f115befcb00b7d3ea019daf731e2bfa72cfb0918de106664d79ce330ec"}}
Integer
getLastBlock(bchainTypeCode) ⇒ Description: Method getLastBlock
Kind: global function
Param | Type | Description |
---|---|---|
bchainTypeCode | Constant_of_Integer |
(optional. default: 1) Look at Constants description in Docs. |
Integer
sendLeos(currencyTypeCode, senderId, senderCredentials, amount, toUserId) ⇒ Description: Method sendLeos
Kind: global function
Returns: Integer
- newSrcBalance
Param | Type | Description |
---|---|---|
currencyTypeCode | Constant_of_Integer |
(optional. default: 1) Look at Constants description in Docs. |
senderId | Address |
|
senderCredentials | String |
|
amount | Integer |
|
toUserId | Address |
Example
1st:
Call (in pseudo-code):
sendLeos(1,'0x003e8c791cb39b4cad756b9c25431d6eb3fed85c','12345678',500000000,'0xa6338a68b941684b5adb7524a06ccc396ebad5a6');
Response json-data:
{"result":"855736620000"}
Example
2nd:
Call (in pseudo-code):
sendLeos(1,'0x003e8c791cb39b4cad756b9c25431d6eb3fed85c','12345678',500000000,'0x9189313f9823231685571d81bc084f35617a9f4c');
Response json-data:
{"result":"855236620000"}
Example
3th:
Call (in pseudo-code):
sendLeos(1,'0x003e8c791cb39b4cad756b9c25431d6eb3fed85c','12345678',500000000,'0x14302f1785fd47583c929cf3684953116cbeaa95');
Response json-data:
{"result":"854736620000"}
Integer
transfer(srcCurrencyTypeCode, senderId, senderCredentials, srcLeosAmount) ⇒ Description: Method transfer
Kind: global function
Returns: Integer
- newSrcBalance
Param | Type | Description |
---|---|---|
srcCurrencyTypeCode | Constant_of_Integer |
Look at Constants description in Docs. |
senderId | Address |
|
senderCredentials | String |
|
srcLeosAmount | Integer |
Integer
silverCostInGold(userId, silverLeosAmount) ⇒ Description: Method silverCostInGold
Kind: global function
Param | Type |
---|---|
userId | Address |
silverLeosAmount | Integer |
Integer
goldCostInSilver(userId, goldLeosAmount) ⇒ Description: Method goldCostInSilver
Kind: global function
Param | Type |
---|---|
userId | Address |
goldLeosAmount | Integer |
Example
1st:
Call (in pseudo-code):
goldCostInSilver('0xe7e0f3cddec426b44589cd1877f0aa392b207c13',1000000);
Response json-data:
{"result":"1000000"}
Integer
completeAppCashProductPurchase(userId, paymentInfo, engineName) ⇒ Description: Method completeAppCashProductPurchase
Kind: global function
Returns: Integer
- statusCode
Param | Type |
---|---|
userId | Address |
paymentInfo | Object |
engineName | String |
Object
getAppCashProducts(appId, engineName) ⇒ Description: Method getAppCashProducts
Kind: global function
Returns: Object
- products
Param | Type |
---|---|
appId | String |
engineName | String |
Integer
sendWeis_Ethereum(sender, senderCredentials, receiver, weisAmount, databytes) ⇒ Description: Method sendWeis_Ethereum
Kind: global function
Returns: Integer
- newSrcBalance
Param | Type |
---|---|
sender | Address |
senderCredentials | String |
receiver | Address |
weisAmount | Integer |
databytes | String |
Example
1st:
Call (in pseudo-code):
sendWeis_Ethereum('0x0c46effd09207e466fdf188ab12c352fbe3377ec','12345678','0xe7e0f3cddec426b44589cd1877f0aa392b207c13',100000,null);
Response json-data:
{"result":"9998999999999999400000"}
Object
getSystemAccounts() ⇒ Description: Method getSystemAccounts
Object
getBalances(zetUserId, ethUserId) ⇒ Description: Method getBalances
Kind: global function
Param | Type | Description |
---|---|---|
zetUserId | Address |
(optional. default: null) |
ethUserId | Address |
(optional. default: null) |
Example
1st:
Call (in pseudo-code):
getBalances('0xa6338a68b941684b5adb7524a06ccc396ebad5a6',null);
Response json-data:
{"result":{"silver_leos":"489000000"}}
Example
2nd:
Call (in pseudo-code):
getBalances('0x9189313f9823231685571d81bc084f35617a9f4c',null);
Response json-data:
{"result":{"silver_leos":"489000000"}}
Example
3th:
Call (in pseudo-code):
getBalances('0x14302f1785fd47583c929cf3684953116cbeaa95',null);
Response json-data:
{"result":{"silver_leos":"489000000"}}
Integer
v_getEligibilityValue(userId) ⇒ Description: Method v_getEligibilityValue
Kind: global function
Param | Type |
---|---|
userId | Address |
Boolean
v_wantVote(userId, userCredentials, iWish) ⇒ Description: Method v_wantVote
Kind: global function
Returns: Boolean
- isOk
Param | Type |
---|---|
userId | Address |
userCredentials | String |
iWish | Boolean |
Boolean
v_supportVoter(userId, userCredentials, voterToSupport) ⇒ Description: Method v_supportVoter
Kind: global function
Returns: Boolean
- isOk
Param | Type |
---|---|
userId | Address |
userCredentials | String |
voterToSupport | Address |
Example
1st:
Call (in pseudo-code):
v_supportVoter('0x003e8c791cb39b4cad756b9c25431d6eb3fed85c','12345678','0x082b4e4e0f686a9a249799acea9f05dc2fe83a4a');
Response json-data:
{"result":true}
Array_of_Address
v_getAccountsByCoinbases(coinbases) ⇒ Description: Method v_getAccountsByCoinbases
Kind: global function
Param | Type |
---|---|
coinbases | Array_of_Address |
Integer
v_getVoteCostInSilverLeos(userId) ⇒ Description: Method v_getVoteCostInSilverLeos
Kind: global function
Param | Type |
---|---|
userId | Address |
Array_of_Address
v_getContractVoters(userId) ⇒ Description: Method v_getContractVoters
Kind: global function
Param | Type |
---|---|
userId | Address |
Array_of_Address
v_getQuorumVoters() ⇒ Description: Method v_getQuorumVoters
Array_of_Address
v_getCandidatesPool(userId) ⇒ Description: Method v_getCandidatesPool
Kind: global function
Param | Type |
---|---|
userId | Address |
Boolean
v_isInCandidatesPool(userId) ⇒ Description: Method v_isInCandidatesPool
Kind: global function
Param | Type |
---|---|
userId | Address |
Boolean
v_hasPledge(userId) ⇒ Description: Method v_hasPledge
Kind: global function
Param | Type |
---|---|
userId | Address |
Boolean
v_isLicensedForVoting(userId) ⇒ Description: Method v_isLicensedForVoting
Kind: global function
Param | Type |
---|---|
userId | Address |
Address
getMyCoinbase() ⇒ Description: Method getMyCoinbase
Boolean
v_withdrawPledge(userId, userCredentials) ⇒ Description: Method v_withdrawPledge
Kind: global function
Returns: Boolean
- isOk
Param | Type |
---|---|
userId | Address |
userCredentials | String |
Boolean
v_offerBuyVoting(userId, userCredentials, silverLeosAmount) ⇒ Description: Method v_offerBuyVoting
Kind: global function
Returns: Boolean
- isOk
Param | Type |
---|---|
userId | Address |
userCredentials | String |
silverLeosAmount | Integer |
Boolean
offerCurrencyExchangeGoldForWeis(sellerId, sellerCredentials, buyerId, goldLeosAmount, weisAmount) ⇒ Description: Method offerCurrencyExchangeGoldForWeis
Kind: global function
Param | Type |
---|---|
sellerId | Address |
sellerCredentials | String |
buyerId | Address |
goldLeosAmount | Integer |
weisAmount | Integer |
Boolean
offerCurrencyExchangeWeisForGold(sellerId, sellerCredentials, buyerId, goldLeosAmount, weisAmount) ⇒ Description: Method offerCurrencyExchangeWeisForGold
Kind: global function
Param | Type |
---|---|
sellerId | Address |
sellerCredentials | String |
buyerId | Address |
goldLeosAmount | Integer |
weisAmount | Integer |
Boolean
cancelCurrencyExchangeOffer(sellerId, sellerCredentials, offerId) ⇒ Description: Method cancelCurrencyExchangeOffer
Kind: global function
Param | Type |
---|---|
sellerId | Address |
sellerCredentials | String |
offerId | Integer |
Array_of_Object
getCurrencyExchangeOffers(userId, offersIds) ⇒ Description: Method getCurrencyExchangeOffers
Kind: global function
Param | Type |
---|---|
userId | Address |
offersIds | Array_of_Integer |
Boolean
acceptCurrencyExchangeGoldForWeisOffer(buyerId, buyerCredentials, offerId, goldLeosAmount) ⇒ Description: Method acceptCurrencyExchangeGoldForWeisOffer
Kind: global function
Param | Type |
---|---|
buyerId | Address |
buyerCredentials | String |
offerId | Integer |
goldLeosAmount | Integer |
Boolean
acceptCurrencyExchangeWeisForGoldOffer(buyerId, buyerCredentials, offerId, weisAmount) ⇒ Description: Method acceptCurrencyExchangeWeisForGoldOffer
Kind: global function
Param | Type |
---|---|
buyerId | Address |
buyerCredentials | String |
offerId | Integer |
weisAmount | Integer |
Boolean
rejectCurrencyExchangeOffer(buyerId, buyerCredentials, offerId) ⇒ Description: Method rejectCurrencyExchangeOffer
Kind: global function
Param | Type |
---|---|
buyerId | Address |
buyerCredentials | String |
offerId | Integer |
Array_of_Integer
getCurrencyExchangeOffersIdsToMe(userId, pos, size) ⇒ Description: Method getCurrencyExchangeOffersIdsToMe
Kind: global function
Param | Type | Description |
---|---|---|
userId | Address |
|
pos | Integer |
(optional. default: 0) |
size | Integer |
(optional. default: 10) |
Integer
getCurrencyExchangeOffersCountToMe(userId) ⇒ Description: Method getCurrencyExchangeOffersCountToMe
Kind: global function
Param | Type |
---|---|
userId | Address |
Array_of_Event
getCurrencyExchangeTradeHistory(tradeTypeCode, userId, startBlock) ⇒ Description: Method getCurrencyExchangeTradeHistory
Kind: global function
Returns: Array_of_Event
- Look at Type description in Docs.
Param | Type | Description |
---|---|---|
tradeTypeCode | Constant_of_Integer |
Look at Constants description in Docs. |
userId | Address |
|
startBlock | Integer |
Boolean
offerTokenExchangeGoldForPnft(sellerId, sellerCredentials, buyerId, goldLeosAmount, pnftId) ⇒ Description: Method offerTokenExchangeGoldForPnft
Kind: global function
Param | Type |
---|---|
sellerId | Address |
sellerCredentials | String |
buyerId | Address |
goldLeosAmount | Integer |
pnftId | Integer |
Boolean
offerTokenExchangePnftForGold(sellerId, sellerCredentials, buyerId, goldLeosAmount, pnftId) ⇒ Description: Method offerTokenExchangePnftForGold
Kind: global function
Param | Type |
---|---|
sellerId | Address |
sellerCredentials | String |
buyerId | Address |
goldLeosAmount | Integer |
pnftId | Integer |
Boolean
cancelTokenExchangeOffer(sellerId, sellerCredentials, offerId) ⇒ Description: Method cancelTokenExchangeOffer
Kind: global function
Param | Type |
---|---|
sellerId | Address |
sellerCredentials | String |
offerId | Integer |
Array_of_Object
getTokenExchangeOffers(userId, offersIds) ⇒ Description: Method getTokenExchangeOffers
Kind: global function
Param | Type |
---|---|
userId | Address |
offersIds | Array_of_Integer |
Boolean
acceptTokenExchangeGoldForPnftOffer(buyerId, buyerCredentials, offerId, goldLeosAmount) ⇒ Description: Method acceptTokenExchangeGoldForPnftOffer
Kind: global function
Param | Type |
---|---|
buyerId | Address |
buyerCredentials | String |
offerId | Integer |
goldLeosAmount | Integer |
Boolean
acceptTokenExchangePnftForGoldOffer(buyerId, buyerCredentials, offerId, pnftId) ⇒ Description: Method acceptTokenExchangePnftForGoldOffer
Kind: global function
Param | Type |
---|---|
buyerId | Address |
buyerCredentials | String |
offerId | Integer |
pnftId | Integer |
Boolean
rejectTokenExchangeOffer(buyerId, buyerCredentials, offerId) ⇒ Description: Method rejectTokenExchangeOffer
Kind: global function
Param | Type |
---|---|
buyerId | Address |
buyerCredentials | String |
offerId | Integer |
Array_of_Integer
getTokenExchangeOffersIdsToMe(userId, pos, size) ⇒ Description: Method getTokenExchangeOffersIdsToMe
Kind: global function
Param | Type | Description |
---|---|---|
userId | Address |
|
pos | Integer |
(optional. default: 0) |
size | Integer |
(optional. default: 10) |
Integer
getTokenExchangeOffersCountToMe(userId) ⇒ Description: Method getTokenExchangeOffersCountToMe
Kind: global function
Param | Type |
---|---|
userId | Address |
Array_of_Event
getTokenExchangeTradeHistory(tradeTypeCode, userId, startBlock) ⇒ Description: Method getTokenExchangeTradeHistory
Kind: global function
Returns: Array_of_Event
- Look at Type description in Docs.
Param | Type | Description |
---|---|---|
tradeTypeCode | Constant_of_Integer |
Look at Constants description in Docs. |
userId | Address |
|
startBlock | Integer |
Integer
importFromNft(userId, credentials, erc721Addr, tokenId, pnftId) ⇒ Description: Method importFromNft
Kind: global function
Returns: Integer
- pnftId
Param | Type |
---|---|
userId | Address |
credentials | String |
erc721Addr | Address |
tokenId | Integer |
pnftId | Integer |
Boolean
exportToNft(userId, credentials, pnftId) ⇒ Description: Method exportToNft
Kind: global function
Param | Type |
---|---|
userId | Address |
credentials | String |
pnftId | Integer |
Object
getPnft(pnftId) ⇒ Description: Method getPnft
Kind: global function
Param | Type |
---|---|
pnftId | Integer |
Boolean
erc721_safeTransferFrom(userId, credentials, erc721Addr, from, to, tokenId) ⇒ Description: Method erc721_safeTransferFrom
Kind: global function
Param | Type | Description |
---|---|---|
userId | Address |
|
credentials | String |
|
erc721Addr | Address |
(optional. default: null) |
from | Address |
|
to | Address |
|
tokenId | Integer |
Boolean
erc721_transferFrom(userId, credentials, erc721Addr, from, to, tokenId) ⇒ Description: Method erc721_transferFrom
Kind: global function
Param | Type | Description |
---|---|---|
userId | Address |
|
credentials | String |
|
erc721Addr | Address |
(optional. default: null) |
from | Address |
|
to | Address |
|
tokenId | Integer |
Boolean
erc721_approve(userId, credentials, erc721Addr, approved, tokenId) ⇒ Description: Method erc721_approve
Kind: global function
Param | Type | Description |
---|---|---|
userId | Address |
|
credentials | String |
|
erc721Addr | Address |
(optional. default: null) |
approved | Address |
|
tokenId | Integer |
Boolean
erc721_setApprovalForAll(userId, credentials, erc721Addr, operator, approved) ⇒ Description: Method erc721_setApprovalForAll
Kind: global function
Param | Type | Description |
---|---|---|
userId | Address |
|
credentials | String |
|
erc721Addr | Address |
(optional. default: null) |
operator | Address |
|
approved | Boolean |
Integer
erc721_balanceOf(erc721Addr, owner) ⇒ Description: Method erc721_balanceOf
Kind: global function
Returns: Integer
- numberOfNfts
Param | Type | Description |
---|---|---|
erc721Addr | Address |
(optional. default: null) |
owner | Address |
Address
erc721_ownerOf(erc721Addr, tokenId) ⇒ Description: Method erc721_ownerOf
Kind: global function
Returns: Address
- owner
Param | Type | Description |
---|---|---|
erc721Addr | Address |
(optional. default: null) |
tokenId | Integer |
Address
erc721_getApproved(erc721Addr, tokenId) ⇒ Description: Method erc721_getApproved
Kind: global function
Returns: Address
- operator
Param | Type | Description |
---|---|---|
erc721Addr | Address |
(optional. default: null) |
tokenId | Integer |
Boolean
erc721_isApprovedForAll(erc721Addr, owner, operator) ⇒ Description: Method erc721_isApprovedForAll
Kind: global function
Param | Type | Description |
---|---|---|
erc721Addr | Address |
(optional. default: null) |
owner | Address |
|
operator | Address |
Integer
erc721_tokenOfOwnerByIndex(erc721Addr, owner, index) ⇒ Description: Method erc721_tokenOfOwnerByIndex
Kind: global function
Returns: Integer
- tokenId
Param | Type | Description |
---|---|---|
erc721Addr | Address |
(optional. default: null) |
owner | Address |
|
index | Integer |
DASE API methods
(Back)
Functions
- getCountOfSatsForTag(tagId, doFiltration, apiVersionCode) ⇒
Integer
Description: Method getCountOfSatsForTag
- getSatsForTag(tagId, pos, size, doFiltration, apiVersionCode) ⇒
Array_of_Integer
Description: Method getSatsForTag
- getSatLimitsForDab(dabId, apiVersionCode) ⇒
Object
Description: Method getSatLimitsForDab
- setSatLimitsForDab(dabOwnerId, dabOwnerCredentials, dabId, globalCountLimit, apiVersionCode) ⇒
Object
Description: Method setSatLimitsForDab
- createSat(satSellerId, satSellerCredentials, dabId, description, dealIndex, apiVersionCode) ⇒
Integer
Description: Method createSat
- linkSat(satSellerId, satSellerCredentials, satId, dabIds, apiVersionCode) ⇒
Boolean
Description: Method linkSat
- getCountOfSatsForDab(dabId, apiVersionCode) ⇒
Integer
Description: Method getCountOfSatsForDab
- getCountOfDabsForSat(satId, apiVersionCode) ⇒
Integer
Description: Method getCountOfDabsForSat
- getSatsForDab(dabId, pos, size, apiVersionCode) ⇒
Array_of_Integer
Description: Method getSatsForDab
- getDabsForSat(satId, pos, size, apiVersionCode) ⇒
Array_of_Integer
Description: Method getDabsForSat
- getTotalDealRoyaltyForDab(dabId) ⇒
Integer
Description: Method getTotalDealRoyaltyForDab
- addAsset(ownerId, ownerCredentials, assetUrl, publicDescription, linkedDabId, custodians, dataHash) ⇒
Integer
Description: Method addAsset
- addAssetsList(ownerId, ownerCredentials, dataArr) ⇒
Array_of_Integer
Description: Method addAssetsList
- addTag(ownerId, ownerCredentials, publicDescription, custodians, title, encryptedKey) ⇒
Integer
Description: Method addTag
- getDirectLabelsForDab(userId, dabId, pos, size) ⇒
Array_of_Dab
Description: Method getDirectLabelsForDab
- getDabs(userId, dabIds, dabTypeCode) ⇒
Array_of_Asset
Description: Method getDabs
- getDabPreviousVersionsIds(userId, dabId, maxLength) ⇒
Array_of_Integer
Description: Method getDabPreviousVersionsIds
- getTagEncryptedKey(buyerId, sellerId, tagId) ⇒
Key
Description: Method getTagEncryptedKey
- exploreLabelsHierarchy(userId, userCredentials, rootTagId, tagId, pos, size) ⇒
Array_of_Dab
Description: Method exploreLabelsHierarchy
- getCountForLicenseAgreements(userId, tradeTypeCode, dabTypeCode, licenseTypeCode, dabId) ⇒
Integer
Description: Method getCountForLicenseAgreements
- getCountForLicenseOffers(userId, offerDirectionTypeCode, tradeTypeCode, dabTypeCode, licenseTypeCode, dabId) ⇒
Integer
Description: Method getCountForLicenseOffers
- getCountForTradedDabs(userId, tradeTypeCode, dabTypeCode, licenseTypeCode) ⇒
Integer
Description: Method getCountForTradedDabs
- getCountForLabelsHierarchy(userId, userCredentials, rootTagId, tagId) ⇒
Integer
Description: Method getCountForLabelsHierarchy
- getCountForDirectLabelsForDab(userId, dabId) ⇒
Integer
Description: Method getCountForDirectLabelsForDab
- getLicenseAgreements(userId, tradeTypeCode, dabTypeCode, licenseTypeCode, dabId, pos, size) ⇒
Array_of_License
Description: Method getLicenseAgreements
- getLicenseOffers(userId, offerDirectionTypeCode, tradeTypeCode, dabTypeCode, licenseTypeCode, dabId, pos, size) ⇒
Array_of_License
Description: Method getLicenseOffers
- getTradedDabs(userId, tradeTypeCode, dabTypeCode, licenseTypeCode, pos, size) ⇒
Array_of_Object
Description: Method getTradedDabs
- getTradedDabsIds(userId, tradeTypeCode, dabTypeCode, licenseTypeCode, pos, size) ⇒
Array_of_Object
Description: Method getTradedDabsIds
- actualiseDeals(userId, userCredentials, tradeTypeCode, licenseTypeCode) ⇒
Boolean
Description: Method actualiseDeals
- marketSellLicenseOffer(sellerId, sellerCredentials, sellerDabId, buyerDabId, licenseTypeCode, minLeosPrice, maxSells, ttlInSec, licenseTermSheetTemplate, licenseTerms) ⇒
Constant_of_Integer
Description: Method marketSellLicenseOffer
- cancelMarketSellLicenseOffer(licenseTypeCode, userId, userCredentials, sellerDabId, buyerDabId) ⇒
Boolean
Description: Method cancelMarketSellLicenseOffer
- areVerifiedParticipants(sellerId, buyerId, dabId, licenseTypeCode) ⇒
Boolean
Description: Method areVerifiedParticipants
- marketSellRoyaltyLicenseOffer(sellerId, sellerCredentials, sellerDabId, minLeosPrice, dealPctg, usagePctg, maxSells, ttlInSec, termSheetTemplate, terms) ⇒
Constant_of_Integer
Description: Method marketSellRoyaltyLicenseOffer
- isRoyaltyRelationAllowed(paidDabId, beneficiaryDabId) ⇒
Boolean
Description: Method isRoyaltyRelationAllowed
- appendUserToDealVerifierList(restrictorId, restrictorCredentials, userRestrictedId, isSeller, isRestricted) ⇒
Boolean
Description: Method appendUserToDealVerifierList
- removeUserFromDealVerifierList(restrictorId, restrictorCredentials, userRestrictedId, isSeller, isRestricted) ⇒
Boolean
Description: Method removeUserFromDealVerifierList
- clearDealVerifierListByUsers(restrictorId, restrictorCredentials, isSeller, isRestricted) ⇒
Boolean
Description: Method clearDealVerifierListByUsers
- appendDabIdToDealVerifierList(restrictorId, restrictorCredentials, dabId, userRestrictedId, isSeller, isRestricted) ⇒
Boolean
Description: Method appendDabIdToDealVerifierList
- removeDabIdFromDealVerifierList(restrictorId, restrictorCredentials, dabId, userRestrictedId, isSeller, isRestricted) ⇒
Boolean
Description: Method removeDabIdFromDealVerifierList
- clearDealVerifierListByDabId(restrictorId, restrictorCredentials, dabId, isSeller, isRestricted) ⇒
Boolean
Description: Method clearDealVerifierListByDabId
- appendLicenseTypeToDealVerifierList(restrictorId, restrictorCredentials, licenseTypeCode, userRestrictedId, isSeller, isRestricted) ⇒
Boolean
Description: Method appendLicenseTypeToDealVerifierList
- removeLicenseTypeFromDealVerifierList(restrictorId, restrictorCredentials, licenseTypeCode, userRestrictedId, isSeller, isRestricted) ⇒
Boolean
Description: Method removeLicenseTypeFromDealVerifierList
- clearDealVerifierListByLicenseType(restrictorId, restrictorCredentials, licenseTypeCode, isSeller, isRestricted) ⇒
Boolean
Description: Method clearDealVerifierListByLicenseType
- getRestrictionsRange(restrictorId, isSeller, isRestricted, pos, size) ⇒
Array_of_Address
Description: Method getRestrictionsRange
- getRestrictionsRangeForDabId(restrictorId, dabId, isSeller, isRestricted, pos, size) ⇒
Array_of_Address
Description: Method getRestrictionsRangeForDabId
- getRestrictionsRangeForLicenseType(restrictorId, licenseTypeCode, isSeller, isRestricted, pos, size) ⇒
Array_of_Address
Description: Method getRestrictionsRangeForLicenseType
- getRestrictionsCount(restrictorId, isSeller, isRestricted) ⇒
Integer
Description: Method getRestrictionsCount
- getRestrictionsCountForDabId(restrictorId, dabId, isSeller, isRestricted) ⇒
Integer
Description: Method getRestrictionsCountForDabId
- getRestrictionsCountForLicenseType(restrictorId, licenseTypeCode, isSeller, isRestricted) ⇒
Integer
Description: Method getRestrictionsCountForLicenseType
- offerSellCommonLicense(licenseTypeCode, sellerId, sellerCredentials, buyerId, dabId, minLeosPrice, termSheetTemplate, terms) ⇒
Constant_of_Integer
Description: Method offerSellCommonLicense
- offerBuyCommonLicense(licenseTypeCode, buyerId, buyerCredentials, dabId, maxLeosPrice, termSheetTemplate, terms) ⇒
Constant_of_Integer
Description: Method offerBuyCommonLicense
- offerBuyAccessLicenseFromReseller(buyerId, buyerCredentials, dabId, maxLeosPrice, resellerId, termSheetTemplate, terms) ⇒
Boolean
Description: Method offerBuyAccessLicenseFromReseller
- offerSellExploreLicense(sellerId, sellerCredentials, buyerId, dabId, minLeosPrice, buyerPubKeyEncryptedTagKey, termSheetTemplate, terms) ⇒
Constant_of_Integer
Description: Method offerSellExploreLicense
- offerSellLabelLicense(licenseTypeCode, sellerId, sellerCredentials, buyerId, minLeosPrice, tagId, dabId, termSheetTemplate, terms) ⇒
Constant_of_Integer
Description: Method offerSellLabelLicense
- offerBuyLabelLicense(licenseTypeCode, buyerId, buyerCredentials, maxLeosPrice, tagId, dabId, termSheetTemplate, terms) ⇒
Constant_of_Integer
Description: Method offerBuyLabelLicense
- offerSellRoyaltyLicense(sellerId, sellerCredentials, buyerId, minLeosPrice, sellerDabId, buyerDabId, dealPctg, usagePctg, termSheetTemplate, terms) ⇒
Constant_of_Integer
Description: Method offerSellRoyaltyLicense
- offerBuyRoyaltyLicense(buyerId, buyerCredentials, maxLeosPrice, sellerDabId, buyerDabId, dealPctg, usagePctg, termSheetTemplate, terms) ⇒
Constant_of_Integer
Description: Method offerBuyRoyaltyLicense
- approveCommonLicenseDeal(licenseTypeCode, custodianId, custodianCredentials, buyerId, dabId) ⇒
Boolean
Description: Method approveCommonLicenseDeal
- approveLabelLicenseDeal(licenseTypeCode, custodianId, custodianCredentials, buyerId, tagId, dabId) ⇒
Boolean
Description: Method approveLabelLicenseDeal
- approveRoyaltyLicenseDeal(custodianId, custodianCredentials, buyerId, sellerDabId, buyerDabId) ⇒
Boolean
Description: Method approveRoyaltyLicenseDeal
- getCustodiansForCommonOffer(licenseTypeCode, buyerId, dabId) ⇒
Object
Description: Method getCustodiansForCommonOffer
- getCustodiansForLabelOffer(licenseTypeCode, buyerId, tagId, dabId) ⇒
Object
Description: Method getCustodiansForLabelOffer
- getCustodiansForRoyaltyOffer(buyerId, sellerDabId, buyerDabId) ⇒
Object
Description: Method getCustodiansForRoyaltyOffer
- smart_proposeRelation(relationTypeCode, eitherDabOwnerId, eitherDabOwnerCredentials, parentDabId, childDabId, termSheetTemplate, terms) ⇒
Integer
Description: Method smart_proposeRelation
- smart_destroyRelation(relationTypeCode, eitherDabOwnerId, eitherDabOwnerCredentials, parentDabId, childDabId, termSheetTemplate, terms) ⇒
Integer
Description: Method smart_destroyRelation
- smart_getDirectParentsForDab(relationTypeCode, dabId, pos, size) ⇒
Array_of_Dab
Description: Method smart_getDirectParentsForDab
- smart_getCountOfDirectParentsForDab(relationTypeCode, dabId) ⇒
Integer
Description: Method smart_getCountOfDirectParentsForDab
- smart_getDirectChildsForDab(relationTypeCode, dabId, pos, size) ⇒
Array_of_Dab
Description: Method smart_getDirectChildsForDab
- smart_getCountOfDirectChildsForDab(relationTypeCode, dabId) ⇒
Integer
Description: Method smart_getCountOfDirectChildsForDab
- smart_getAllParentsForDab(relationTypeCode, dabId, pos, size) ⇒
Array_of_Dab
Description: Method smart_getAllParentsForDab
- smart_getCountOfAllParentsForDab(relationTypeCode, dabId) ⇒
Integer
Description: Method smart_getCountOfAllParentsForDab
- smart_getAllChildsForDab(relationTypeCode, dabId, pos, size) ⇒
Array_of_Dab
Description: Method smart_getAllChildsForDab
- smart_getCountOfAllChildsForDab(relationTypeCode, dabId) ⇒
Integer
Description: Method smart_getCountOfAllChildsForDab
- smart_isHierarchicalChildOf(relationTypeCode, parentDabId, childDabId) ⇒
Boolean
Description: Method smart_isHierarchicalChildOf
- smart_isDirectChildOf(relationTypeCode, parentDabId, childDabId) ⇒
Boolean
Description: Method smart_isDirectChildOf
- smart_isAllowedRelation(relationTypeCode, parentDabId, childDabId) ⇒
Boolean
Description: Method smart_isAllowedRelation
- addRelation(userId, userCredentials, licenseTypeCode, fromDabId, toDabId, usageArgsTerms) ⇒
Boolean
Description: Method addRelation
- isHierarchicalChildOf(userId, parentDabId, dabId) ⇒
Boolean
Description: Method isHierarchicalChildOf
- cancelCommonLicenseOffer(licenseTypeCode, userId, userCredentials, buyerId, dabId) ⇒
Boolean
Description: Method cancelCommonLicenseOffer
- cancelLabelLicenseOffer(licenseTypeCode, userId, userCredentials, buyerId, tagId, dabId) ⇒
Boolean
Description: Method cancelLabelLicenseOffer
- cancelRoyaltyLicenseOffer(userId, userCredentials, buyerId, sellerDabId, buyerDabId) ⇒
Boolean
Description: Method cancelRoyaltyLicenseOffer
- revokeCommonLicenseDeal(licenseTypeCode, sellerId, sellerCredentials, buyerId, dabId) ⇒
Boolean
Description: Method revokeCommonLicenseDeal
- revokeSatCreateLicenseDeal(licenseTypeCode, sellerId, sellerCredentials, buyerId, dabId, dealIndex) ⇒
Boolean
Description: Method revokeSatCreateLicenseDeal
- revokeLabelLicenseDeal(licenseTypeCode, sellerId, sellerCredentials, buyerId, tagId, dabId) ⇒
Boolean
Description: Method revokeLabelLicenseDeal
- revokeRoyaltyLicenseDeal(sellerId, sellerCredentials, buyerId, sellerDabId, buyerDabId) ⇒
Boolean
Description: Method revokeRoyaltyLicenseDeal
- getLicenseUsageCount(userId, licenseTypeCode, dabId, buyerId) ⇒
Integer
Description: Method getLicenseUsageCount
- setPaymentSource(userId, credentials, termSheetTemplate, terms) ⇒
Boolean
Description: Method setPaymentSource
- getPaymentSource(userId) ⇒
Object
Description: Method getPaymentSource
- fundUser(funderId, funderCredentials, userToFund, termSheetTemplate, terms) ⇒
Boolean
Description: Method fundUser
- unfundUser(funderId, funderCredentials, userToUnfund) ⇒
Boolean
Description: Method unfundUser
- getFunders(userId) ⇒
Array_of_Object
Description: Method getFunders
- getUsersIFund(funderId, fromTimestampInSec, timeAmountInSec) ⇒
Array_of_Address
Description: Method getUsersIFund
- getFunderFundingHistory(funderId, pos, size, fromTimestampInSec, timeAmountInSec) ⇒
Array_of_Object
Description: Method getFunderFundingHistory
- getFunding(funderId, userId, fromTimestampInSec, timeAmountInSec) ⇒
Array_of_Object
Description: Method getFunding
- getFunderInfo(funderId, fromTimestampInSec, timeAmountInSec) ⇒
Array_of_Object
Description: Method getFunderInfo
- getFundedInfo(userId, fromTimestampInSec, timeAmountInSec) ⇒
Array_of_Object
Description: Method getFundedInfo
- getBalanceHistory(userId, pos, size, fromTimestampInSec, timeAmountInSec, isFlowIn) ⇒
Array_of_Object
Description: Method getBalanceHistory
- transferSync(srcBlockchainTypeCode, srcUserId, srcUserCredentials, dstUserId, dstUserCredentials, srcLeosAmount) ⇒
Object
Description: Method transferSync
- transferIn(dstBlockchainTypeCode, srcReqId, dstUserCredentials) ⇒
Object
Description: Method transferIn
- transferOut(srcBlockchainTypeCode, srcUserId, srcUserCredentials, dstUserId, srcLeosAmount) ⇒
Object
Description: Method transferOut
- getTransferStatus(srcBlockchainTypeCode, srcReqId) ⇒
Object
Description: Method getTransferStatus
- getIncompleteRequestsIds(srcBlockchainTypeCode, srcUserId, fromTimeInSec, timeAmountInSec) ⇒
Array_of_Integer
Description: Method getIncompleteRequestsIds
- sat_getPaired(satId, nftId, erc721Addr) ⇒
Object
Description: Method sat_getPaired
- sat_transferSync(srcBlockchainTypeCode, srcUserId, srcUserCredentials, dstUserId, dstUserCredentials, srcNftId) ⇒
Object
Description: Method sat_transferSync
- sat_transferIn(dstBlockchainTypeCode, srcReqId, dstUserCredentials) ⇒
Object
Description: Method sat_transferIn
- sat_transferOut(srcBlockchainTypeCode, srcUserId, srcUserCredentials, dstUserId, srcNftId) ⇒
Object
Description: Method sat_transferOut
- sat_getTransferStatus(srcBlockchainTypeCode, srcReqId) ⇒
Object
Description: Method sat_getTransferStatus
- sat_getIncompleteRequestsIds(srcBlockchainTypeCode, srcUserId, fromTimeInSec, timeAmountInSec) ⇒
Array_of_Integer
Description: Method sat_getIncompleteRequestsIds
Integer
getCountOfSatsForTag(tagId, doFiltration, apiVersionCode) ⇒ Description: Method getCountOfSatsForTag
Kind: global function
Returns: Integer
- countOfSats
Param | Type | Description |
---|---|---|
tagId | Integer |
|
doFiltration | Boolean |
(optional. default: false) |
apiVersionCode | Integer |
(optional. default: 0) |
Array_of_Integer
getSatsForTag(tagId, pos, size, doFiltration, apiVersionCode) ⇒ Description: Method getSatsForTag
Kind: global function
Returns: Array_of_Integer
- satIds
Param | Type | Description |
---|---|---|
tagId | Integer |
|
pos | Integer |
(optional. default: 0) |
size | Integer |
(optional. default: 10) |
doFiltration | Boolean |
(optional. default: false) |
apiVersionCode | Integer |
(optional. default: 0) |
Object
getSatLimitsForDab(dabId, apiVersionCode) ⇒ Description: Method getSatLimitsForDab
Kind: global function
Param | Type | Description |
---|---|---|
dabId | Integer |
|
apiVersionCode | Integer |
(optional. default: 0) |
Object
setSatLimitsForDab(dabOwnerId, dabOwnerCredentials, dabId, globalCountLimit, apiVersionCode) ⇒ Description: Method setSatLimitsForDab
Kind: global function
Returns: Object
- isOk
Param | Type | Description |
---|---|---|
dabOwnerId | Address |
|
dabOwnerCredentials | String |
|
dabId | Integer |
|
globalCountLimit | Integer |
|
apiVersionCode | Integer |
(optional. default: 0) |
Integer
createSat(satSellerId, satSellerCredentials, dabId, description, dealIndex, apiVersionCode) ⇒ Description: Method createSat
Kind: global function
Returns: Integer
- satId
Param | Type | Description |
---|---|---|
satSellerId | Address |
|
satSellerCredentials | String |
|
dabId | Integer |
|
description | String |
(optional. default: "Regular SAT") |
dealIndex | Integer |
(optional. default: -1) |
apiVersionCode | Integer |
(optional. default: 0) |
Boolean
linkSat(satSellerId, satSellerCredentials, satId, dabIds, apiVersionCode) ⇒ Description: Method linkSat
Kind: global function
Returns: Boolean
- isOk
Param | Type | Description |
---|---|---|
satSellerId | Address |
|
satSellerCredentials | String |
|
satId | Integer |
|
dabIds | Array_of_Integer |
|
apiVersionCode | Integer |
(optional. default: 0) |
Integer
getCountOfSatsForDab(dabId, apiVersionCode) ⇒ Description: Method getCountOfSatsForDab
Kind: global function
Returns: Integer
- countOfSats
Param | Type | Description |
---|---|---|
dabId | Integer |
|
apiVersionCode | Integer |
(optional. default: 0) |
Integer
getCountOfDabsForSat(satId, apiVersionCode) ⇒ Description: Method getCountOfDabsForSat
Kind: global function
Returns: Integer
- countOfDabs
Param | Type | Description |
---|---|---|
satId | Integer |
|
apiVersionCode | Integer |
(optional. default: 0) |
Array_of_Integer
getSatsForDab(dabId, pos, size, apiVersionCode) ⇒ Description: Method getSatsForDab
Kind: global function
Returns: Array_of_Integer
- satIds
Param | Type | Description |
---|---|---|
dabId | Integer |
|
pos | Integer |
(optional. default: 0) |
size | Integer |
(optional. default: 10) |
apiVersionCode | Integer |
(optional. default: 0) |
Array_of_Integer
getDabsForSat(satId, pos, size, apiVersionCode) ⇒ Description: Method getDabsForSat
Kind: global function
Returns: Array_of_Integer
- dabIds
Param | Type | Description |
---|---|---|
satId | Integer |
|
pos | Integer |
(optional. default: 0) |
size | Integer |
(optional. default: 10) |
apiVersionCode | Integer |
(optional. default: 0) |
Integer
getTotalDealRoyaltyForDab(dabId) ⇒ Description: Method getTotalDealRoyaltyForDab
Kind: global function
Returns: Integer
- percents
Param | Type |
---|---|
dabId | Integer |
Integer
addAsset(ownerId, ownerCredentials, assetUrl, publicDescription, linkedDabId, custodians, dataHash) ⇒ Descr