API Reference
Last updated
Last updated
This page lists the APIs that are accessible to NUTS Platform users. For more information about the APIs that are used inside NUTS Platform or used only by NUTS Platform owner, please refer to the NUTS Platform smart contracts.
A public function for FSPs to activate new financial instruments in NUTS Platform.
A public function to query Instrument Manager contract address with Instrument ID.
Get the address of the Instrument Escrow owned by the current Instrument Manager.
None
Deactivate the activated financial instrument managed by the current Instrument Manager. Once deactivated, the financial instrument cannot create new issuance, but the existing issuances are not affected.
A financial instrument can be deactivated only once. It can only be deactivated by maker before the instrument override time. After that, anyone can deactivate this instrument.
None
None
Update the maker whitelist.
None.
Update the taker whitelist.
None.
Create a new issuance of the financial instrument. Only whitelisted makers are allowed if maker whitelist is enabled.
Engage an existing issuance.. Only whitelisted takers are allowed if taker whitelist is enabled.
None.
Deposit from Instrument Escrow to issuance.
None.
Withdraw from issuance to Instrument Escrow.
None.
Notify a custom event to the issuance.
None.
Get custom data from the issuance.
Type
Name
Description
address
instrumentAddress
The address of the deployed financial instrument contract. A financial instrument contract can be shared by multiple activated financial instruments.
bytes
instrumentParameters
Custom parameters about the instrument.
Type
Name
Description
uint256
instrumentId
ID of the activated financial instrument.
Type
Name
Description
uint256
instrumentId
ID of the activated financial instrument.
Type
Name
Description
address
instrumentManagerAddress
Address of the Instrument Manager Contract.
Type
Name
Description
address
instrumentEscrowAddress
Address of the Instrument Escrow owned by the current Instrument Manager.
Type
Name
Description
address
makerAddress
The address of the maker.
bool
allowed
Whether the maker is allowed to create new issuance.
Type
Name
Description
address
takerAddress
The address of the taker.
bool
allowed
Whether the taker is allowed to engage existing issuance.
Type
Name
Description
bytes
makerParameters
Custom parameters of the issuance.
Type
Name
Description
uint256
issuanceId
ID of the newly created issuance.
Type
Name
Description
uint256
issuanceId
ID of the issuance to engage.
bytes
takerParameters
Custom parameters of the engagement.
Type
Name
Description
uint256
issuanceId
ID of the issuance to engage.
address
tokenAddress
Address of the token to deposit. ETH address is Constants.getEthAddress().
uint256
amount
Amount of token to deposit.
Type
Name
Description
uint256
issuanceId
ID of the issuance to engage.
address
tokenAddress
Address of the token to withdraw. ETH address is Constants.getEthAddress().
uint256
amount
Amount of token to withdraw.
Type
Name
Description
uint256
issuanceId
ID of the issuance to engage.
bytes32
eventName
Name of the custom event.
bytes
eventPayload
Payload of the custom event.
Type
Name
Description
uint256
issuanceId
ID of the issuance to engage.
bytes32
dataName
Name of the data to retrieve.
Type
Name
Description
bytes
customData
The custom data to return.