MCPcopy Create free account
hub / github.com/ccxt/ccxt / parseTransaction

Method parseTransaction

ts/src/phemex.ts:3683–3800  ·  view source on GitHub ↗
(transaction: Dict, currency: Currency = undefined)

Source from the content-addressed store, hash-verified

3681 }
3682
3683 parseTransaction (transaction: Dict, currency: Currency = undefined): Transaction {
3684 //
3685 // withdraw
3686 //
3687 // {
3688 // "id": "10000001",
3689 // "freezeId": null,
3690 // "address": "44exxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
3691 // "amountRv": "100",
3692 // "chainCode": "11",
3693 // "chainName": "TRX",
3694 // "currency": "USDT",
3695 // "currencyCode": 3,
3696 // "email": "abc@gmail.com",
3697 // "expiredTime": "0",
3698 // "feeRv": "1",
3699 // "nickName": null,
3700 // "phone": null,
3701 // "rejectReason": "",
3702 // "submitedAt": "1670000000000",
3703 // "submittedAt": "1670000000000",
3704 // "txHash": null,
3705 // "userId": "10000001",
3706 // "status": "Success"
3707 //
3708 // fetchDeposits
3709 //
3710 // {
3711 // "id": "29200",
3712 // "currency": "USDT",
3713 // "currencyCode": "3",
3714 // "chainName": "ETH",
3715 // "chainCode": "4",
3716 // "txHash": "0x0bdbdc47807769a03b158d5753f54dfc58b92993d2f5e818db21863e01238e5d",
3717 // "address": "0x5bfbf60e0fa7f63598e6cfd8a7fd3ffac4ccc6ad",
3718 // "amountEv": "3000000000",
3719 // "confirmations": "13",
3720 // "type": "Deposit",
3721 // "status": "Success",
3722 // "createdAt": "1592722565000",
3723 // }
3724 //
3725 // fetchWithdrawals
3726 //
3727 // {
3728 // "id": "10000001",
3729 // "userId": "10000001",
3730 // "freezeId": "10000002",
3731 // "phone": null,
3732 // "email": "abc@gmail.com",
3733 // "nickName": null,
3734 // "currency": "USDT",
3735 // "currencyCode": "3",
3736 // "status": "Succeed",
3737 // "withdrawStatus": "Succeed",
3738 // "amountEv": "8800000000",
3739 // "feeEv": "1200000000",
3740 // "address": "0x5xxxad",

Callers 1

withdrawMethod · 0.95

Calls 10

fromEnMethod · 0.95
safeStringMethod · 0.45
safeCurrencyMethod · 0.45
safeIntegerNMethod · 0.45
safeStringLowerMethod · 0.45
parseNumberMethod · 0.45
safeNumberMethod · 0.45
iso8601Method · 0.45
networkIdToCodeMethod · 0.45

Tested by

no test coverage detected