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.

Request Format

JSON-RPC

{  
    "params":{  
        "sourceAddress":"ccx7eDWHZTgTZy7gbNL3vPgMiv9CZ1ckaCEQRiBkQmXVGQxAXVXVPunYLaAhRjv4qwMBzwGakB6VeGWfV9ZZvkAu8j2eg6ijCG",
          "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:

Clone this wiki locally