Funds Transfer

The Cion Digital platform calls the Funds Transfer method whenever the user clicks any of the following buttons, selects cryptocurrency (if applicable), and enters the amount.

  • Deposit Collateral

  • Withdraw Collateral

  • Take Loan

  • Repay Loan

params object:

Key

Value

user_id

Unique ID to identify your user

funds_transfer_type

Enum as explained in the enums section

currency

Currency to be transacted

blockchain

Blockchain on which transaction is meant to be executed

address

Address where funds should to be transferred (applicable only in case of collateral deposit and loan repayment)

amount

Amount to be transacted

timestamp

Time at which this request was generated by our server

Example params object:

{
    "user_id": "123",
    "funds_transfer_type": "collateral_deposit",
    "currency": "eth",
    "blockchain": "ethereum",
    "address": "0x5Bd7897dFe0ED054E6a18d2bBa4e655BBC5B4B56",
    "amount": 0.5,
    "timestamp": 1658297274725
}

Response result object:

Key

Definition/meaning

message

Response Message

fieldLabel1

OTP form field label 1 (required)

fieldLabel2

OTP form field label 2

Example response result:

{
    "message": "Please enter OTP codes sent to you email and phone",
    "fieldLabel1": "Email OTP",
    "fieldLabel2": "Phone OTP"
}

Last updated