Home

calculatecollateralrequirement

POST
https://dgb.nownodes.io/

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Calculates the required DGB collateral for minting a DigiDollar amount for a selected lock period.

Body

application/json

JSON-RPC request body for the calculatecollateralrequirement method.

jsonrpcstringrequired

JSON-RPC protocol version used by DigiByte Core RPC.

idstringrequired

Client-supplied request identifier echoed in the response.

methodstringrequired

DigiByte Core RPC method name.

paramsArray<any>required

Ordered JSON-RPC parameters for the method. Parameter 0: DigiDollar amount in cents. For example, 10000 represents 100.00 USD. Parameter 1: Collateral lock duration in days. Parameter 2: Optional oracle price in micro-USD per DGB. If omitted, the current oracle price is used.

Response

200OK

Successful calculatecollateralrequirement JSON-RPC response.

400Bad Request

Bad request or invalid JSON-RPC parameters.

401Unauthorized

Missing or invalid API key.

500Internal Server Error

Node or JSON-RPC server error.