-
Notifications
You must be signed in to change notification settings - Fork 66
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.
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 |
JSON-RPC
Response Details:
- 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.
© 2018-2023 Conceal Network. All rights reserved.
- Conceal API Reference
- General Methods
- Private Key Methods
- Wallet Address Methods
- Deposit Methods
- Transaction Methods
- Delayed Transaction Methods
- Wallet Export Methods