The following API list is not yet complete and will likely be changed during implementation. The web-context is defined as /ncc/api
(full URI would be, for instance, /ncc/api/client/info
)
Amount values are all in the smallest possible NEM fraction, that means that 1000000 means 1.000000 NEM.
Rest calls must have the content type set:
Content-Type: application/json
Gets information about the NCC server.
- Request Method: GET
- Request:
-
- Response: NisInfoViewModel
- Dependent from NIS: No
Gets information about the NIS server.
- Request Method: GET
- Request:
-
- Response: NisInfoViewModel
- Dependent from NIS: Yes
Checks availability of NIS server.
- Request Method: GET
- Request:
-
- Response:
** 0 - NIS server is not running ** 1 - NIS server is running (but may not be booted)
- Dependent from NIS: Yes
Gets the current configuration.
- Request Method: GET
- Request:
-
- Response: ConfigurationViewModel
- Dependent from NIS: No
Updates the current configuration with the given values.
- Request Method: POST
- Request: ConfigurationViewModel
- Response:
-
- Dependent from NIS: No
Gets all wallets that are located at the configured storage location for wallets.
- Request Method: GET
- Request:
-
- Response: ListOfWalletDescriptorViewModel
- Dependent from NIS: No
Creates a new wallet with one account in it. The wallet is stored encrypted in the configured wallet directory. The name of the wallet file is the encoded (URL encoded) version of the wallet name. The provided password is used to encrypt the wallet.
- Request Method: POST
- Request: WalletNamePasswordPair
- Response: WalletViewModel
- Dependent from NIS: No
Open a wallet. The wallet is defined by the wallet name. The wallet has to be located in the wallet storage location. The password must match the password of the given wallet. For opening a wallet at a different location the function importWallet has to be used.
- Request Method: POST
- Request: WalletNamePasswordPair
- Response: WalletViewModel
- Dependent from NIS: No
Returns information about a wallet that is already open.
- Request Method: POST
- Request: WalletName
- Response: WalletViewModel
- Dependent from NIS: No
Closes a wallet by removing it from the list of opened wallets.
- Request Method: POST
- Request: WalletName
- Response:
-
- Dependent from NIS: No
Changes the password of a wallet.
- Request Method: POST
- Request: WalletNamePasswordBag
- Response:
-
- Dependent from NIS: No
Changes the password of a wallet.
- Request Method: POST
- Request: WalletNamePasswordBag
- Response:
-
- Dependent from NIS: No
Adds a new account to the wallet.
- Request Method: POST
- Request: WalletNamePasswordBag
- Response: AccountViewModel
- Dependent from NIS: No
Sets an existing account to be the primary account.
- Request Method: POST
- Request: WalletNamePasswordBag
- Response: WalletViewModel
- Dependent from NIS: No
Removes an existing account from a wallet.
- Request Method: POST
- Request: WalletNamePasswordBag
- Response: WalletViewModel
- Dependent from NIS: No
Updates the label of an existing account.
- Request Method: POST
- Request: WalletNamePasswordBag
- Response: AccountViewModel
- Dependent from NIS: No
Sends a new transaction (i.e., sending NEM, messages, assets).
- Request Method: POST
- Request: TransferSendRequest
- Response:
-
- Dependent from NIS: Yes
Validates a new transaction (i.e., sending NEM, messages, assets) and provides information on fee and encryption possibility.
- Request Method: POST
- Request: TransferValidateRequest
- Response: ValidatedTransferViewModel
- Dependent from NIS: Yes
Unlock the account on the connected NIS server (start foraging).
- Request Method: POST
- Request: AccountWalletRequest
- Response:
-
- Dependent from NIS: Yes
Lock the account on the connected NIS server (stop foraging).
- Request Method: POST
- Request: AccountWalletRequest
- Response:
-
- Dependent from NIS: Yes
Announces activation of remote harvesting account to the network (FEE: 1)
- Request Method: POST
- Request: TransferImportanceRequest
- Response:
-
- Dependent from NIS: Yes
Announces deactivation of remote harvesting account to the network (FEE: 1)
- Request Method: POST
- Request: TransferImportanceRequest
- Response:
-
- Dependent from NIS: Yes
Checks if account is unlocked on remote server, will return an error if
- Request Method: POST
- Request: AccountWalletRequest
- Response: AccountStatusViewModel
- Dependent from NIS: Yes
Unlock the account on the remote NIS server (start secure foraging).
- Request Method: POST
- Request: AccountWalletPasswordRequest
- Response:
-
- Dependent from NIS: Yes
Lock the account on the remote NIS server (stop secure foraging).
- Request Method: POST
- Request: AccountWalletPasswordRequest
- Response:
-
- Dependent from NIS: Yes
Gets information about the specified account. Looks-up an account which is known by its address id
- Request Method: POST
- Request: AccountIdRequest
- Response: AccountViewModel
- Dependent from NIS: Yes
Gets information about the specified account and unconfirmed transactions.
- Request Method: POST
- Request: AccountHashRequest
- Response: AccountTransactionsPair
- Dependent from NIS: Yes
Gets information about the specified account and incoming transactions.
- Request Method: POST
- Request: AccountHashRequest
- Response: AccountTransactionsPair
- Dependent from NIS: Yes
Gets information about the specified account and outgoing transactions.
- Request Method: POST
- Request: AccountHashRequest
- Response: AccountTransactionsPair
- Dependent from NIS: Yes
Gets information about the specified account and incoming and outgoing transactions.
- Request Method: POST
- Request: AccountHashRequest
- Response: TransferViewModel
- Dependent from NIS: Yes
Retrieves a list of infos on harvested blocks for an account.
- Request Method: POST
- Request: AccountTimeStampRequest
- Response: HarvestInfoViewModelList
- Dependent from NIS: Yes
Boots the local node.
- Request Method: POST
- Request: BootNodeRequest
- Response: FeeViewModel
- Dependent from NIS: Yes
Checks the status of the local node.
- Request Method: GET
- Request:
-
- Response: NemRequestResult
- Dependent from NIS: Yes
Requests a view model for the peers to which the specified peers are connected.
- Request Method: POST
- Request: NodeEndpointList
- Response: GraphViewModel
- Dependent from NIS: Yes
Requests a view model for the peers to which the local NIS is connected.
- Request Method: GET
- Request:
-
- Response: GraphViewModel
- Dependent from NIS: Yes
Stops the NCC server. After that NCC GUI does not respond to any clicks.
- Request Method: GET
- Request:
-
- Response:
-
- Dependent from NIS: No
Gets the current status of the NCC server. Currently it is only 'running' (3).
- Request Method: GET
- Request:
-
- Response: NemRequestResult
- Dependent from NIS: No