calculatecollateralrequirement
Authorizations
ApiKeyAuthApiKeyAuthapi-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
JSON-RPC request body for the calculatecollateralrequirement method.
jsonrpcstringrequiredJSON-RPC protocol version used by DigiByte Core RPC.
idstringrequiredClient-supplied request identifier echoed in the response.
methodstringrequiredDigiByte Core RPC method name.
paramsArray<any>requiredOrdered 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
Successful calculatecollateralrequirement JSON-RPC response.
Bad request or invalid JSON-RPC parameters.
Missing or invalid API key.
Node or JSON-RPC server error.