Skip to content

sendDeposit

AxVultis edited this page Nov 16, 2022 · 1 revision

The sendDeposit method creates a new deposit with a source address and a term and sends it to another wallet. The output will return the transactionHash of the creating transaction.

Request Format

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 21,
  "method": "sendDeposit",
  "params": {
    "sourceAddress": "ccx7dehAGh837bfSfo18wJ1WzeCUWnzv3D23hvR8npyhHxoa6E3WXqNgTfHaWbAYRPdUhEXXEeKeEG7okKGHA8CZ3onHHofFDJ",
    "amount": 1000000,
    "term": 21900,
    "destinationAddress": "ccx7azFfXV97cgSGWoHbwiJvTqwkrxbvbXQprUTSbh145GmLHPdPHSvChgTo7JWgLwSYSos5eRuHWdsRTDnVxfBb5CMEj1hy6B"
  }
}

Request Details:

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

Response Format

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 21,
  "result": {
    "transactionHash": "97280b8c39f31eb981d7b829909d7b721c342e70ab73e1887da26d41d162e841"
  }
}

Response Details:

Argument Description Format
transactionHash Transaction hash of the creating transaction string

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.
  • Deposit term is too small - The term is less than the minimum 21,900 blocks (one month).
  • Deposit term is too big - The term is larger tan the maximum 262,800 blocks (one year).
  • Deposit amount is too small - The amount is less than the minimum of 1000000 (1 CCX).
Clone this wiki locally