Skip to content

createDeposit

katz edited this page Aug 18, 2020 · 11 revisions

The createDeposit method creates a new deposit with a source address and a term. The output will return the transactionHash of the creating transaction. The deposit will only reflect in the count and deposit index when the tx is confirmed. This method is available from version 6.3.0 and newer versions only.

Request Format

JSON-RPC

{  
   "params":{  
        "sourceAddress":"ccx7eDWHZTgTZy7gbNL3vP.............zwGakB6VeGWfV9ZZvkAu8j2eg6ijCG",
          "amount": 1000000000,
          "term": 21900
   },
   "method":"createDeposit"
 }

Request Details:

Argument Mandatory Description Format
sourceAddress Yes Wallet address string
amount Yes The amount to deposit int
term Yes The length of the deposit (Minimum 21,900) int

Response Format:

JSON-RPC

Response Details:

Possible Errors:

  • Object not found - The wallet address does not exist in this container.
  • Invalid address - The source address is not a valid Conceal wallet address.
  • Parse error - Incorrect formatting, JSON, or quotation marks used.
Clone this wiki locally