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

Method parse_transaction

python/ccxt/async_support/grvt.py:1490–1598  ·  view source on GitHub ↗
(self, transaction: dict, currency: Currency = None)

Source from the content-addressed store, hash-verified

1488 return transfers
1489
1490 def parse_transaction(self, transaction: dict, currency: Currency = None) -> Transaction:
1491 #
1492 # fetchDeposits
1493 #
1494 # {
1495 # "l_1_hash": "0x10000101000203040506",
1496 # "l_2_hash": "0x10000101000203040506",
1497 # "to_account_id": "0xc73c0c2538fd9b833d20933ccc88fdaa74fcb0d0",
1498 # "currency": "USDT",
1499 # "num_tokens": "1500.0",
1500 # "initiated_time": "1697788800000000000",
1501 # "confirmed_time": "1697788800000000000",
1502 # "from_address": "0xc73c0c2538fd9b833d20933ccc88fdaa74fcb0d0"
1503 # }
1504 #
1505 # fetchWithdrawals
1506 #
1507 # {
1508 # "tx_id": "1028403",
1509 # "from_account_id": "0xc73c0c2538fd9b833d20933ccc88fdaa74fcb0d0",
1510 # "to_eth_address": "0xc73c0c2538fd9b833d20933ccc88fdaa74fcb0d0",
1511 # "currency": "USDT",
1512 # "num_tokens": "1500.0",
1513 # "signature": {
1514 # "signer": "0xc73c0c2538fd9b833d20933ccc88fdaa74fcb0d0",
1515 # "r": "0xb788d96fee91c7cdc35918e0441b756d4000ec1d07d900c73347d9abbc20acc8",
1516 # "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d",
1517 # "v": 28,
1518 # "expiration": "1697788800000000000",
1519 # "nonce": 1234567890,
1520 # "chain_id": "325"
1521 # },
1522 # "event_time": "1697788800000000000",
1523 # "l_1_hash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
1524 # "l_2_hash": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890"
1525 # }
1526 #
1527 # fetchTransfers
1528 #
1529 # {
1530 # "tx_id": "65119836",
1531 # "from_account_id": "0xc451b0191351ce308fdfd779d73814c910fc5ecb",
1532 # "from_sub_account_id": "0",
1533 # "to_account_id": "0x42c9f56f2c9da534f64b8806d64813b29c62a01d",
1534 # "to_sub_account_id": "0",
1535 # "currency": "USDT",
1536 # "num_tokens": "4.998",
1537 # "signature": {
1538 # "signer": "0xf4fdbaf9655bfd607098f4f887aaca58c9667203",
1539 # "r": "0x5f780b99e5e8516f85e66af49b469eeeeeee724290d7f49f1e84b25ad038fa81",
1540 # "s": "0x66c76fdb37a25db8c6b368625d96ee91ab1ffca1786d84dc806b08d1460e97bc",
1541 # "v": "27",
1542 # "expiration": "1767455807929000000",
1543 # "nonce": "45905",
1544 # "chain_id": "0"
1545 # },
1546 # "event_time": "1764863808817370541",
1547 # "transfer_type": "NON_NATIVE_BRIDGE_DEPOSIT",

Callers 1

withdrawMethod · 0.95

Calls 9

safe_stringMethod · 0.80
omit_zeroMethod · 0.80
parse_jsonMethod · 0.80
safe_string_lowerMethod · 0.80
safe_numberMethod · 0.80
safe_currency_codeMethod · 0.45
network_id_to_codeMethod · 0.45
iso8601Method · 0.45

Tested by

no test coverage detected