Transaction

Transactions include all deposits, withdrawal and transfers.

Transactions represent the ON1ON Custody transactions, not necessarily be on-chain transactions (which must have a transaction hash and included in a block).

Deposit transactions refer to funds received on-chain by our system. Operators must approve deposit transactions before they are finalized and the balances are updated in the internal ledger.

Withdrawal transactions are those that will be or have already been sent out to the blockchain. From now on, every withdrawal requests correspondent to a transaction. Only approved withdrawals may give green light to the sending of transaction to the blockchain.

Transfer transactions are now within ON1ON Custody and will not related to blockchain transactions.

Typical transactions are as follows:

Withdraw Transaction
{
    "id": "55913",
    "chain_tx_id": "10738",
    "tx_type": "TX_TYPE_WITHDRAW",
    "bill_type": "BILL_TYPE_VALUE_TRANSFER",
    "direction": "TX_DIRECTION_OUTGOING",
    "name": "Ryan Gan",
    "status": "TX_STATUS_SUCCEEDED",
    "asset": {
        "chain": "CHAIN_APEX",
        "contract": null,
        "contract_standard": "NATIVE",
        "name": "ETH Ryan",
        "symbol": "RETH",
        "icon": "https://s3.ap-east-1.amazonaws.com/file.on1on-custody.com/public/icon/eth.png",
        "asset_id": 30,
        "properties": {}
    },
    "from_user_id": "OCUR402923816726533",
    "from_wallet_id": "WLT402923816747013",
    "from_wallet_address": "0x7d74ddb2898654170ae08a85cac39f00a34b0eef",
    "to_user_id": null,
    "to_wallet_id": null,
    "to_wallet_address": "0x0939E0cfd75d2EdB5BE9bdC7b3619b41B04b5Bb5",
    "amount": "4.735017",
    "fee": "0.000021",
    "remark": "do by test bot",
    "approve_remark": "",
    "score": {
        "kya_score": 50,
        "aml_score": 99,
        "aml_grading": 9
    },
    "chain_status": "CHAIN_STATUS_SUCCEEDED",
    "tx_time": 1686810419,
    "chain": "CHAIN_APEX",
    "tx_hash": "0x092048801c366b9d05c1f08109b259c6de655f3a2f50df0cb9174161c58b5995",
    "tx_bill_time": 1686810646
}

Last updated