dsd-dbg-release-notes

0.9.44 • Public • Published

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

Core API methods here

DASE API methods here

PDS API methods here

Keychain API methods here

Deprecated API

Core API methods here

DASE API methods here

PDS API methods here

Keychain API methods here

CORE API methods

(Back)

Functions

newUser(bchainTypeCode, password)Keys

Description: Method newUser

getKeys(bchainTypeCode, userId, password)Keys

Description: Method getKeys

transferOut(bchainTypeCode, srcUserId, password, destUserId, amount)Integer

Description: Method transferOut

getLastBlock(bchainTypeCode)Integer

Description: Method getLastBlock

isValidUser(bchainTypeCode, userId, password)Boolean

Description: Method isValidUser

sendLeos(bchainTypeCode, senderId, senderPassword, amount, toUserId)Integer

Description: Method sendLeos

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, senderPassword, receiver, weisAmount, databytes)Integer

Description: Method sendWeis_Ethereum

getSystemAccounts()Object

Description: Method getSystemAccounts

getBalances(zetUserId, ethUserId)Object

Description: Method getBalances

approveUserToSpendMySilver(fromUserId, password, silverAmount, toUserId)Transaction

Description: Method approveUserToSpendMySilver

v_getEligibilityValue(userId)Integer

Description: Method v_getEligibilityValue

v_wantVote(userId, userPassword, iWish)Boolean

Description: Method v_wantVote

v_supportVoter(userId, userPassword, voterToSupport)Boolean

Description: Method v_supportVoter

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, userPassword)Boolean

Description: Method v_withdrawPledge

v_offerBuyVoting(userId, userPassword, silverLeosAmount)Boolean

Description: Method v_offerBuyVoting

offerCurrencyExchangeGoldForWeis(sellerId, sellerPassword, buyerId, goldLeosAmount, weisAmount)Boolean

Description: Method offerCurrencyExchangeGoldForWeis

offerCurrencyExchangeWeisForGold(sellerId, sellerPassword, buyerId, goldLeosAmount, weisAmount)Boolean

Description: Method offerCurrencyExchangeWeisForGold

cancelCurrencyExchangeOffer(sellerId, sellerPassword, offerId)Boolean

Description: Method cancelCurrencyExchangeOffer

getCurrencyExchangeOffers(userId, offersIds)Array_of_Object

Description: Method getCurrencyExchangeOffers

acceptCurrencyExchangeGoldForWeisOffer(buyerId, buyerPassword, offerId, goldLeosAmount)Boolean

Description: Method acceptCurrencyExchangeGoldForWeisOffer

acceptCurrencyExchangeWeisForGoldOffer(buyerId, buyerPassword, offerId, weisAmount)Boolean

Description: Method acceptCurrencyExchangeWeisForGoldOffer

rejectCurrencyExchangeOffer(buyerId, buyerPassword, 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

newUser(bchainTypeCode, password) ⇒ Keys

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.
password String

Example
1st:

Call (in pseudo-code):

newUser(1,'12345678_Zetonium');

Response json-data:

{"result":{"userId":"0x21ce73916d9a135434c6140c91df6baebf53af17","pubKey":"0x4e68a89b8c2066281e2e3b9a34fab79788ecbb5997b4fd29a14af112efe4c09018b377dfbf9fbed65ab9eef68d936d2407d3e6dd5881c7e2da793cc4ba0d9a7d","prvKey":"0x0e044c914483cc0c317509110574a4e38b79f182e53a770009d2480230200ede"}}

Example
2nd:

Call (in pseudo-code):

newUser(2,'12345678_Ethereum');

Response json-data:

{"result":{"userId":"0xe28d08d43ea1f25c17ee297045f00cb2ab64d933","pubKey":"0x86500409d277ea61b074d4c243cb034aed109860a43211dc7a1ed6d20d00823ed25c480d1fbcceee85880ca77b8d46b6dacf514500fd4c4b747ba0ce39d63eac","prvKey":"0xe12a98105ca7295dc599b02a2d0e376544dd5d2362cb418308774fe6b4f81525"}}

getKeys(bchainTypeCode, userId, password) ⇒ Keys

Description: Method getKeys

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.
userId Address
password String

Example
1st:

Call (in pseudo-code):

getKeys(1,'0xbf903df49703dd05709a9a3bb542d7229b3049c9','12345678');

Response json-data:

{"result":{"userId":"0xbf903df49703dd05709a9a3bb542d7229b3049c9","pubKey":"0xfaa8fb6ab825488989fca408e69f855da2db64e9b1db00f1ad6754bbfb5f5bbafd3ece9683ae9e0a1f7234bd32cef2f6b33528275fdd4b96be709843910255b7","prvKey":"0x27b903d59802b9ed6ae39323c1188e3d6bbf52e980e8c097cdb6ed8a729196f1"}}

transferOut(bchainTypeCode, srcUserId, password, destUserId, amount) ⇒ Integer

Description: Method transferOut

Kind: global function
Returns: Integer - newSrcBalance

Param Type Description
bchainTypeCode Constant_of_Integer (optional. default: 1) Look at Constants description in Docs.
srcUserId Address
password String
destUserId Address
amount Integer

Example
1st:

Call (in pseudo-code):

transferOut(1,'0xbf903df49703dd05709a9a3bb542d7229b3049c9','12345678','0xe7e0f3cddec426b44589cd1877f0aa392b207c13',10000000);

Response json-data:

{"result":"13841793530"}

getLastBlock(bchainTypeCode) ⇒ Integer

Description: Method getLastBlock

Kind: global function

Param Type Description
bchainTypeCode Constant_of_Integer (optional. default: 1) Look at Constants description in Docs.

Example
1st:

Call (in pseudo-code):

getLastBlock(1);

Response json-data:

{"result":"598383"}

Example
2nd:

Call (in pseudo-code):

getLastBlock(2);

Response json-data:

{"result":"598383"}

isValidUser(bchainTypeCode, userId, password) ⇒ Boolean

Description: Method isValidUser

Kind: global function

Param Type Description
bchainTypeCode Constant_of_Integer (optional. default: 1) Look at Constants description in Docs.
userId Address
password String

Example
1st:

Call (in pseudo-code):

isValidUser(1,'0xbf903df49703dd05709a9a3bb542d7229b3049c9','12345678');

Response json-data:

{"result":true}

Example
2nd:

Call (in pseudo-code):

isValidUser(1,'0x1f903df49703dd05709a9a3bb542d7229b3049c9','12345678');

Response json-data:

{"result":false}

sendLeos(bchainTypeCode, senderId, senderPassword, amount, toUserId) ⇒ Integer

Description: Method sendLeos

Kind: global function
Returns: Integer - newSrcBalance

Param Type Description
bchainTypeCode Constant_of_Integer (optional. default: 1) Look at Constants description in Docs.
senderId Address
senderPassword String
amount Integer
toUserId Address

silverCostInGold(userId, silverLeosAmount) ⇒ Integer

Description: Method silverCostInGold

Kind: global function

Param Type
userId Address
silverLeosAmount Integer

goldCostInSilver(userId, goldLeosAmount) ⇒ Integer

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"}

completeAppCashProductPurchase(userId, paymentInfo, engineName) ⇒ Integer

Description: Method completeAppCashProductPurchase

Kind: global function
Returns: Integer - statusCode

Param Type
userId Address
paymentInfo Object
engineName String

getAppCashProducts(appId, engineName) ⇒ Object

Description: Method getAppCashProducts

Kind: global function
Returns: Object - products

Param Type
appId String
engineName String

sendWeis_Ethereum(sender, senderPassword, receiver, weisAmount, databytes) ⇒ Integer

Description: Method sendWeis_Ethereum

Kind: global function
Returns: Integer - newSrcBalance

Param Type
sender Address
senderPassword String
receiver Address
weisAmount Integer
databytes String

getSystemAccounts() ⇒ Object

Description: Method getSystemAccounts

Kind: global function

getBalances(zetUserId, ethUserId) ⇒ Object

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('0xbf903df49703dd05709a9a3bb542d7229b3049c9','0xe7e0f3cddec426b44589cd1877f0aa392b207c13');

Response json-data:

{"result":{"silver_leos":"13841793530","gold_leos":"0","weis":"100000000000000000000000000000000000000000000000000"}}

approveUserToSpendMySilver(fromUserId, password, silverAmount, toUserId) ⇒ Transaction

Description: Method approveUserToSpendMySilver

Kind: global function
Returns: Transaction - Look at Type description in Docs.

Param Type
fromUserId Address
password String
silverAmount Integer
toUserId Address

Example
1st:

Call (in pseudo-code):

approveUserToSpendMySilver('0xbf903df49703dd05709a9a3bb542d7229b3049c9','12345678',10000000,'0xb9ac1d430841bc99b6c03e772e6f7d755efb1df2');

Response json-data:

{"result":{"blockHash":"0xf6d0de58728044292542c652797548d4b0f08c080de95bf3b812dd4b902474c8","blockNumber":"598434","contractAddress":null,"cumulativeGasUsed":"388667","from":"0xbf903df49703dd05709a9a3bb542d7229b3049c9","gasUsed":"388667","logsBloom":"0x00000000000000800000000000000000000000000000000000000000008080000000000000000000100100000000000000000000000000000000000000200040000000000100000004000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000010000000000000002200000000000000000000000001000000000000000000000000000000020000000004000000000000000000000000000000008000000000000000000000000002000000000000000000000000000000040000000000000000000000000010000000000000000000000000000000000000000000000000000000000000","root":"0xa7fcea3a0c483826f130b00d841ce5bceaf79f303447baf943ec2cea23f88f99","to":"0x2a1ee982b2362a66fb3c6c1d824150d8d68b6fe5","transactionHash":"0xb9b217e06f8e99ae51b5cce25cde11063381d6bf768cbd7a11853c8991a6f5f8","transactionIndex":0,"status":true,"events":{"Transfer":[{"address":"0x2A1EE982B2362a66fb3c6C1d824150D8d68B6fe5","blockNumber":"598434","transactionHash":"0xb9b217e06f8e99ae51b5cce25cde11063381d6bf768cbd7a11853c8991a6f5f8","transactionIndex":0,"blockHash":"0xf6d0de58728044292542c652797548d4b0f08c080de95bf3b812dd4b902474c8","logIndex":0,"removed":false,"id":"log_0x947df22453dff612be4442722f880aefcfab12c547842d600cc44786ab247445","returnValues":{"0":"0xBF903dF49703dD05709A9A3bB542D7229b3049c9","1":"0x4327a353D928A8Bdc70BE31599ceF8c1290C421a","2":"1000000","from":"0xBF903dF49703dD05709A9A3bB542D7229b3049c9","to":"0x4327a353D928A8Bdc70BE31599ceF8c1290C421a","value":"1000000"},"event":"Transfer","signature":"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef","raw":{"data":"0x00000000000000000000000000000000000000000000000000000000000f4240","topics":["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef","0x000000000000000000000000bf903df49703dd05709a9a3bb542d7229b3049c9","0x0000000000000000000000004327a353d928a8bdc70be31599cef8c1290c421a"]}},{"address":"0x2A1EE982B2362a66fb3c6C1d824150D8d68B6fe5","blockNumber":"598434","transactionHash":"0xb9b217e06f8e99ae51b5cce25cde11063381d6bf768cbd7a11853c8991a6f5f8","transactionIndex":0,"blockHash":"0xf6d0de58728044292542c652797548d4b0f08c080de95bf3b812dd4b902474c8","logIndex":"1","removed":false,"id":"log_0xdb89050556d48aa13c64291a027732965eec8be80553f932962cf028ccf2e7f6","returnValues":{"0":"0x4327a353D928A8Bdc70BE31599ceF8c1290C421a","1":"0x003e8C791cb39b4CAD756b9C25431D6eb3Fed85c","2":"500000","from":"0x4327a353D928A8Bdc70BE31599ceF8c1290C421a","to":"0x003e8C791cb39b4CAD756b9C25431D6eb3Fed85c","value":"500000"},"event":"Transfer","signature":"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef","raw":{"data":"0x000000000000000000000000000000000000000000000000000000000007a120","topics":["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef","0x0000000000000000000000004327a353d928a8bdc70be31599cef8c1290c421a","0x000000000000000000000000003e8c791cb39b4cad756b9c25431d6eb3fed85c"]}}],"Approval":{"address":"0x2A1EE982B2362a66fb3c6C1d824150D8d68B6fe5","blockNumber":"598434","transactionHash":"0xb9b217e06f8e99ae51b5cce25cde11063381d6bf768cbd7a11853c8991a6f5f8","transactionIndex":0,"blockHash":"0xf6d0de58728044292542c652797548d4b0f08c080de95bf3b812dd4b902474c8","logIndex":"2","removed":false,"id":"log_0xaa244f18f14dd46e47eb2412c1ba29ae915ffc2832e5f06673e688316125c4d5","returnValues":{"0":"0xBF903dF49703dD05709A9A3bB542D7229b3049c9","1":"0xB9AC1D430841bC99B6C03E772E6F7d755eFb1dF2","2":"10000000","owner":"0xBF903dF49703dD05709A9A3bB542D7229b3049c9","spender":"0xB9AC1D430841bC99B6C03E772E6F7d755eFb1dF2","value":"10000000"},"event":"Approval","signature":"0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925","raw":{"data":"0x0000000000000000000000000000000000000000000000000000000000989680","topics":["0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925","0x000000000000000000000000bf903df49703dd05709a9a3bb542d7229b3049c9","0x000000000000000000000000b9ac1d430841bc99b6c03e772e6f7d755efb1df2"]}}}}}

v_getEligibilityValue(userId) ⇒ Integer

Description: Method v_getEligibilityValue

Kind: global function

Param Type
userId Address

v_wantVote(userId, userPassword, iWish) ⇒ Boolean

Description: Method v_wantVote

Kind: global function
Returns: Boolean - isOk

Param Type
userId Address
userPassword String
iWish Boolean

v_supportVoter(userId, userPassword, voterToSupport) ⇒ Boolean

Description: Method v_supportVoter

Kind: global function
Returns: Boolean - isOk

Param Type
userId Address
userPassword String
voterToSupport Address

Example
1st:

Call (in pseudo-code):

v_supportVoter('0x003e8c791cb39b4cad756b9c25431d6eb3fed85c','12345678','0x082b4e4e0f686a9a249799acea9f05dc2fe83a4a');

Response json-data:

{"result":true}

v_getVoteCostInSilverLeos(userId) ⇒ Integer

Description: Method v_getVoteCostInSilverLeos

Kind: global function

Param Type
userId Address

v_getContractVoters(userId) ⇒ Array_of_Address

Description: Method v_getContractVoters

Kind: global function

Param Type
userId Address

v_getQuorumVoters() ⇒ Array_of_Address

Description: Method v_getQuorumVoters

Kind: global function

v_getCandidatesPool(userId) ⇒ Array_of_Address

Description: Method v_getCandidatesPool

Kind: global function

Param Type
userId Address

v_isInCandidatesPool(userId) ⇒ Boolean

Description: Method v_isInCandidatesPool

Kind: global function

Param Type
userId Address

v_hasPledge(userId) ⇒ Boolean

Description: Method v_hasPledge

Kind: global function

Param Type
userId Address

Example
1st:

Call (in pseudo-code):

v_hasPledge('0xbc457c8369cb5b0f5a60effc9cfe0a2a0c2d4225');

Response json-data:

{"result":false}

v_isLicensedForVoting(userId) ⇒ Boolean

Description: Method v_isLicensedForVoting

Kind: global function

Param Type
userId Address

getMyCoinbase() ⇒ Address

Description: Method getMyCoinbase

Kind: global function

v_withdrawPledge(userId, userPassword) ⇒ Boolean

Description: Method v_withdrawPledge

Kind: global function
Returns: Boolean - isOk

Param Type
userId Address
userPassword String

v_offerBuyVoting(userId, userPassword, silverLeosAmount) ⇒ Boolean

Description: Method v_offerBuyVoting

Kind: global function
Returns: Boolean - isOk

Param Type
userId Address
userPassword String
silverLeosAmount Integer

offerCurrencyExchangeGoldForWeis(sellerId, sellerPassword, buyerId, goldLeosAmount, weisAmount) ⇒ Boolean

Description: Method offerCurrencyExchangeGoldForWeis

Kind: global function

Param Type
sellerId Address
sellerPassword String
buyerId Address
goldLeosAmount Integer
weisAmount Integer

offerCurrencyExchangeWeisForGold(sellerId, sellerPassword, buyerId, goldLeosAmount, weisAmount) ⇒ Boolean

Description: Method offerCurrencyExchangeWeisForGold

Kind: global function

Param Type
sellerId Address
sellerPassword String
buyerId Address
goldLeosAmount Integer
weisAmount Integer

cancelCurrencyExchangeOffer(sellerId, sellerPassword, offerId) ⇒ Boolean

Description: Method cancelCurrencyExchangeOffer

Kind: global function

Param Type
sellerId Address
sellerPassword String
offerId Integer

getCurrencyExchangeOffers(userId, offersIds) ⇒ Array_of_Object

Description: Method getCurrencyExchangeOffers

Kind: global function

Param Type
userId Address
offersIds Array_of_Integer

acceptCurrencyExchangeGoldForWeisOffer(buyerId, buyerPassword, offerId, goldLeosAmount) ⇒ Boolean

Description: Method acceptCurrencyExchangeGoldForWeisOffer

Kind: global function

Param Type
buyerId Address
buyerPassword String
offerId Integer
goldLeosAmount Integer

acceptCurrencyExchangeWeisForGoldOffer(buyerId, buyerPassword, offerId, weisAmount) ⇒ Boolean

Description: Method acceptCurrencyExchangeWeisForGoldOffer

Kind: global function

Param Type
buyerId Address
buyerPassword String
offerId Integer
weisAmount Integer

rejectCurrencyExchangeOffer(buyerId, buyerPassword, offerId) ⇒ Boolean

Description: Method rejectCurrencyExchangeOffer

Kind: global function

Param Type
buyerId Address
buyerPassword String
offerId Integer

getCurrencyExchangeOffersIdsToMe(userId, pos, size) ⇒ Array_of_Integer

Description: Method getCurrencyExchangeOffersIdsToMe

Kind: global function

Param Type Description
userId Address
pos Integer (optional. default: 0)
size Integer (optional. default: 10)

getCurrencyExchangeOffersCountToMe(userId) ⇒ Integer

Description: Method getCurrencyExchangeOffersCountToMe

Kind: global function

Param Type
userId Address

getCurrencyExchangeTradeHistory(tradeTypeCode, userId, startBlock) ⇒ Array_of_Event

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

DASE API methods

(Back)

Functions

addAsset(ownerId, ownerPassword, assetUrl, publicDescription, linkedDabId, custodians, dataHash)Integer

Description: Method addAsset

addAssetsList(ownerId, ownerPassword, dataArr)Array_of_Integer

Description: Method addAssetsList

addTag(ownerId, ownerPassword, 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, userPassword, 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

getCountForTradedDabsIds(userId, tradeTypeCode, dabTypeCode, licenseTypeCode)Integer

Description: Method getCountForTradedDabsIds

getCountForLabelsHierarchy(userId, userPassword, 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, userPassword, tradeTypeCode, licenseTypeCode)Boolean

Description: Method actualiseDeals

offerSellCommonLicense(licenseTypeCode, sellerId, sellerPassword, buyerId, dabId, minLeosPrice)Array_of_Integer

Description: Method offerSellCommonLicense

offerBuyCommonLicense(licenseTypeCode, buyerId, buyerPassword, dabId, maxLeosPrice)Array_of_Integer

Description: Method offerBuyCommonLicense

offerBuyReshareLicense(buyerId, buyerPassword, dabId, maxLeosPrice, resellerId)Boolean

Description: Method offerBuyReshareLicense

offerSellExploreLicense(sellerId, sellerPassword, buyerId, dabId, minLeosPrice, buyerPubKeyEncryptedTagKey)Array_of_Integer

Description: Method offerSellExploreLicense

offerSellLabelLicense(licenseTypeCode, sellerId, sellerPassword, buyerId, minLeosPrice, tagId, dabId)Array_of_Integer

Description: Method offerSellLabelLicense

offerBuyLabelLicense(licenseTypeCode, buyerId, buyerPassword, maxLeosPrice, tagId, dabId)Array_of_Integer

Description: Method offerBuyLabelLicense

approveCommonLicenseDeal(licenseTypeCode, custodianId, custodianPassword, buyerId, dabId)Boolean

Description: Method approveCommonLicenseDeal

approveLabelLicenseDeal(licenseTypeCode, custodianId, custodianPassword, buyerId, tagId, dabId)Boolean

Description: Method approveLabelLicenseDeal

getCustodiansForCommonOffer(licenseTypeCode, buyerId, dabId)Object

Description: Method getCustodiansForCommonOffer

getCustodiansForLabelOffer(licenseTypeCode, buyerId, tagId, dabId)Object

Description: Method getCustodiansForLabelOffer

addRelation(userId, userPassword, licenseTypeCode, fromDabId, toDabId)Boolean

Description: Method addRelation

isHierarchicalChildOf(userId, parentDabId, dabId)Boolean

Description: Method isHierarchicalChildOf

cancelCommonLicenseOffer(licenseTypeCode, userId, userPassword, buyerId, dabId)Boolean

Description: Method cancelCommonLicenseOffer

cancelLabelLicenseOffer(licenseTypeCode, userId, userPassword, buyerId, tagId, dabId)Boolean

Description: Method cancelLabelLicenseOffer

revokeCommonLicenseDeal(licenseTypeCode, sellerId, sellerPassword, buyerId, dabId)Boolean

Description: Method revokeCommonLicenseDeal

revokeLabelLicenseDeal(licenseTypeCode, sellerId, sellerPassword, buyerId, tagId, dabId)Boolean

Description: Method revokeLabelLicenseDeal

getLicenseUsageCount(userId, licenseTypeCode, dabId, buyerId)Integer

Description: Method getLicenseUsageCount

addAsset(ownerId, ownerPassword, assetUrl, publicDescription, linkedDabId, custodians, dataHash) ⇒ Integer

Description: Method addAsset

Kind: global function

Param Type Description
ownerId Address
ownerPassword String
assetUrl String
publicDescription String
linkedDabId Integer (optional. default: 0)
custodians Array_of_Address (optional. default: [])
dataHash String (optional. default: 0)

addAssetsList(ownerId, ownerPassword, dataArr) ⇒ Array_of_Integer

Description: Method addAssetsList

Kind: global function

Param Type
ownerId Address
ownerPassword String
dataArr Array_of_Object

Example
1st:

Call (in pseudo-code):

addAssetsList('0xb9ac1d430841bc99b6c03e772e6f7d755efb1df2','12345678',[{'assetUrl':null,'publicDescription':'dab 01'},{'assetUrl':null,'publicDescription':'dab 02'},{'assetUrl':null,'publicDescription':'dab 03'}]);

Response json-data:

{"result":["494","495","496"]}

addTag(ownerId, ownerPassword, publicDescription, custodians, title, encryptedKey) ⇒ Integer

Description: Method addTag

Kind: global function

Param Type Description
ownerId Address
ownerPassword String
publicDescription String
custodians Array_of_Address (optional. default: [])
title String
encryptedKey String (optional. default: null)

Example
1st:

Call (in pseudo-code):

addTag('0xbf903df49703dd05709a9a3bb542d7229b3049c9','12345678','TAG description',[],'TAG title','TAG encryption key');

Response json-data:

{"result":"448"}

Example
2nd:

Call (in pseudo-code):

addTag('0xbf903df49703dd05709a9a3bb542d7229b3049c9','12345678','the buyer's tag to mark the seller's dab',[],'title',null);

Response json-data:

{"result":"453"}

Example
3th:

Call (in pseudo-code):

addTag('0xb9ac1d430841bc99b6c03e772e6f7d755efb1df2','harmed_passwd_12345678','the tag should be created with correct password',[],'the tag should be created with correct password',null);

Response json-data:

{"result":"Invalid credentials (user's id/password) - account unlock was failed. For method addTag(0xb9ac1d430841bc99b6c03e772e6f7d755efb1df2,harmed_passwd_12345678,the tag should be created with correct password,,the tag should be created with correct password,); "}

getDirectLabelsForDab(userId, dabId, pos, size) ⇒ Array_of_Dab

Description: Method getDirectLabelsForDab

Kind: global function
Returns: Array_of_Dab - Look at Type description in Docs.

Param Type Description
userId Address
dabId Integer
pos Integer (optional. default: 0)
size Integer (optional. default: 100)

Example
1st:

Call (in pseudo-code):

getDirectLabelsForDab('0xbf903df49703dd05709a9a3bb542d7229b3049c9','454',0,100);

Response json-data:

{"result":[{"dabId":"453","dabTypeCode":"2","description":"the buyer's tag to mark the seller's dab","ownerId":"0xBF903dF49703dD05709A9A3bB542D7229b3049c9","custodians":[],"timestamp":"1558460964"}]}

Example
2nd:

Call (in pseudo-code):

getDirectLabelsForDab('0xbf903df49703dd05709a9a3bb542d7229b3049c9','456',0,100);

Response json-data:

{"result":[{"dabId":"455","dabTypeCode":"2","description":"the buyer's tag to mark the seller's dab","ownerId":"0xBF903dF49703dD05709A9A3bB542D7229b3049c9","custodians":[],"timestamp":"1558460968"}]}

getDabs(userId, dabIds, dabTypeCode) ⇒ Array_of_Asset

Description: Method getDabs

Kind: global function
Returns: Array_of_Asset - Look at Type description in Docs.

Param Type Description
userId Address
dabIds Array_of_Integer
dabTypeCode Constant_of_Integer (optional. default: null) Look at Constants description in Docs.

Example
1st:

Call (in pseudo-code):

getDabs('0xb9ac1d430841bc99b6c03e772e6f7d755efb1df2',['447'],null);

Response json-data:

{"result":[{"dabId":"447","dabTypeCode":"1","description":"Data-asset for sell testing","ownerId":"0xB9AC1D430841bC99B6C03E772E6F7d755eFb1dF2","custodians":[],"timestamp":"1558460901"}]}

Example
2nd:

Call (in pseudo-code):

getDabs('0xb9ac1d430841bc99b6c03e772e6f7d755efb1df2',['497'],null);

Response json-data:

{"result":[{"dabId":"497","dabTypeCode":"1","description":"Data-asset for sell testing","ownerId":"0xB9AC1D430841bC99B6C03E772E6F7d755eFb1dF2","custodians":[],"timestamp":"1558461072"}]}

Example
3th:

Call (in pseudo-code):

getDabs('0xb6cc85fb525c1686831fc1029fb0d96e19c532c9',['506'],null);

Response json-data:

{"result":"Invalid request (wrong method or parameters). For method getDabs(0xb6cc85fb525c1686831fc1029fb0d96e19c532c9,506,); Error: Cannot read property 'type' of undefined......"}

getDabPreviousVersionsIds(userId, dabId, maxLength) ⇒ Array_of_Integer

Description: Method getDabPreviousVersionsIds

Kind: global function

Param Type Description
userId Address
dabId Integer
maxLength Integer (optional. default: 1)

getTagEncryptedKey(buyerId, sellerId, tagId) ⇒ Key

Description: Method getTagEncryptedKey

Kind: global function
Returns: Key - Look at Type description in Docs.

Param Type
buyerId Address
sellerId Address
tagId Integer

exploreLabelsHierarchy(userId, userPassword, rootTagId, tagId, pos, size) ⇒ Array_of_Dab

Description: Method exploreLabelsHierarchy

Kind: global function
Returns: Array_of_Dab - Look at Type description in Docs.

Param Type Description
userId Address
userPassword String
rootTagId Integer
tagId Integer
pos Integer (optional. default: 0)
size Integer (optional. default: 10)

getCountForLicenseAgreements(userId, tradeTypeCode, dabTypeCode, licenseTypeCode, dabId) ⇒ Integer

Description: Method getCountForLicenseAgreements

Kind: global function
Returns: Integer - count

Param Type Description
userId Address
tradeTypeCode Constant_of_Integer Look at Constants description in Docs.
dabTypeCode Constant_of_Integer (optional. default: null) Look at Constants description in Docs.
licenseTypeCode Constant_of_Integer (optional. default: null) Look at Constants description in Docs.
dabId Integer (optional. default: null)

Example
1st:

Call (in pseudo-code):

getCountForLicenseAgreements('0x76860597c9df6fb73655bde5a97edb05cdbfe63b',2,1,2,null);

Response json-data:

{"result":"3"}

getCountForLicenseOffers(userId, offerDirectionTypeCode, tradeTypeCode, dabTypeCode, licenseTypeCode, dabId) ⇒ Integer

Description: Method getCountForLicenseOffers

Kind: global function
Returns: Integer - count

Param Type Description
userId Address
offerDirectionTypeCode Constant_of_Integer Look at Constants description in Docs.
tradeTypeCode Constant_of_Integer Look at Constants description in Docs.
dabTypeCode Constant_of_Integer (optional. default: null) Look at Constants description in Docs.
licenseTypeCode Constant_of_Integer (optional. default: null) Look at Constants description in Docs.
dabId Integer (optional. default: null)

Example
1st:

Call (in pseudo-code):

getCountForLicenseOffers('0x76860597c9df6fb73655bde5a97edb05cdbfe63b',1,1,1,2,null);

Response json-data:

{"result":"0"}

Example
2nd:

Call (in pseudo-code):

getCountForLicenseOffers('0x76860597c9df6fb73655bde5a97edb05cdbfe63b',1,1,1,1,null);

Response json-data:

{"result":"1"}

getCountForTradedDabs(userId, tradeTypeCode, dabTypeCode, licenseTypeCode) ⇒ Integer

Description: Method getCountForTradedDabs

Kind: global function
Returns: Integer - count

Param Type Description
userId Address
tradeTypeCode Constant_of_Integer Look at Constants description in Docs.
dabTypeCode Constant_of_Integer (optional. default: null) Look at Constants description in Docs.
licenseTypeCode Constant_of_Integer (optional. default: null) Look at Constants description in Docs.

Example
1st:

Call (in pseudo-code):

getCountForTradedDabs('0x76860597c9df6fb73655bde5a97edb05cdbfe63b',1,1,2);

Response json-data:

{"result":"1"}

getCountForTradedDabsIds(userId, tradeTypeCode, dabTypeCode, licenseTypeCode) ⇒ Integer

Description: Method getCountForTradedDabsIds

Kind: global function
Returns: Integer - count

Param Type Description
userId Address
tradeTypeCode Constant_of_Integer Look at Constants description in Docs.
dabTypeCode Constant_of_Integer (optional. default: null) Look at Constants description in Docs.
licenseTypeCode Constant_of_Integer (optional. default: null) Look at Constants description in Docs.

Example
1st:

Call (in pseudo-code):

getCountForTradedDabsIds('0xaded02b57bf425ba0fddbe81302c1caf8e616e61',1,1,2);

Response json-data:

{"result":"3"}

getCountForLabelsHierarchy(userId, userPassword, rootTagId, tagId) ⇒ Integer

Description: Method getCountForLabelsHierarchy

Kind: global function
Returns: Integer - count

Param Type
userId Address
userPassword String
rootTagId Integer
tagId Integer

Example
1st:

Call (in pseudo-code):

getCountForLabelsHierarchy('0x76860597c9df6fb73655bde5a97edb05cdbfe63b','12345678',1,1);

Response json-data:

{"result":"0"}

getCountForDirectLabelsForDab(userId, dabId) ⇒ Integer

Description: Method getCountForDirectLabelsForDab

Kind: global function
Returns: Integer - count

Param Type
userId Address
dabId Integer

Example
1st:

Call (in pseudo-code):

getCountForDirectLabelsForDab('0x76860597c9df6fb73655bde5a97edb05cdbfe63b','518');

Response json-data:

{"result":"0"}

getLicenseAgreements(userId, tradeTypeCode, dabTypeCode, licenseTypeCode, dabId, pos, size) ⇒ Array_of_License

Description: Method getLicenseAgreements

Kind: global function
Returns: Array_of_License - Look at Type description in Docs.

Param Type Description
userId Address
tradeTypeCode Constant_of_Integer Look at Constants description in Docs.
dabTypeCode Constant_of_Integer (optional. default: null) Look at Constants description in Docs.
licenseTypeCode Constant_of_Integer (optional. default: null) Look at Constants description in Docs.
dabId Integer (optional. default: null)
pos Integer (optional. default: 0)
size Integer (optional. default: 10)

getLicenseOffers(userId, offerDirectionTypeCode, tradeTypeCode, dabTypeCode, licenseTypeCode, dabId, pos, size) ⇒ Array_of_License

Description: Method getLicenseOffers

Kind: global function
Returns: Array_of_License - Look at Type description in Docs.

Param Type Description
userId Address
offerDirectionTypeCode Constant_of_Integer Look at Constants description in Docs.
tradeTypeCode Constant_of_Integer Look at Constants description in Docs.
dabTypeCode Constant_of_Integer (optional. default: null) Look at Constants description in Docs.
licenseTypeCode Constant_of_Integer (optional. default: null) Look at Constants description in Docs.
dabId Integer (optional. default: null)
pos Integer (optional. default: 0)
size Integer (optional. default: 10)

getTradedDabs(userId, tradeTypeCode, dabTypeCode, licenseTypeCode, pos, size) ⇒ Array_of_Object

Description: Method getTradedDabs

Kind: global function
Returns: Array_of_Object - dabsAndLicensesCodes

Param Type Description
userId Address
tradeTypeCode Constant_of_Integer Look at Constants description in Docs.
dabTypeCode Constant_of_Integer (optional. default: null) Look at Constants description in Docs.
licenseTypeCode Constant_of_Integer (optional. default: null) Look at Constants description in Docs.
pos Integer (optional. default: 0)
size Integer (optional. default: 10)

getTradedDabsIds(userId, tradeTypeCode, dabTypeCode, licenseTypeCode, pos, size) ⇒ Array_of_Object

Description: Method getTradedDabsIds

Kind: global function
Returns: Array_of_Object - dabsIdsAndLicensesCodes

Param Type Description
userId Address
tradeTypeCode Constant_of_Integer Look at Constants description in Docs.
dabTypeCode Constant_of_Integer (optional. default: null) Look at Constants description in Docs.
licenseTypeCode Constant_of_Integer (optional. default: null) Look at Constants description in Docs.
pos Integer (optional. default: 0)
size Integer (optional. default: 10)

actualiseDeals(userId, userPassword, tradeTypeCode, licenseTypeCode) ⇒ Boolean

Description: Method actualiseDeals

Kind: global function

Param Type Description
userId Address
userPassword String
tradeTypeCode Constant_of_Integer Look at Constants description in Docs.
licenseTypeCode Constant_of_Integer Look at Constants description in Docs.

offerSellCommonLicense(licenseTypeCode, sellerId, sellerPassword, buyerId, dabId, minLeosPrice) ⇒ Array_of_Integer

Description: Method offerSellCommonLicense

Kind: global function
Returns: Array_of_Integer - tradeStatusCode

Param Type Description
licenseTypeCode Constant_of_Integer Look at Constants description in Docs.
sellerId Address
sellerPassword String
buyerId Address
dabId Integer
minLeosPrice Integer

Example
1st:

Call (in pseudo-code):

offerSellCommonLicense(2,'0xb9ac1d430841bc99b6c03e772e6f7d755efb1df2','12345678','0xbf903df49703dd05709a9a3bb542d7229b3049c9','447',10000000);

Response json-data:

{"result":"201"}

Example
2nd:

Call (in pseudo-code):

offerSellCommonLicense(1,'0xbf903df49703dd05709a9a3bb542d7229b3049c9','12345678','0xb9ac1d430841bc99b6c03e772e6f7d755efb1df2','448',10000000);

Response json-data:

{"result":"201"}

offerBuyCommonLicense(licenseTypeCode, buyerId, buyerPassword, dabId, maxLeosPrice) ⇒ Array_of_Integer

Description: Method offerBuyCommonLicense

Kind: global function
Returns: Array_of_Integer - tradeStatusCode

Param Type Description
licenseTypeCode Constant_of_Integer Look at Constants description in Docs.
buyerId Address
buyerPassword String
dabId Integer
maxLeosPrice Integer

Example
1st:

Call (in pseudo-code):

offerBuyCommonLicense(1,'0xb9ac1d430841bc99b6c03e772e6f7d755efb1df2','12345678',448,10000000);

Response json-data:

{"result":"201"}

Example
2nd:

Call (in pseudo-code):

offerBuyCommonLicense(2,'0xbf903df49703dd05709a9a3bb542d7229b3049c9','12345678',447,10000000);

Response json-data:

{"result":"201"}

offerBuyReshareLicense(buyerId, buyerPassword, dabId, maxLeosPrice, resellerId) ⇒ Boolean

Description: Method offerBuyReshareLicense

Kind: global function

Param Type
buyerId Address
buyerPassword String
dabId Integer
maxLeosPrice Integer
resellerId Integer

offerSellExploreLicense(sellerId, sellerPassword, buyerId, dabId, minLeosPrice, buyerPubKeyEncryptedTagKey) ⇒ Array_of_Integer

Description: Method offerSellExploreLicense

Kind: global function
Returns: Array_of_Integer - tradeStatusCode

Param Type Description
sellerId Address
sellerPassword String
buyerId Address
dabId Integer
minLeosPrice Integer
buyerPubKeyEncryptedTagKey String (optional. default: null)

offerSellLabelLicense(licenseTypeCode, sellerId, sellerPassword, buyerId, minLeosPrice, tagId, dabId) ⇒ Array_of_Integer

Description: Method offerSellLabelLicense

Kind: global function
Returns: Array_of_Integer - tradeStatusCode

Param Type Description
licenseTypeCode Constant_of_Integer Look at Constants description in Docs.
sellerId Address
sellerPassword String
buyerId Address
minLeosPrice Integer
tagId Integer (optional. default: 0)
dabId Integer (optional. default: 0)

Example
1st:

Call (in pseudo-code):

offerSellLabelLicense(64,'0xb9ac1d430841bc99b6c03e772e6f7d755efb1df2','12345678','0xbf903df49703dd05709a9a3bb542d7229b3049c9',10000000,0,'454');

Response json-data:

{"result":"201"}

Example
2nd:

Call (in pseudo-code):

offerSellLabelLicense(64,'0xb9ac1d430841bc99b6c03e772e6f7d755efb1df2','12345678','0xbf903df49703dd05709a9a3bb542d7229b3049c9',10000000,0,'456');

Response json-data:

{"result":"201"}

offerBuyLabelLicense(licenseTypeCode, buyerId, buyerPassword, maxLeosPrice, tagId, dabId) ⇒ Array_of_Integer

Description: Method offerBuyLabelLicense

Kind: global function
Returns: Array_of_Integer - tradeStatusCode

Param Type Description
licenseTypeCode Constant_of_Integer Look at Constants description in Docs.
buyerId Address
buyerPassword String
maxLeosPrice Integer
tagId Integer (optional. default: 0)
dabId Integer (optional. default: 0)

Example
1st:

Call (in pseudo-code):

offerBuyLabelLicense(64,'0xbf903df49703dd05709a9a3bb542d7229b3049c9','12345678',10000000,0,'454');

Response json-data:

{"result":"202"}

Example
2nd:

Call (in pseudo-code):

offerBuyLabelLicense(64,'0xbf903df49703dd05709a9a3bb542d7229b3049c9','12345678',10000000,0,'456');

Response json-data:

{"result":"202"}

approveCommonLicenseDeal(licenseTypeCode, custodianId, custodianPassword, buyerId, dabId) ⇒ Boolean

Description: Method approveCommonLicenseDeal

Kind: global function

Param Type Description
licenseTypeCode Constant_of_Integer Look at Constants description in Docs.
custodianId Address
custodianPassword String
buyerId Address
dabId Integer

approveLabelLicenseDeal(licenseTypeCode, custodianId, custodianPassword, buyerId, tagId, dabId) ⇒ Boolean

Description: Method approveLabelLicenseDeal

Kind: global function

Param Type Description
licenseTypeCode Constant_of_Integer Look at Constants description in Docs.
custodianId Address
custodianPassword String
buyerId Address
tagId Integer (optional. default: 0)
dabId Integer (optional. default: 0)

getCustodiansForCommonOffer(licenseTypeCode, buyerId, dabId) ⇒ Object

Description: Method getCustodiansForCommonOffer

Kind: global function
Returns: Object - custodiansArrays

Param Type Description
licenseTypeCode Constant_of_Integer Look at Constants description in Docs.
buyerId Address
dabId Integer

getCustodiansForLabelOffer(licenseTypeCode, buyerId, tagId, dabId) ⇒ Object

Description: Method getCustodiansForLabelOffer

Kind: global function
Returns: Object - custodiansArrays

Param Type Description
licenseTypeCode Constant_of_Integer Look at Constants description in Docs.
buyerId Address
tagId Integer (optional. default: 0)
dabId Integer (optional. default: 0)

addRelation(userId, userPassword, licenseTypeCode, fromDabId, toDabId) ⇒ Boolean

Description: Method addRelation

Kind: global function

Param Type Description
userId Address
userPassword String
licenseTypeCode Constant_of_Integer (optional. default: null) Look at Constants description in Docs.
fromDabId Integer
toDabId Integer

Example
1st:

Call (in pseudo-code):

addRelation('0xbf903df49703dd05709a9a3bb542d7229b3049c9','12345678',64,'453','454');

Response json-data:

{"result":true}

Example
2nd:

Call (in pseudo-code):

addRelation('0xbf903df49703dd05709a9a3bb542d7229b3049c9','12345678',64,'455','456');

Response json-data:

{"result":true}

isHierarchicalChildOf(userId, parentDabId, dabId) ⇒ Boolean

Description: Method isHierarchicalChildOf

Kind: global function

Param Type
userId Address
parentDabId Integer
dabId Integer

cancelCommonLicenseOffer(licenseTypeCode, userId, userPassword, buyerId, dabId) ⇒ Boolean

Description: Method cancelCommonLicenseOffer

Kind: global function
Returns: Boolean - isOk

Param Type Description
licenseTypeCode Constant_of_Integer Look at Constants description in Docs.
userId Address
userPassword String
buyerId Address
dabId Integer

Example
1st:

Call (in pseudo-code):

cancelCommonLicenseOffer(1,'0xb9ac1d430841bc99b6c03e772e6f7d755efb1df2','12345678','0xb9ac1d430841bc99b6c03e772e6f7d755efb1df2','448');

Response json-data:

{"result":true}

Example
2nd:

Call (in pseudo-code):

cancelCommonLicenseOffer(2,'0xbf903df49703dd05709a9a3bb542d7229b3049c9','12345678','0xbf903df49703dd05709a9a3bb542d7229b3049c9','447');

Response json-data:

{"result":true}

cancelLabelLicenseOffer(licenseTypeCode, userId, userPassword, buyerId, tagId, dabId) ⇒ Boolean

Description: Method cancelLabelLicenseOffer

Kind: global function
Returns: Boolean - isOk

Param Type Description
licenseTypeCode Constant_of_Integer Look at Constants description in Docs.
userId Address
userPassword String
buyerId Address
tagId Integer (optional. default: 0)
dabId Integer (optional. default: 0)

revokeCommonLicenseDeal(licenseTypeCode, sellerId, sellerPassword, buyerId, dabId) ⇒ Boolean

Description: Method revokeCommonLicenseDeal

Kind: global function
Returns: Boolean - isOk

Param Type Description
licenseTypeCode Constant_of_Integer Look at Constants description in Docs.
sellerId Address
sellerPassword String
buyerId Address
dabId Integer

Example
1st:

Call (in pseudo-code):

revokeCommonLicenseDeal(2,'0xb9ac1d430841bc99b6c03e772e6f7d755efb1df2','12345678','0xbf903df49703dd05709a9a3bb542d7229b3049c9','447');

Response json-data:

{"result":true}

Example
2nd:

Call (in pseudo-code):

revokeCommonLicenseDeal(1,'0xbf903df49703dd05709a9a3bb542d7229b3049c9','12345678','0xb9ac1d430841bc99b6c03e772e6f7d755efb1df2','448');

Response json-data:

{"result":false}

revokeLabelLicenseDeal(licenseTypeCode, sellerId, sellerPassword, buyerId, tagId, dabId) ⇒ Boolean

Description: Method revokeLabelLicenseDeal

Kind: global function
Returns: Boolean - isOk

Param Type Description
licenseTypeCode Constant_of_Integer Look at Constants description in Docs.
sellerId Address
sellerPassword String
buyerId Address
tagId Integer (optional. default: 0)
dabId Integer (optional. default: 0)

Example
1st:

Call (in pseudo-code):

revokeLabelLicenseDeal(8,'0xb9ac1d430841bc99b6c03e772e6f7d755efb1df2','12345678','0xbf903df49703dd05709a9a3bb542d7229b3049c9','484','483');

Response json-data:

{"result":true}

Example
2nd:

Call (in pseudo-code):

revokeLabelLicenseDeal(8,'0xb9ac1d430841bc99b6c03e772e6f7d755efb1df2','12345678','0xbf903df49703dd05709a9a3bb542d7229b3049c9','486','485');

Response json-data:

{"result":true}

getLicenseUsageCount(userId, licenseTypeCode, dabId, buyerId) ⇒ Integer

Description: Method getLicenseUsageCount

Kind: global function
Returns: Integer - newCount

Param Type Description
userId Address
licenseTypeCode Constant_of_Integer Look at Constants description in Docs.
dabId Integer
buyerId Address

Example
1st:

Call (in pseudo-code):

getLicenseUsageCount('0xbf903df49703dd05709a9a3bb542d7229b3049c9',2,'502','0xbf903df49703dd05709a9a3bb542d7229b3049c9');

Response json-data:

{"result":"2"}

PDS API methods

(Back)

Functions

useLicenses(buyerId, buyerPassword, dabIds, licenseTypeCode)Array_of_Integer

Description: Method useLicenses

listVaults(ownerId)Array_of_Vault

Description: Method listVaults

getPdsPublicKey()String

Description: Method getPdsPublicKey

getUploadTicket(userId, password, vaultAuth)Ticket

Description: Method getUploadTicket

getAccessTicketSecured(dealMessageId, buyerId, sellerId, argsBuyerSignature, publicKey, vaultAuth)Ticket

Description: Method getAccessTicketSecured

getAccessTickets(dabIds, buyerId, sellerIds, argsBuyerSignature, publicKey, vaultAuth)Ticket

Description: Method getAccessTickets

getBulkAccessTicket(dabId, buyerId, bulkSellerId, tagId, argsBuyerSignature, publicKey, vaultAuth)Ticket

Description: Method getBulkAccessTicket

getAccessDab(dabId, buyerId, sellerId, argsBuyerSignature, publicKey)Dab

Description: Method getAccessDab

getBulkAccessDab(dabId, buyerId, bulkSellerId, tagId, argsBuyerSignature, publicKey)Dab

Description: Method getBulkAccessDab

useLicenses(buyerId, buyerPassword, dabIds, licenseTypeCode) ⇒ Array_of_Integer

Description: Method useLicenses

Kind: global function
Returns: Array_of_Integer - newUsageCounts

Param Type Description
buyerId Address
buyerPassword String
dabIds Array_of_Integer
licenseTypeCode Constant_of_Integer Look at Constants description in Docs.

Example
1st:

Call (in pseudo-code):

useLicenses('0xbf903df49703dd05709a9a3bb542d7229b3049c9','12345678',['500','501'],2);

Response json-data:

{"result":["1","1"]}

listVaults(ownerId) ⇒ Array_of_Vault

Description: Method listVaults

Kind: global function
Returns: Array_of_Vault - Look at Type description in Docs.

Param Type
ownerId Address

Example
1st:

Call (in pseudo-code):

listVaults('0xbf903df49703dd05709a9a3bb542d7229b3049c9');

Response json-data:

{"result":[{"id":"1","name":"Google Storage vault","pubKey":null,"rpc_options":{"port":0,"host_local":"http://localhost:5080","host_lvm4":"http://35.232.147.124:5080","host_partner":"http://partner.dase.io:5080","host":"http://localhost:5080","external_port":0,"external_ip_local":"http://localhost:5080","external_ip_vm4":"http://35.232.147.124:5080","external_ip_partner":"http://partner.dase.io:5080","external_ip":"http://partner.dase.io:5080","path":"/","strict":false},"host":"localhost:5080","external_ip":"localhost:5080"},{"id":"2","name":"Lively video vault","pubKey":null,"uploadUrl":"https://dev.livelyvideo.tv","authUrl":"http://104.197.24.49:8085/vex-vault/api/lively/access","downloadUrl":"https://dev.livelyvideo.tv/api/asset/v/","rpc_options":{"port":0,"host":"http://104.197.24.49:8085/vex-vault/api/lively/access","external_port":0,"external_ip":"http://104.197.24.49:8085/vex-vault/api/lively/access","path":"/","strict":false}},{"id":"3","name":"Open MRS vault","pubKey":null,"rpc_options":{"port":0,"host":"http://127.0.0.1:5580","external_port":0,"external_ip":"http://127.0.0.1:5580","path":"/","strict":false}}]}

getPdsPublicKey() ⇒ String

Description: Method getPdsPublicKey

Kind: global function
Returns: String - pubKey
Example
1st:

Call (in pseudo-code):

getPdsPublicKey();

Response json-data:

{"result":"0x533cd169d224435cf9ae352736257a033ce591f8629d294800c3cc7960ac010f784082f236db170372811231de9a8738abf9e94ecfb9ce099bb0c2bda7a4d273"}

getUploadTicket(userId, password, vaultAuth) ⇒ Ticket

Description: Method getUploadTicket

Kind: global function
Returns: Ticket - Look at Type description in Docs.

Param Type Description
userId Address
password String
vaultAuth Object (optional. default: null)

getAccessTicketSecured(dealMessageId, buyerId, sellerId, argsBuyerSignature, publicKey, vaultAuth) ⇒ Ticket

Description: Method getAccessTicketSecured

Kind: global function
Returns: Ticket - Look at Type description in Docs.

Param Type Description
dealMessageId Integer
buyerId Address
sellerId Address
argsBuyerSignature String
publicKey String
vaultAuth Object (optional. default: null)

getAccessTickets(dabIds, buyerId, sellerIds, argsBuyerSignature, publicKey, vaultAuth) ⇒ Ticket

Description: Method getAccessTickets

Kind: global function
Returns: Ticket - Look at Type description in Docs.

Param Type Description
dabIds Array_of_Integer
buyerId Address
sellerIds Array_of_Address
argsBuyerSignature String
publicKey String
vaultAuth Object (optional. default: null)

Example
1st:

Call (in pseudo-code):

getAccessTickets(['500','501'],'0xbf903df49703dd05709a9a3bb542d7229b3049c9',['0xb9ac1d430841bc99b6c03e772e6f7d755efb1df2','0xb9ac1d430841bc99b6c03e772e6f7d755efb1df2'],'3046022100b75871b80051190c8990b0ff60ed56f40c559e7d7a5a0e295ecda5cd634b8a4f022100d084d94fa4aa79ae35f1df2c30d711ef1ee5176e9d932b75fe9c8ab02cc4818e','0xfaa8fb6ab825488989fca408e69f855da2db64e9b1db00f1ad6754bbfb5f5bbafd3ece9683ae9e0a1f7234bd32cef2f6b33528275fdd4b96be709843910255b7',null);

Response json-data:

{"result":[{"id":"tid-103488.710847","type":"read","creationTimeInMs":"1558461084620","timeToLiveInMs":"1200000","userId":"0xbf903df49703dd05709a9a3bb542d7229b3049c9","assetUrl":"proto://user@addr/path/to/asset","vaultUrl":null,"vaultAuth":null,"nonce":"n-174027","checksum":null,"signature":"304402203cd16e6df2b50fc508e24aafc2f5580af78a09e57019a0598b5c044592ebe67d02205d13b9cdbd7ac43761f3f6647eee30d691e223520a4bbf947e31177e04602286"},{"id":"tid-386476.343303","type":"read","creationTimeInMs":"1558461084623","timeToLiveInMs":"1200000","userId":"0xbf903df49703dd05709a9a3bb542d7229b3049c9","assetUrl":"proto://user@addr/path/to/asset","vaultUrl":null,"vaultAuth":null,"nonce":"n-893066","checksum":null,"signature":"3045022100844cd8e97c6b081542fe477398c95adfcef3e1192d32a924c17d82dff81d8933022027541bda8c8f01c3c48745af948b6dadb685a7cb78c1f192c80c2813f56e350a"}]}

Example
2nd:

Call (in pseudo-code):

getAccessTickets(['500','501'],'0xb9ac1d430841bc99b6c03e772e6f7d755efb1df2',['0xb9ac1d430841bc99b6c03e772e6f7d755efb1df2','0xb9ac1d430841bc99b6c03e772e6f7d755efb1df2'],'3044022025403a557ed30ae1db84067a5d682c2a2e79db51d40cc1ae5973970916b74e6a02206ce825b6e143f1b42ab95a0e30b35d86b7ee479ce3715dc0bd82c00d6b2a7e50','0x86e6f8578e725eb36e856580b1089255c79ecfe06bd79b6a08832be869871b90022c7c134e24c9ca0c36c3372be40fccc6a9875c650a6291b4e2a2eae881a5a1',null);

Response json-data:

{"result":[{"id":"tid-105376.955632","type":"read","creationTimeInMs":"1558461084746","timeToLiveInMs":"1200000","userId":"0xb9ac1d430841bc99b6c03e772e6f7d755efb1df2","assetUrl":"proto://user@addr/path/to/asset","vaultUrl":null,"vaultAuth":null,"nonce":"n-126825","checksum":null,"signature":"30440220299ac7c8d1d29d42b9e638efe236db96bc562d3db2a82b53d906ce8c9db0e7af022037796e2cea1e1f1efadd1ff92599353af100f0ec1976ba4a2de50e4e1d010e68"},{"id":"tid-873393.392048","type":"read","creationTimeInMs":"1558461084749","timeToLiveInMs":"1200000","userId":"0xb9ac1d430841bc99b6c03e772e6f7d755efb1df2","assetUrl":"proto://user@addr/path/to/asset","vaultUrl":null,"vaultAuth":null,"nonce":"n-173146","checksum":null,"signature":"3044022026091d3f6ea3f0d006ba7fe9d50c92b13a24074ce61789bc4721593fe5a144bc02204d8db934bfa1d25139173fbd4369dae428277b099876f09f9b5efa1c1ea1f42e"}]}

getBulkAccessTicket(dabId, buyerId, bulkSellerId, tagId, argsBuyerSignature, publicKey, vaultAuth) ⇒ Ticket

Description: Method getBulkAccessTicket

Kind: global function
Returns: Ticket - Look at Type description in Docs.

Param Type Description
dabId Integer
buyerId Address
bulkSellerId Address
tagId Integer
argsBuyerSignature String
publicKey String
vaultAuth Object (optional. default: null)

Example
1st:

Call (in pseudo-code):

getBulkAccessTicket(null,'0xbf903df49703dd05709a9a3bb542d7229b3049c9','0xb9ac1d430841bc99b6c03e772e6f7d755efb1df2','504','3045022100f8ab665d45c04d8cc6445d32a5c3415502ba2ef375d1958b2ffd4fad6f2dc948022065ca51c8e262b51e3273f8b4e9a09f38fc5c3c5be4d505e065cd5f3adda803d6','0xfaa8fb6ab825488989fca408e69f855da2db64e9b1db00f1ad6754bbfb5f5bbafd3ece9683ae9e0a1f7234bd32cef2f6b33528275fdd4b96be709843910255b7',null);

Response json-data:

{"result":"Invalid request (wrong method or parameters). For method getBulkAccessTicket(,0xbf903df49703dd05709a9a3bb542d7229b3049c9,0xb9ac1d430841bc99b6c03e772e6f7d755efb1df2,504,3045022100f8ab665d45c04d8cc6445d32a5c3415502ba2ef375d1958b2ffd4fad6f2dc948022065ca51c8e262b51e3273f8b4e9a09f38fc5c3c5be4d505e065cd5f3adda803d6,0xfaa8fb6ab825488989fca408e69f855da2db64e9b1db00f1ad6754bbfb5f5bbafd3ece9683ae9e0a1f7234bd32cef2f6b33528275fdd4b96be709843910255b7,); dabId was not specified..."}

Example
2nd:

Call (in pseudo-code):

getBulkAccessTicket('505','0xbf903df49703dd05709a9a3bb542d7229b3049c9','0xb9ac1d430841bc99b6c03e772e6f7d755efb1df2','504','3045022013b88e496984093c211c9cdd3aa29f9bf6ccdf2ea08933ee831290edcea98ab7022100cc9594abd2cf1c34c24c6ce1da972eb7463385bdba6e5780950bd60510593e40','0xfaa8fb6ab825488989fca408e69f855da2db64e9b1db00f1ad6754bbfb5f5bbafd3ece9683ae9e0a1f7234bd32cef2f6b33528275fdd4b96be709843910255b7',null);

Response json-data:

{"result":{"id":"tid-174457.922718","type":"read","creationTimeInMs":"1558461219092","timeToLiveInMs":"1200000","userId":"0xbf903df49703dd05709a9a3bb542d7229b3049c9","assetUrl":"proto://user@addr/path/to/asset","vaultUrl":null,"vaultAuth":null,"nonce":"n-643328","checksum":null,"signature":"3045022100c9e6dc4629a0705f18fa10a4ad821b89bd7cac03b67e6886ade3739db5d4a480022007dfa4417ba196418739a521b65fc84b918cec9d9229b76fdf7aed52b82aed32"}}

Example
3th:

Call (in pseudo-code):

getBulkAccessTicket('507','0xbf903df49703dd05709a9a3bb542d7229b3049c9','0xb9ac1d430841bc99b6c03e772e6f7d755efb1df2','504','3045022100e6915f76d852d446156649281fe3ef6462a1a2efc5e6e25733810efd61d05ce902200978ae0f64b5f68b3d25f25b03a294e168fe2a1fd2f94d57ffedee1b8a56d0e2','0xfaa8fb6ab825488989fca408e69f855da2db64e9b1db00f1ad6754bbfb5f5bbafd3ece9683ae9e0a1f7234bd32cef2f6b33528275fdd4b96be709843910255b7',null);

Response json-data:

{"result":"Invalid request (wrong method or parameters). For method getBulkAccessTicket(507,0xbf903df49703dd05709a9a3bb542d7229b3049c9,0xb9ac1d430841bc99b6c03e772e6f7d755efb1df2,504,3045022100e6915f76d852d446156649281fe3ef6462a1a2efc5e6e25733810efd61d05ce902200978ae0f64b5f68b3d25f25b03a294e168fe2a1fd2f94d57ffedee1b8a56d0e2,0xfaa8fb6ab825488989fca408e69f855da2db64e9b1db00f1ad6754bbfb5f5bbafd3ece9683ae9e0a1f7234bd32cef2f6b33528275fdd4b96be709843910255b7,); Bulk Access denied..."}

getAccessDab(dabId, buyerId, sellerId, argsBuyerSignature, publicKey) ⇒ Dab

Description: Method getAccessDab

Kind: global function
Returns: Dab - Look at Type description in Docs.

Param Type
dabId Integer
buyerId Address
sellerId Address
argsBuyerSignature String
publicKey String

getBulkAccessDab(dabId, buyerId, bulkSellerId, tagId, argsBuyerSignature, publicKey) ⇒ Dab

Description: Method getBulkAccessDab

Kind: global function
Returns: Dab - Look at Type description in Docs.

Param Type
dabId Integer
buyerId Address
bulkSellerId Address
tagId Integer
argsBuyerSignature String
publicKey String

KEYCHAIN API methods

(Back)

Functions

newAccount(account, secret, encryptedKeyData)Boolean

Description: Method newAccount

getChallenge(account)String

Description: Method getChallenge

getEncryptedKeyData(account, responseOnChallenge)BytesArray

Description: Method getEncryptedKeyData

newAccount(account, secret, encryptedKeyData) ⇒ Boolean

Description: Method newAccount

Kind: global function

Param Type
account String
secret String
encryptedKeyData BytesArray

getChallenge(account) ⇒ String

Description: Method getChallenge

Kind: global function

Param Type
account String

getEncryptedKeyData(account, responseOnChallenge) ⇒ BytesArray

Description: Method getEncryptedKeyData

Kind: global function

Param Type
account String
responseOnChallenge String

DEPRECATED.CORE API methods

(Back)

Functions

newUser_Zetonium(password)Keys
newUser_Ethereum(password)Keys
getKeys_Zetonium(userId, password)Keys
getKeys_Ethereum(userId, password)Keys
transferOut_Zetonium(srcUserId, password, destUserId, amount)Transaction
transferOut_Ethereum(srcUserId, password, destUserId, amount)Transaction
getLastBlock_Zetonium()Integer
getLastBlock_Ethereum()Integer
isValidUser_Zetonium(userId, password)Boolean
isValidUser_Ethereum(userId, password)Boolean
sendSilver(senderId, senderPassword, silverAmount, toUserId)Transaction
sendGold_Ethereum(senderId, senderPassword, goldAmount, toUserId)Transaction
getSilverBalance(userId)Integer
getGoldBalance_Ethereum(userId)Integer
getBalanceWeis_Ethereum(userId)Integer
getCurrencyExchangeOffer(userId, offerId)Object
getCurrencyExchangePurchaseHistory(userId, startBlock)Array_of_Event
getCurrencyExchangeSellHistory(userId, startBlock)Array_of_Event

newUser_Zetonium(password) ⇒ Keys

Deprecated

Kind: global function
Returns: Keys - Look at Type description in Docs.

Param Type
password String

newUser_Ethereum(password) ⇒ Keys

Deprecated

Kind: global function
Returns: Keys - Look at Type description in Docs.

Param Type
password String

getKeys_Zetonium(userId, password) ⇒ Keys

Deprecated

Kind: global function
Returns: Keys - Look at Type description in Docs.

Param Type
userId Address
password String

getKeys_Ethereum(userId, password) ⇒ Keys

Deprecated

Kind: global function
Returns: Keys - Look at Type description in Docs.

Param Type
userId Address
password String

transferOut_Zetonium(srcUserId, password, destUserId, amount) ⇒ Transaction

Deprecated

Kind: global function
Returns: Transaction - Look at Type description in Docs.

Param Type
srcUserId Address
password String
destUserId Address
amount Integer

transferOut_Ethereum(srcUserId, password, destUserId, amount) ⇒ Transaction

Deprecated

Kind: global function
Returns: Transaction - Look at Type description in Docs.

Param Type
srcUserId Address
password String
destUserId Address
amount Integer

getLastBlock_Zetonium() ⇒ Integer

Deprecated

Kind: global function

getLastBlock_Ethereum() ⇒ Integer

Deprecated

Kind: global function

isValidUser_Zetonium(userId, password) ⇒ Boolean

Deprecated

Kind: global function

Param Type
userId Address
password String

isValidUser_Ethereum(userId, password) ⇒ Boolean

Deprecated

Kind: global function

Param Type
userId Address
password String

sendSilver(senderId, senderPassword, silverAmount, toUserId) ⇒ Transaction

Deprecated

Kind: global function
Returns: Transaction - Look at Type description in Docs.

Param Type
senderId Address
senderPassword String
silverAmount Integer
toUserId Address

sendGold_Ethereum(senderId, senderPassword, goldAmount, toUserId) ⇒ Transaction

Deprecated

Kind: global function
Returns: Transaction - Look at Type description in Docs.

Param Type
senderId Address
senderPassword String
goldAmount Integer
toUserId Address

getSilverBalance(userId) ⇒ Integer

Deprecated

Kind: global function

Param Type
userId Address

getGoldBalance_Ethereum(userId) ⇒ Integer

Deprecated

Kind: global function

Param Type
userId Address

getBalanceWeis_Ethereum(userId) ⇒ Integer

Deprecated

Kind: global function

Param Type
userId Address

getCurrencyExchangeOffer(userId, offerId) ⇒ Object

Deprecated

Kind: global function

Param Type
userId Address
offerId Integer

getCurrencyExchangePurchaseHistory(userId, startBlock) ⇒ Array_of_Event

Deprecated

Kind: global function
Returns: Array_of_Event - Look at Type description in Docs.

Param Type
userId Address
startBlock Integer

getCurrencyExchangeSellHistory(userId, startBlock) ⇒ Array_of_Event

Deprecated

Kind: global function
Returns: Array_of_Event - Look at Type description in Docs.

Param Type
userId Address
startBlock Integer

DEPRECATED.DASE API methods

(Back)

Functions

addDab(ownerId, ownerPassword, assetUrl, publicDescription, linkedDabId, custodians, dataHash)Integer
addDabList(ownerId, ownerPassword, dataArr)Array_of_Integer
getDirectLabelsIdsForDab(userId, dabId, pos, size)Array_of_Integer
getOwnedDabsIds(userId, pos, size)Array_of_Integer
getSharedDabsIds(userId)Array_of_Integer
getCustodiedDabsIds(userId)Array_of_Integer
getTags(userId, tagIds)Array_of_Tag
exploreTagRelationsPage(userId, userPassword, rootTagId, tagId, pos)Array_of_Dab
getAvailableDabs(userId, dabTypeCode, licenseTypeCode, pos, size)Array_of_Dab
getAvailableLicenses(userId, dabTypeCode, licenseTypeCode, pos, size)Array_of_License
getAvailableLicensesForDab(userId, dabId, licenseTypeCode, pos, size)Array_of_License
getAlienSellOfferedLicenses(userId, dabTypeCode, licenseTypeCode, pos, size)Array_of_License
getAlienBuyOfferedLicenses(userId, dabTypeCode, licenseTypeCode, pos, size)Array_of_License
getAlienSellOfferedLicensesForDab(userId, dabId, licenseTypeCode, pos, size)Array_of_License
getAlienBuyOfferedLicensesForDab(userId, dabId, licenseTypeCode, pos, size)Array_of_License
actualiseBoughtDeals(userId, userPassword, licenseTypeCode)Boolean
getSoldDabs(userId, dabTypeCode, licenseTypeCode, pos, size)Array_of_Dab
getSoldLicenses(userId, dabTypeCode, licenseTypeCode, pos, size)Array_of_License
getSoldLicensesForDab(userId, dabId, licenseTypeCode, pos, size)Array_of_License
getMySellOfferedLicenses(userId, dabTypeCode, licenseTypeCode, pos, size)Array_of_License
getMyBuyOfferedLicenses(userId, dabTypeCode, licenseTypeCode, pos, size)Array_of_License
getMySellOfferedLicensesForDab(userId, dabId, licenseTypeCode, pos, size)Array_of_License
getMyBuyOfferedLicensesForDab(userId, dabId, licenseTypeCode, pos, size)Array_of_License
actualiseSoldDeals(userId, userPassword, licenseTypeCode)Boolean
offerBuyExploreLicense(buyerId, buyerPassword, dabId, maxLeosPrice)Array_of_Integer
offerSellOwnership(sellerId, sellerPassword, buyerId, dabId, minPrice)Boolean
offerBuyOwnership(buyerId, buyerPassword, dabId, maxPrice)Boolean
approveOwnershipDeal(custodianId, custodianPassword, buyerId, dabId)Boolean
offerBuyCustody(buyerId, buyerPassword, dabId, maxPrice)Boolean
offerSellCustody(sellerId, sellerPassword, buyerId, dabId, minPrice)Boolean
approveCustodyDeal(custodianId, custodianPassword, buyerId, dabId)Boolean
offerSellAccess(sellerId, sellerPassword, buyerId, dabId, minPrice)Boolean
offerBuyAccess(buyerId, buyerPassword, dabId, maxPrice)Boolean
approveAccessDeal(custodianId, custodianPassword, buyerId, dabId)Boolean
offerSellReshare(sellerId, sellerPassword, buyerId, dabId, minPrice)Boolean
approveReshareDeal(custodianId, custodianPassword, buyerId, dabId)Boolean
offerSellTag(sellerId, sellerPassword, buyerId, dabId, minPrice, tagId)Boolean
offerBuyTag(buyerId, buyerPassword, dabId, maxPrice, tagId)Boolean
approveTagDeal(custodianId, custodianPassword, buyerId, dabId, tagId)Boolean
offerSellToTag(sellerId, sellerPassword, buyerId, buyerTagId, minPrice, sellerDabId)Boolean
offerBuyToTag(buyerId, buyerPassword, buyerTagId, maxPrice, sellerDabId)Boolean
approveToTagDeal(custodianId, custodianPassword, buyerId, buyerTagId, sellerDabId)Boolean
offerSellTagAccess(sellerId, sellerPassword, buyerId, dabId, minPrice)Boolean
offerBuyTagAccess(buyerId, buyerPassword, dabId, maxPrice)Boolean
approveTagAccessDeal(custodianId, custodianPassword, buyerId, dabId)Boolean
offerSellExplore(sellerId, sellerPassword, buyerId, dabId, minPrice, buyerPubKeyEncryptedTagKey)Boolean
offerBuyExplore(buyerId, buyerPassword, dabId, maxPrice)Boolean
approveExploreDeal(custodianId, custodianPassword, buyerId, dabId)Boolean
offerSellBulk(sellerId, sellerPassword, buyerId, dabId, minPrice)Boolean
offerBuyBulk(buyerId, buyerPassword, dabId, maxPrice)Boolean
approveBulkDeal(custodianId, custodianPassword, buyerId, dabId)Boolean
offerSellTransitive(sellerId, sellerPassword, buyerId, dabId, minPrice)Boolean
offerBuyTransitive(buyerId, buyerPassword, dabId, maxPrice)Boolean
approveTransitiveDeal(custodianId, custodianPassword, buyerId, dabId)Boolean
getTotalLicenseFee(licenseTypeCode)Integer
trustToBuyAccess(sellerId, sellerPassword, buyerId, dabId, minPrice)Boolean
trustToBuyOwnership(sellerId, sellerPassword, buyerId, dabId, minPrice)Boolean
untrustToBuyAccess(sellerId, sellerPassword, buyerId, dabId)Boolean
untrustToBuyOwnership(sellerId, sellerPassword, buyerId, dabId)Boolean
recallOwnershipOffer(userId, userPassword, buyerId, dabId)Boolean
rejectOwnershipDeal(sellerId, sellerPassword, buyerId, dabId)Boolean
recallAccessOffer(userId, userPassword, buyerId, dabId)Boolean
rejectAccessDeal(sellerId, sellerPassword, buyerId, dabId)Boolean
cancelReshareLicenseOffer(userId, userPassword, buyerId, dabId)Boolean
rejectReshareDeal(sellerId, sellerPassword, buyerId, dabId)Boolean
recallBulkOffer(userId, userPassword, buyerId, dabId)Boolean
rejectBulkDeal(sellerId, sellerPassword, buyerId, dabId)Boolean
recallTransitiveOffer(userId, userPassword, buyerId, dabId)Boolean
rejectTransitiveDeal(sellerId, sellerPassword, buyerId, dabId)Boolean
recallCustodyOffer(userId, userPassword, buyerId, dabId)Boolean
rejectCustodyDeal(sellerId, sellerPassword, buyerId, dabId)Boolean
recallTagOffer(userId, userPassword, buyerId, dabId, tagId)Boolean
rejectTagDeal(sellerId, sellerPassword, buyerId, dabId, tagId)Boolean
recallToTagOffer(userId, userPassword, buyerId, dabId, tagId)Boolean
rejectToTagDeal(sellerId, sellerPassword, buyerId, dabId, tagId)Boolean
recallTagAccessOffer(userId, userPassword, buyerId, dabId)Boolean
rejectTagAccessDeal(sellerId, sellerPassword, buyerId, dabId)Boolean
recallExploreOffer(userId, userPassword, buyerId, dabId)Boolean
rejectExploreDeal(sellerId, sellerPassword, buyerId, dabId)Boolean
recallReshareOffer(userId, userPassword, buyerId, dabId)Boolean
rejectReshareDeal(sellerId, sellerPassword, buyerId, dabId)Boolean

addDab(ownerId, ownerPassword, assetUrl, publicDescription, linkedDabId, custodians, dataHash) ⇒ Integer

Deprecated

Kind: global function

Param Type Description
ownerId Address
ownerPassword String
assetUrl String
publicDescription String
linkedDabId Integer (optional. default: 0)
custodians Array_of_Address (optional. default: [])
dataHash String (optional. default: 0)

addDabList(ownerId, ownerPassword, dataArr) ⇒ Array_of_Integer

Deprecated

Kind: global function

Param Type
ownerId Address
ownerPassword String
dataArr Array_of_Object

getDirectLabelsIdsForDab(userId, dabId, pos, size) ⇒ Array_of_Integer

Deprecated

Kind: global function

Param Type Description
userId Address
dabId Integer
pos Integer (optional. default: 0)
size Integer (optional. default: 100)

getOwnedDabsIds(userId, pos, size) ⇒ Array_of_Integer

Deprecated

Kind: global function

Param Type Description
userId Address
pos Integer (optional. default: 0)
size Integer (optional. default: 10)

getSharedDabsIds(userId) ⇒ Array_of_Integer

Deprecated

Kind: global function

Param Type
userId Address

getCustodiedDabsIds(userId) ⇒ Array_of_Integer

Deprecated

Kind: global function

Param Type
userId Address

getTags(userId, tagIds) ⇒ Array_of_Tag

Deprecated

Kind: global function
Returns: Array_of_Tag - Look at Type description in Docs.

Param Type
userId Address
tagIds Array_of_Integer

exploreTagRelationsPage(userId, userPassword, rootTagId, tagId, pos) ⇒ Array_of_Dab

Deprecated

Kind: global function
Returns: Array_of_Dab - Look at Type description in Docs.

Param Type Description
userId Address
userPassword String
rootTagId Integer
tagId Integer
pos Integer (optional. default: 0)

getAvailableDabs(userId, dabTypeCode, licenseTypeCode, pos, size) ⇒ Array_of_Dab

Deprecated

Kind: global function
Returns: Array_of_Dab - Look at Type description in Docs.

Param Type Description
userId Address
dabTypeCode Constant_of_Integer (optional. default: null) Look at Constants description in Docs.
licenseTypeCode Constant_of_Integer (optional. default: null) Look at Constants description in Docs.
pos Integer (optional. default: 0)
size Integer (optional. default: 10)

getAvailableLicenses(userId, dabTypeCode, licenseTypeCode, pos, size) ⇒ Array_of_License

Deprecated

Kind: global function
Returns: Array_of_License - Look at Type description in Docs.

Param Type Description
userId Address
dabTypeCode Constant_of_Integer (optional. default: null) Look at Constants description in Docs.
licenseTypeCode Constant_of_Integer (optional. default: null) Look at Constants description in Docs.
pos Integer (optional. default: 0)
size Integer (optional. default: 10)

getAvailableLicensesForDab(userId, dabId, licenseTypeCode, pos, size) ⇒ Array_of_License

Deprecated

Kind: global function
Returns: Array_of_License - Look at Type description in Docs.

Param Type Description
userId Address
dabId Integer
licenseTypeCode Constant_of_Integer (optional. default: null) Look at Constants description in Docs.
pos Integer (optional. default: 0)
size Integer (optional. default: 10)

getAlienSellOfferedLicenses(userId, dabTypeCode, licenseTypeCode, pos, size) ⇒ Array_of_License

Deprecated

Kind: global function
Returns: Array_of_License - Look at Type description in Docs.

Param Type Description
userId Address
dabTypeCode Constant_of_Integer (optional. default: null) Look at Constants description in Docs.
licenseTypeCode Constant_of_Integer (optional. default: null) Look at Constants description in Docs.
pos Integer (optional. default: 0)
size Integer (optional. default: 10)

getAlienBuyOfferedLicenses(userId, dabTypeCode, licenseTypeCode, pos, size) ⇒ Array_of_License

Deprecated

Kind: global function
Returns: Array_of_License - Look at Type description in Docs.

Param Type Description
userId Address
dabTypeCode Constant_of_Integer (optional. default: null) Look at Constants description in Docs.
licenseTypeCode Constant_of_Integer (optional. default: null) Look at Constants description in Docs.
pos Integer (optional. default: 0)
size Integer (optional. default: 10)

getAlienSellOfferedLicensesForDab(userId, dabId, licenseTypeCode, pos, size) ⇒ Array_of_License

Deprecated

Kind: global function
Returns: Array_of_License - Look at Type description in Docs.

Param Type Description
userId Address
dabId Integer
licenseTypeCode Constant_of_Integer (optional. default: null) Look at Constants description in Docs.
pos Integer (optional. default: 0)
size Integer (optional. default: 10)

getAlienBuyOfferedLicensesForDab(userId, dabId, licenseTypeCode, pos, size) ⇒ Array_of_License

Deprecated

Kind: global function
Returns: Array_of_License - Look at Type description in Docs.

Param Type Description
userId Address
dabId Integer
licenseTypeCode Constant_of_Integer (optional. default: null) Look at Constants description in Docs.
pos Integer (optional. default: 0)
size Integer (optional. default: 10)

actualiseBoughtDeals(userId, userPassword, licenseTypeCode) ⇒ Boolean

Deprecated

Kind: global function

Param Type Description
userId Address
userPassword String
licenseTypeCode Constant_of_Integer Look at Constants description in Docs.

getSoldDabs(userId, dabTypeCode, licenseTypeCode, pos, size) ⇒ Array_of_Dab

Deprecated

Kind: global function
Returns: Array_of_Dab - Look at Type description in Docs.

Param Type Description
userId Address
dabTypeCode Constant_of_Integer (optional. default: null) Look at Constants description in Docs.
licenseTypeCode Constant_of_Integer (optional. default: null) Look at Constants description in Docs.
pos Integer (optional. default: 0)
size Integer (optional. default: 10)

getSoldLicenses(userId, dabTypeCode, licenseTypeCode, pos, size) ⇒ Array_of_License

Deprecated

Kind: global function
Returns: Array_of_License - Look at Type description in Docs.

Param Type Description
userId Address
dabTypeCode Constant_of_Integer (optional. default: null) Look at Constants description in Docs.
licenseTypeCode Constant_of_Integer (optional. default: null) Look at Constants description in Docs.
pos Integer (optional. default: 0)
size Integer (optional. default: 10)

getSoldLicensesForDab(userId, dabId, licenseTypeCode, pos, size) ⇒ Array_of_License

Deprecated

Kind: global function
Returns: Array_of_License - Look at Type description in Docs.

Param Type Description
userId Address
dabId Integer
licenseTypeCode Constant_of_Integer (optional. default: null) Look at Constants description in Docs.
pos Integer (optional. default: 0)
size Integer (optional. default: 10)

getMySellOfferedLicenses(userId, dabTypeCode, licenseTypeCode, pos, size) ⇒ Array_of_License

Deprecated

Kind: global function
Returns: Array_of_License - Look at Type description in Docs.

Param Type Description
userId Address
dabTypeCode Constant_of_Integer (optional. default: null) Look at Constants description in Docs.
licenseTypeCode Constant_of_Integer (optional. default: null) Look at Constants description in Docs.
pos Integer (optional. default: 0)
size Integer (optional. default: 10)

getMyBuyOfferedLicenses(userId, dabTypeCode, licenseTypeCode, pos, size) ⇒ Array_of_License

Deprecated

Kind: global function
Returns: Array_of_License - Look at Type description in Docs.

Param Type Description
userId Address
dabTypeCode Constant_of_Integer (optional. default: null) Look at Constants description in Docs.
licenseTypeCode Constant_of_Integer (optional. default: null) Look at Constants description in Docs.
pos Integer (optional. default: 0)
size Integer (optional. default: 10)

getMySellOfferedLicensesForDab(userId, dabId, licenseTypeCode, pos, size) ⇒ Array_of_License

Deprecated

Kind: global function
Returns: Array_of_License - Look at Type description in Docs.

Param Type Description
userId Address
dabId Integer
licenseTypeCode Constant_of_Integer (optional. default: null) Look at Constants description in Docs.
pos Integer (optional. default: 0)
size Integer (optional. default: 10)

getMyBuyOfferedLicensesForDab(userId, dabId, licenseTypeCode, pos, size) ⇒ Array_of_License

Deprecated

Kind: global function
Returns: Array_of_License - Look at Type description in Docs.

Param Type Description
userId Address
dabId Integer
licenseTypeCode Constant_of_Integer (optional. default: null) Look at Constants description in Docs.
pos Integer (optional. default: 0)
size Integer (optional. default: 10)

actualiseSoldDeals(userId, userPassword, licenseTypeCode) ⇒ Boolean

Deprecated

Kind: global function

Param Type Description
userId Address
userPassword String
licenseTypeCode Constant_of_Integer Look at Constants description in Docs.

offerBuyExploreLicense(buyerId, buyerPassword, dabId, maxLeosPrice) ⇒ Array_of_Integer

Deprecated

Kind: global function
Returns: Array_of_Integer - tradeStatusCode

Param Type
buyerId Address
buyerPassword String
dabId Integer
maxLeosPrice Integer

offerSellOwnership(sellerId, sellerPassword, buyerId, dabId, minPrice) ⇒ Boolean

Deprecated

Kind: global function

Param Type
sellerId Address
sellerPassword String
buyerId Address
dabId Integer
minPrice Integer

offerBuyOwnership(buyerId, buyerPassword, dabId, maxPrice) ⇒ Boolean

Deprecated

Kind: global function

Param Type
buyerId Address
buyerPassword String
dabId Integer
maxPrice Integer

approveOwnershipDeal(custodianId, custodianPassword, buyerId, dabId) ⇒ Boolean

Deprecated

Kind: global function

Param Type
custodianId Address
custodianPassword String
buyerId Address
dabId Integer

offerBuyCustody(buyerId, buyerPassword, dabId, maxPrice) ⇒ Boolean

Deprecated

Kind: global function

Param Type
buyerId Address
buyerPassword String
dabId Integer
maxPrice Integer

offerSellCustody(sellerId, sellerPassword, buyerId, dabId, minPrice) ⇒ Boolean

Deprecated

Kind: global function

Param Type
sellerId Address
sellerPassword String
buyerId Address
dabId Integer
minPrice Integer

approveCustodyDeal(custodianId, custodianPassword, buyerId, dabId) ⇒ Boolean

Deprecated

Kind: global function

Param Type
custodianId Address
custodianPassword String
buyerId Address
dabId Integer

offerSellAccess(sellerId, sellerPassword, buyerId, dabId, minPrice) ⇒ Boolean

Deprecated

Kind: global function

Param Type
sellerId Address
sellerPassword String
buyerId Address
dabId Integer
minPrice Integer

offerBuyAccess(buyerId, buyerPassword, dabId, maxPrice) ⇒ Boolean

Deprecated

Kind: global function

Param Type
buyerId Address
buyerPassword String
dabId Integer
maxPrice Integer

approveAccessDeal(custodianId, custodianPassword, buyerId, dabId) ⇒ Boolean

Deprecated

Kind: global function

Param Type
custodianId Address
custodianPassword String
buyerId Address
dabId Integer

offerSellReshare(sellerId, sellerPassword, buyerId, dabId, minPrice) ⇒ Boolean

Deprecated

Kind: global function

Param Type
sellerId Address
sellerPassword String
buyerId Address
dabId Integer
minPrice Integer

approveReshareDeal(custodianId, custodianPassword, buyerId, dabId) ⇒ Boolean

Deprecated

Kind: global function

Param Type
custodianId Address
custodianPassword String
buyerId Address
dabId Integer

offerSellTag(sellerId, sellerPassword, buyerId, dabId, minPrice, tagId) ⇒ Boolean

Deprecated

Kind: global function
Returns: Boolean - isOK

Param Type Description
sellerId Address
sellerPassword String
buyerId Address
dabId Integer (optional. default: 0)
minPrice Integer
tagId Integer

offerBuyTag(buyerId, buyerPassword, dabId, maxPrice, tagId) ⇒ Boolean

Deprecated

Kind: global function
Returns: Boolean - isOK

Param Type Description
buyerId Address
buyerPassword String
dabId Integer (optional. default: 0)
maxPrice Integer
tagId Integer

approveTagDeal(custodianId, custodianPassword, buyerId, dabId, tagId) ⇒ Boolean

Deprecated

Kind: global function
Returns: Boolean - isOK

Param Type
custodianId Address
custodianPassword String
buyerId Address
dabId Integer
tagId Integer

offerSellToTag(sellerId, sellerPassword, buyerId, buyerTagId, minPrice, sellerDabId) ⇒ Boolean

Deprecated

Kind: global function
Returns: Boolean - isOK

Param Type Description
sellerId Address
sellerPassword String
buyerId Address
buyerTagId Integer (optional. default: 0)
minPrice Integer
sellerDabId Integer

offerBuyToTag(buyerId, buyerPassword, buyerTagId, maxPrice, sellerDabId) ⇒ Boolean

Deprecated

Kind: global function
Returns: Boolean - isOK

Param Type Description
buyerId Address
buyerPassword String
buyerTagId Integer (optional. default: 0)
maxPrice Integer
sellerDabId Integer

approveToTagDeal(custodianId, custodianPassword, buyerId, buyerTagId, sellerDabId) ⇒ Boolean

Deprecated

Kind: global function
Returns: Boolean - isOK

Param Type
custodianId Address
custodianPassword String
buyerId Address
buyerTagId Integer
sellerDabId Integer

offerSellTagAccess(sellerId, sellerPassword, buyerId, dabId, minPrice) ⇒ Boolean

Deprecated

Kind: global function
Returns: Boolean - isOK

Param Type
sellerId Address
sellerPassword String
buyerId Address
dabId Integer
minPrice Integer

offerBuyTagAccess(buyerId, buyerPassword, dabId, maxPrice) ⇒ Boolean

Deprecated

Kind: global function
Returns: Boolean - isOK

Param Type
buyerId Address
buyerPassword String
dabId Integer
maxPrice Integer

approveTagAccessDeal(custodianId, custodianPassword, buyerId, dabId) ⇒ Boolean

Deprecated

Kind: global function
Returns: Boolean - isOK

Param Type
custodianId Address
custodianPassword String
buyerId Address
dabId Integer

offerSellExplore(sellerId, sellerPassword, buyerId, dabId, minPrice, buyerPubKeyEncryptedTagKey) ⇒ Boolean

Deprecated

Kind: global function
Returns: Boolean - isOK

Param Type Description
sellerId Address
sellerPassword String
buyerId Address
dabId Integer
minPrice Integer
buyerPubKeyEncryptedTagKey String (optional. default: null)

offerBuyExplore(buyerId, buyerPassword, dabId, maxPrice) ⇒ Boolean

Deprecated

Kind: global function
Returns: Boolean - isOK

Param Type
buyerId Address
buyerPassword String
dabId Integer
maxPrice Integer

approveExploreDeal(custodianId, custodianPassword, buyerId, dabId) ⇒ Boolean

Deprecated

Kind: global function
Returns: Boolean - isOK

Param Type
custodianId Address
custodianPassword String
buyerId Address
dabId Integer

offerSellBulk(sellerId, sellerPassword, buyerId, dabId, minPrice) ⇒ Boolean

Deprecated

Kind: global function
Returns: Boolean - isOK

Param Type
sellerId Address
sellerPassword String
buyerId Address
dabId Integer
minPrice Integer

offerBuyBulk(buyerId, buyerPassword, dabId, maxPrice) ⇒ Boolean

Deprecated

Kind: global function
Returns: Boolean - isOK

Param Type
buyerId Address
buyerPassword String
dabId Integer
maxPrice Integer

approveBulkDeal(custodianId, custodianPassword, buyerId, dabId) ⇒ Boolean

Deprecated

Kind: global function
Returns: Boolean - isOK

Param Type
custodianId Address
custodianPassword String
buyerId Address
dabId Integer

offerSellTransitive(sellerId, sellerPassword, buyerId, dabId, minPrice) ⇒ Boolean

Deprecated

Kind: global function
Returns: Boolean - isOK

Param Type
sellerId Address
sellerPassword String
buyerId Address
dabId Integer
minPrice Integer

offerBuyTransitive(buyerId, buyerPassword, dabId, maxPrice) ⇒ Boolean

Deprecated

Kind: global function
Returns: Boolean - isOK

Param Type
buyerId Address
buyerPassword String
dabId Integer
maxPrice Integer

approveTransitiveDeal(custodianId, custodianPassword, buyerId, dabId) ⇒ Boolean

Deprecated

Kind: global function
Returns: Boolean - isOK

Param Type
custodianId Address
custodianPassword String
buyerId Address
dabId Integer

getTotalLicenseFee(licenseTypeCode) ⇒ Integer

Deprecated

Kind: global function

Param Type Description
licenseTypeCode Constant_of_Integer Look at Constants description in Docs.

trustToBuyAccess(sellerId, sellerPassword, buyerId, dabId, minPrice) ⇒ Boolean

Deprecated

Kind: global function
Returns: Boolean - isOK

Param Type
sellerId Address
sellerPassword String
buyerId Address
dabId Integer
minPrice Integer

trustToBuyOwnership(sellerId, sellerPassword, buyerId, dabId, minPrice) ⇒ Boolean

Deprecated

Kind: global function
Returns: Boolean - isOK

Param Type
sellerId Address
sellerPassword String
buyerId Address
dabId Integer
minPrice Integer

untrustToBuyAccess(sellerId, sellerPassword, buyerId, dabId) ⇒ Boolean

Deprecated

Kind: global function

Param Type
sellerId Address
sellerPassword String
buyerId Address
dabId Integer

untrustToBuyOwnership(sellerId, sellerPassword, buyerId, dabId) ⇒ Boolean

Deprecated

Kind: global function

Param Type
sellerId Address
sellerPassword String
buyerId Address
dabId Integer

recallOwnershipOffer(userId, userPassword, buyerId, dabId) ⇒ Boolean

Deprecated

Kind: global function
Returns: Boolean - isOk

Param Type
userId Address
userPassword String
buyerId Address
dabId Integer

rejectOwnershipDeal(sellerId, sellerPassword, buyerId, dabId) ⇒ Boolean

Deprecated

Kind: global function
Returns: Boolean - isOk

Param Type
sellerId Address
sellerPassword String
buyerId Address
dabId Integer

recallAccessOffer(userId, userPassword, buyerId, dabId) ⇒ Boolean

Deprecated

Kind: global function
Returns: Boolean - isOk

Param Type
userId Address
userPassword String
buyerId Address
dabId Integer

rejectAccessDeal(sellerId, sellerPassword, buyerId, dabId) ⇒ Boolean

Deprecated

Kind: global function
Returns: Boolean - isOk

Param Type
sellerId Address
sellerPassword String
buyerId Address
dabId Integer

cancelReshareLicenseOffer(userId, userPassword, buyerId, dabId) ⇒ Boolean

Deprecated

Kind: global function
Returns: Boolean - isOk

Param Type
userId Address
userPassword String
buyerId Address
dabId Integer

rejectReshareDeal(sellerId, sellerPassword, buyerId, dabId) ⇒ Boolean

Deprecated

Kind: global function
Returns: Boolean - isOk

Param Type
sellerId Address
sellerPassword String
buyerId Address
dabId Integer

recallBulkOffer(userId, userPassword, buyerId, dabId) ⇒ Boolean

Deprecated

Kind: global function
Returns: Boolean - isOk

Param Type
userId Address
userPassword String
buyerId Address
dabId Integer

rejectBulkDeal(sellerId, sellerPassword, buyerId, dabId) ⇒ Boolean

Deprecated

Kind: global function
Returns: Boolean - isOk

Param Type
sellerId Address
sellerPassword String
buyerId Address
dabId Integer

recallTransitiveOffer(userId, userPassword, buyerId, dabId) ⇒ Boolean

Deprecated

Kind: global function
Returns: Boolean - isOk

Param Type
userId Address
userPassword String
buyerId Address
dabId Integer

rejectTransitiveDeal(sellerId, sellerPassword, buyerId, dabId) ⇒ Boolean

Deprecated

Kind: global function
Returns: Boolean - isOk

Param Type
sellerId Address
sellerPassword String
buyerId Address
dabId Integer

recallCustodyOffer(userId, userPassword, buyerId, dabId) ⇒ Boolean

Deprecated

Kind: global function
Returns: Boolean - isOk

Param Type
userId Address
userPassword String
buyerId Address
dabId Integer

rejectCustodyDeal(sellerId, sellerPassword, buyerId, dabId) ⇒ Boolean

Deprecated

Kind: global function
Returns: Boolean - isOk

Param Type
sellerId Address
sellerPassword String
buyerId Address
dabId Integer

recallTagOffer(userId, userPassword, buyerId, dabId, tagId) ⇒ Boolean

Deprecated

Kind: global function
Returns: Boolean - isOk

Param Type
userId Address
userPassword String
buyerId Address
dabId Integer
tagId Integer

rejectTagDeal(sellerId, sellerPassword, buyerId, dabId, tagId) ⇒ Boolean

Deprecated

Kind: global function
Returns: Boolean - isOk

Param Type
sellerId Address
sellerPassword String
buyerId Address
dabId Integer
tagId Integer

recallToTagOffer(userId, userPassword, buyerId, dabId, tagId) ⇒ Boolean

Deprecated

Kind: global function
Returns: Boolean - isOk

Param Type
userId Address
userPassword String
buyerId Address
dabId Integer
tagId Integer

rejectToTagDeal(sellerId, sellerPassword, buyerId, dabId, tagId) ⇒ Boolean

Deprecated

Kind: global function
Returns: Boolean - isOk

Param Type
sellerId Address
sellerPassword String
buyerId Address
dabId Integer
tagId Integer

recallTagAccessOffer(userId, userPassword, buyerId, dabId) ⇒ Boolean

Deprecated

Kind: global function
Returns: Boolean - isOk

Param Type
userId Address
userPassword String
buyerId Address
dabId Integer

rejectTagAccessDeal(sellerId, sellerPassword, buyerId, dabId) ⇒ Boolean

Deprecated

Kind: global function
Returns: Boolean - isOk

Param Type
sellerId Address
sellerPassword String
buyerId Address
dabId Integer

recallExploreOffer(userId, userPassword, buyerId, dabId) ⇒ Boolean

Deprecated

Kind: global function
Returns: Boolean - isOk

Param Type
userId Address
userPassword String
buyerId Address
dabId Integer

rejectExploreDeal(sellerId, sellerPassword, buyerId, dabId) ⇒ Boolean

Deprecated

Kind: global function
Returns: Boolean - isOk

Param Type
sellerId Address
sellerPassword String
buyerId Address
dabId Integer

recallReshareOffer(userId, userPassword, buyerId, dabId) ⇒ Boolean

Deprecated

Kind: global function
Returns: Boolean - isOk

Param Type
userId Address
userPassword String
buyerId Address
dabId Integer

rejectReshareDeal(sellerId, sellerPassword, buyerId, dabId) ⇒ Boolean

Deprecated

Kind: global function
Returns: Boolean - isOk

Param Type
sellerId Address
sellerPassword String
buyerId Address
dabId Integer

DEPRECATED.PDS API methods

(Back)

Functions

useLicense(buyerId, buyerPassword, dabId, licenseTypeCode)Integer
getAccessTicket(dabId, buyerId, sellerId, argsBuyerSignature, publicKey, vaultAuth)Ticket

useLicense(buyerId, buyerPassword, dabId, licenseTypeCode) ⇒ Integer

Deprecated

Kind: global function
Returns: Integer - newUsageCount

Param Type Description
buyerId Address
buyerPassword String
dabId Integer
licenseTypeCode Constant_of_Integer Look at Constants description in Docs.

getAccessTicket(dabId, buyerId, sellerId, argsBuyerSignature, publicKey, vaultAuth) ⇒ Ticket

Deprecated

Kind: global function
Returns: Ticket - Look at Type description in Docs.

Param Type Description
dabId Integer
buyerId Address
sellerId Address
argsBuyerSignature String
publicKey String
vaultAuth Object (optional. default: null)

DEPRECATED.KEYCHAIN API methods

(Back)

/dsd-dbg-release-notes/

    Package Sidebar

    Install

    npm i dsd-dbg-release-notes

    Weekly Downloads

    0

    Version

    0.9.44

    License

    none

    Unpacked Size

    142 kB

    Total Files

    3

    Last publish

    Collaborators

    • eugene282