Skip to main content

GenericAccess

@nevermined-io/sdk - v3.0.44 / GenericAccess

Interface: GenericAccess

Table of contents

Properties

Methods

Properties

contractName

contractName: string

Defined in

src/keeper/contracts/templates/GenericAccess.ts:22

Methods

createAgreementWithPaymentFromDDO

createAgreementWithPaymentFromDDO(agreementIdSeed, ddo, serviceReference, parameters, consumer, from, txParams?, observer?): Promise\<string>

Parameters

NameType
agreementIdSeedstring
ddoDDO
serviceReferencenumber | ServiceType
parametersany
consumerNvmAccount
fromNvmAccount
txParams?TxParameters
observer?(orderProgressStep: OrderProgressStep) => void

Returns

Promise\<string>

Defined in

src/keeper/contracts/templates/GenericAccess.ts:8


getAgreementData

getAgreementData(agreementId): Promise\<{ accessConsumer: string ; accessProvider: string }>

Parameters

NameType
agreementIdstring

Returns

Promise\<{ accessConsumer: string ; accessProvider: string }>

Defined in

src/keeper/contracts/templates/GenericAccess.ts:19


params

params(consumer, ...args): any

Parameters

NameType
consumerany
...argsany[]

Returns

any

Defined in

src/keeper/contracts/templates/GenericAccess.ts:21