-
Notifications
You must be signed in to change notification settings - Fork 64
getDeposit
AxVultis edited this page Nov 12, 2022
·
3 revisions
The getDeposit method returns the details of a deposit given the depositId.
JSON-RPC
{
"jsonrpc": "2.0",
"id": 8,
"method": "getDeposit",
"params": {
"depositId": 2
}
}
Request Details:
Argument | Mandatory | Description | Format |
---|---|---|---|
depositId | Yes | The depositId | int |
JSON-RPC
{
"jsonrpc": "2.0",
"id": 8,
"result": {
"address": "ccx7dehAGh837bfSfo18wJ1WzeCUWnzv3D23hvR8npyhHxoa6E3WXqNgTfHaWbAYRPdUhEXXEeKeEG7okKGHA8CZ3onHHofFDJ",
"amount": 1000000,
"creatingTransactionHash": "495f5944490c0ae76eee4c5634a1f9374d7406e728d45fabc4972f997c5e115d",
"height": 488775,
"interest": 2416,
"locked": false,
"spendingTransactionHash": "",
"term": 21900,
"unlockHeight": 510675
}
}
Response Details:
Argument | Description | Format |
---|---|---|
address | Address of the deposit holder | string |
amount | The amount deposited | int |
creatingTransactionHash | Hash of the creating transaction | string |
height | The height the deposit was locked | int |
interest | Interest generated at maturity | int |
locked | Current status of the deposit | bool |
spendingTransactionHash | Hash of the spending transaction | string |
term | The length of the deposit | int |
unlockHeight | The height when the deposit unlocks | int |
- 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.
- Internal error occurred - Deposit does not exist or depositId incorrect.
© 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