network/model/Nodes
Api Code Documentation / Exports / network/model/Nodes
#
Table of contents#
Interfaces#
Type aliases#
Functions#
Type aliases#
NetworkPermissionƬ NetworkPermission: "connect"
| "send"
| "receive"
| "issue"
| "create"
| "mine"
| "activate"
| "admin"
#
Defined in#
OrganizationƬ Organization: string
#
Defined in#
WalletAddressƬ WalletAddress: string
#
Defined in#
Functions#
activeâ–¸ active(multichain
): Promise
<number
>
#
ParametersName | Type |
---|---|
multichain | MultichainClient |
#
ReturnsPromise
<number
>
#
Defined insrc/network/model/Nodes.ts:234
#
getâ–¸ get(multichain
): Promise
<NodeInfo
[]>
Gets a list with all registered nodes
#
ParametersName | Type | Description |
---|---|---|
multichain | MultichainClient | the multichain on which the nodes were registered |
#
ReturnsPromise
<NodeInfo
[]>
#
Defined insrc/network/model/Nodes.ts:140
#
getNetworkPermissionsâ–¸ getNetworkPermissions(multichain
, address
, organizationsByAddress?
): Promise
<PermissionInfo
[]>
#
ParametersName | Type |
---|---|
multichain | MultichainClient |
address | string |
organizationsByAddress? | Map <string , string > |
#
ReturnsPromise
<PermissionInfo
[]>
#
Defined insrc/network/model/Nodes.ts:305
#
getNodeâ–¸ getNode(multichain
, address
, organization?
): Promise
<NodeInfo
| undefined
>
Gets a node registered on the multichain
#
ParametersName | Type | Description |
---|---|---|
multichain | MultichainClient | the multichain on which the node is registered |
address | string | the address of the node |
organization? | string | if given, also checks that the organization of the node matches the address |
#
ReturnsPromise
<NodeInfo
| undefined
>
#
Defined insrc/network/model/Nodes.ts:218
#
grantâ–¸ grant(multichain
, issuer
, target
, permissions
): Promise
<void
>
#
ParametersName | Type |
---|---|
multichain | MultichainClient |
issuer | string |
target | string |
permissions | NetworkPermission [] |
#
ReturnsPromise
<void
>
#
Defined in#
publishâ–¸ publish(multichain
, address
, args
): Promise
<Event
>
#
ParametersName | Type |
---|---|
multichain | MultichainClient |
address | string |
args | Object |
args.createdBy | string |
args.creationTimestamp | Date |
args.data | any |
args.dataVersion | number |
args.intent | default |
#
ReturnsPromise
<Event
>
#
Defined in#
revokeâ–¸ revoke(multichain
, issuer
, target
, permissions
): Promise
<void
>
#
ParametersName | Type |
---|---|
multichain | MultichainClient |
issuer | string |
target | string |
permissions | NetworkPermission [] |
#
ReturnsPromise
<void
>