From c04fd9ad9b29d9a3c52e200d7efb3532988363a6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 21 Mar 2024 10:05:31 +0100 Subject: [PATCH] fix: automatic api update (#52) Co-authored-by: ErnoW --- docs/evm_api/balance.md | 4 +- docs/evm_api/block.md | 6 +- docs/evm_api/defi.md | 6 +- docs/evm_api/events.md | 4 +- docs/evm_api/nft.md | 40 +- docs/evm_api/token.md | 20 +- docs/evm_api/transaction.md | 10 +- docs/evm_api/utils.md | 4 +- docs/evm_api/wallets.md | 63 ++- .../evm_api/wallets/get_wallet_history.py | 28 ++ src/moralis/evm_api/wallets/wallets.py | 1 + src/openapi_evm_api/apis/path_to_api.py | 3 + .../apis/paths/wallets_address_history.py | 7 + src/openapi_evm_api/apis/tags/wallets_api.py | 2 + src/openapi_evm_api/model/chain_list.py | 10 + src/openapi_evm_api/model/chain_list.pyi | 8 + .../model/e_transaction_category.py | 116 +++++ .../model/e_transaction_category.pyi | 96 ++++ src/openapi_evm_api/model/wallet_history.py | 147 ++++++ src/openapi_evm_api/model/wallet_history.pyi | 147 ++++++ .../model/wallet_history_transaction.py | 237 +++++++++ .../model/wallet_history_transaction.pyi | 237 +++++++++ src/openapi_evm_api/models/__init__.py | 3 + src/openapi_evm_api/paths/__init__.py | 1 + .../paths/wallets_address_history/__init__.py | 7 + .../paths/wallets_address_history/get.py | 454 ++++++++++++++++++ .../paths/wallets_address_history/get.pyi | 437 +++++++++++++++++ .../test_e_transaction_category.py | 25 + .../test/test_models/test_wallet_history.py | 25 + .../test_wallet_history_transaction.py | 25 + 30 files changed, 2122 insertions(+), 51 deletions(-) create mode 100644 src/moralis/evm_api/wallets/get_wallet_history.py create mode 100644 src/openapi_evm_api/apis/paths/wallets_address_history.py create mode 100644 src/openapi_evm_api/model/e_transaction_category.py create mode 100644 src/openapi_evm_api/model/e_transaction_category.pyi create mode 100644 src/openapi_evm_api/model/wallet_history.py create mode 100644 src/openapi_evm_api/model/wallet_history.pyi create mode 100644 src/openapi_evm_api/model/wallet_history_transaction.py create mode 100644 src/openapi_evm_api/model/wallet_history_transaction.pyi create mode 100644 src/openapi_evm_api/paths/wallets_address_history/__init__.py create mode 100644 src/openapi_evm_api/paths/wallets_address_history/get.py create mode 100644 src/openapi_evm_api/paths/wallets_address_history/get.pyi create mode 100644 src/openapi_evm_api/test/test_models/test_e_transaction_category.py create mode 100644 src/openapi_evm_api/test/test_models/test_wallet_history.py create mode 100644 src/openapi_evm_api/test/test_models/test_wallet_history_transaction.py diff --git a/docs/evm_api/balance.md b/docs/evm_api/balance.md index 7a88144..f6c445c 100644 --- a/docs/evm_api/balance.md +++ b/docs/evm_api/balance.md @@ -39,7 +39,7 @@ print(result) | Name | Type | Description | Required | Default | Example | |------|------|-------------|----------|---------|---------| | address | str | The address from which the native balance will be checked | Yes | | "0x057Ec652A4F150f7FF94f089A38008f49a0DF88e" | -| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa" | The chain to query | | "eth" | "eth" | +| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa"
- "holesky"
- "0x4268" | The chain to query | | "eth" | "eth" | | to_block | float | The block number up to which the balances will be checked. | | | 1.2 | @@ -77,7 +77,7 @@ print(result) | Name | Type | Description | Required | Default | Example | |------|------|-------------|----------|---------|---------| | wallet_addresses | List of str | The addresses to get metadata for | Yes | | [] | -| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa" | The chain to query | | "eth" | "eth" | +| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa"
- "holesky"
- "0x4268" | The chain to query | | "eth" | "eth" | | to_block | float | The block number on which the balances should be checked | | | 1.2 | diff --git a/docs/evm_api/block.md b/docs/evm_api/block.md index eb212f6..23de215 100644 --- a/docs/evm_api/block.md +++ b/docs/evm_api/block.md @@ -40,7 +40,7 @@ print(result) | Name | Type | Description | Required | Default | Example | |------|------|-------------|----------|---------|---------| | block_number_or_hash | str | The block number or block hash | Yes | | "15863321" | -| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa" | The chain to query | | "eth" | "eth" | +| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa"
- "holesky"
- "0x4268" | The chain to query | | "eth" | "eth" | | include | enum[str]:
- "internal_transactions" | If the result should contain the internal transactions. | | "" | "" | @@ -77,7 +77,7 @@ print(result) | Name | Type | Description | Required | Default | Example | |------|------|-------------|----------|---------|---------| | block_number_or_hash | str | The block number or hash | Yes | | "" | -| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa" | The chain to query | | "eth" | "eth" | +| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa"
- "holesky"
- "0x4268" | The chain to query | | "eth" | "eth" | @@ -113,7 +113,7 @@ print(result) | Name | Type | Description | Required | Default | Example | |------|------|-------------|----------|---------|---------| | date | str | Unix date in milliseconds or a datestring (format in seconds or datestring accepted by momentjs) | Yes | | "" | -| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa" | The chain to query | | "eth" | "eth" | +| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa"
- "holesky"
- "0x4268" | The chain to query | | "eth" | "eth" | diff --git a/docs/evm_api/defi.md b/docs/evm_api/defi.md index c69dd8e..4daf8c5 100644 --- a/docs/evm_api/defi.md +++ b/docs/evm_api/defi.md @@ -47,7 +47,7 @@ print(result) | exchange | enum[str]:
- "uniswapv2"
- "uniswapv3"
- "sushiswapv2"
- "pancakeswapv2"
- "pancakeswapv1"
- "quickswap" | The factory name or address of the token exchange | Yes | | "uniswapv2" | | token0_address | str | The token0 address | Yes | | "0x2b591e99afe9f32eaa6214f7b7629768c40eeb39" | | token1_address | str | The token1 address | Yes | | "0xdac17f958d2ee523a2206206994597c13d831ec7" | -| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa" | The chain to query | | "eth" | "eth" | +| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa"
- "holesky"
- "0x4268" | The chain to query | | "eth" | "eth" | | to_block | str | The block number to get the reserves from | | | "" | | to_date | str | Get the reserves up to this date (format in seconds or datestring accepted by momentjs)
* Provide the param 'to_block' or 'to_date'
* If 'to_date' and 'to_block' are provided, 'to_block' will be used.
| | | "" | @@ -90,7 +90,7 @@ print(result) |------|------|-------------|----------|---------|---------| | token0_address | str | The token0 address | Yes | | "0xae7ab96520de3a18e5e111b5eaab095312d7fe84" | | token1_address | str | The token1 address | Yes | | "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2" | -| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa" | The chain to query | | "eth" | "eth" | +| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa"
- "holesky"
- "0x4268" | The chain to query | | "eth" | "eth" | | to_block | str | The block number to get the reserves from | | | "" | | to_date | str | Get the price up to this date (format in seconds or datestring accepted by momentjs)
* Provide the param 'to_block' or 'to_date'
* If 'to_date' and 'to_block' are provided, 'to_block' will be used.
| | | "" | | exchange | str | The factory name or address of the token exchange | | | "" | @@ -131,7 +131,7 @@ print(result) | Name | Type | Description | Required | Default | Example | |------|------|-------------|----------|---------|---------| | pair_address | str | The liquidity pair address | Yes | | "0xa2107fa5b38d9bbd2c461d6edf11b11a50f6b974" | -| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa" | The chain to query | | "eth" | "eth" | +| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa"
- "holesky"
- "0x4268" | The chain to query | | "eth" | "eth" | | to_block | str | The block number to get the reserves from | | | "" | | to_date | str | Get the reserves up to this date (format in seconds or datestring accepted by momentjs)
* Provide the param 'to_block' or 'to_date'
* If 'to_date' and 'to_block' are provided, 'to_block' will be used.
| | | "" | diff --git a/docs/evm_api/events.md b/docs/evm_api/events.md index 0a1784e..9eac168 100644 --- a/docs/evm_api/events.md +++ b/docs/evm_api/events.md @@ -50,7 +50,7 @@ print(result) |------|------|-------------|----------|---------|---------| | address | str | The address of the contract | Yes | | "" | | topic | str | The topic of the event | Yes | | "" | -| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa" | The chain to query | | "eth" | "eth" | +| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa"
- "holesky"
- "0x4268" | The chain to query | | "eth" | "eth" | | from_block | int | The minimum block number from which to get the logs
* Provide the param 'from_block' or 'from_date'
* If 'from_date' and 'from_block' are provided, 'from_block' will be used.
| | | 0 | | to_block | int | The maximum block number from which to get the logs.
* Provide the param 'to_block' or 'to_date'
* If 'to_date' and 'to_block' are provided, 'to_block' will be used.
| | | 0 | | from_date | str | The start date from which to get the logs (format in seconds or datestring accepted by momentjs)
* Provide the param 'from_block' or 'from_date'
* If 'from_date' and 'from_block' are provided, 'from_block' will be used.
| | | "" | @@ -110,7 +110,7 @@ print(result) |------|------|-------------|----------|---------|---------| | address | str | The address of the contract | Yes | | "0xb47e3cd837dDF8e4c57F05d70Ab865de6e193BBB" | | topic0 | str | topic0 | Yes | | "" | -| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa" | The chain to query | | "eth" | "eth" | +| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa"
- "holesky"
- "0x4268" | The chain to query | | "eth" | "eth" | | block_number | str | The block number
* Provide the param 'block_numer' or ('from_block' and / or 'to_block')
* If 'block_numer' is provided in combination with 'from_block' and / or 'to_block', 'block_number' will will be used
| | | "" | | from_block | str | The minimum block number from which to get the logs
* Provide the param 'block_numer' or ('from_block' and / or 'to_block')
* If 'block_numer' is provided in combination with 'from_block' and / or 'to_block', 'block_number' will will be used
| | | "" | | to_block | str | The maximum block number from which to get the logs
* Provide the param 'block_numer' or ('from_block' and / or 'to_block')
* If 'block_numer' is provided in combination with 'from_block' and / or 'to_block', 'block_number' will will be used
| | | "" | diff --git a/docs/evm_api/nft.md b/docs/evm_api/nft.md index e3daa1d..43142bb 100644 --- a/docs/evm_api/nft.md +++ b/docs/evm_api/nft.md @@ -65,7 +65,7 @@ print(result) | Name | Type | Description | Required | Default | Example | |------|------|-------------|----------|---------|---------| | address | str | The address of the NFT contract | Yes | | "0xb47e3cd837dDF8e4c57F05d70Ab865de6e193BBB" | -| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa" | The chain to query | | "eth" | "eth" | +| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa"
- "holesky"
- "0x4268" | The chain to query | | "eth" | "eth" | | format | enum[str]:
- "decimal"
- "hex" | The format of the token ID | | "decimal" | "decimal" | | limit | int | The desired page size of the result. | | | 0 | | totalRanges | int | The number of subranges to split the results into | | | 0 | @@ -115,7 +115,7 @@ print(result) | Name | Type | Description | Required | Default | Example | |------|------|-------------|----------|---------|---------| -| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa" | The chain to query | | "eth" | "eth" | +| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa"
- "holesky"
- "0x4268" | The chain to query | | "eth" | "eth" | ### Body @@ -162,7 +162,7 @@ print(result) | Name | Type | Description | Required | Default | Example | |------|------|-------------|----------|---------|---------| -| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa" | The chain to query | | "eth" | "eth" | +| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa"
- "holesky"
- "0x4268" | The chain to query | | "eth" | "eth" | ### Body @@ -204,7 +204,7 @@ print(result) | Name | Type | Description | Required | Default | Example | |------|------|-------------|----------|---------|---------| | address | str | The address of the NFT collection | Yes | | "" | -| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa" | The chain to query | | "eth" | "eth" | +| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa"
- "holesky"
- "0x4268" | The chain to query | | "eth" | "eth" | @@ -242,7 +242,7 @@ print(result) | Name | Type | Description | Required | Default | Example | |------|------|-------------|----------|---------|---------| | address | str | The address of the NFT contract | Yes | | "0xb47e3cd837dDF8e4c57F05d70Ab865de6e193BBB" | -| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa" | The chain to query | | "eth" | "eth" | +| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa"
- "holesky"
- "0x4268" | The chain to query | | "eth" | "eth" | @@ -286,7 +286,7 @@ print(result) | Name | Type | Description | Required | Default | Example | |------|------|-------------|----------|---------|---------| | address | str | The address of the NFT contract | Yes | | "0xb47e3cd837dDF8e4c57F05d70Ab865de6e193BBB" | -| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa" | The chain to query | | "eth" | "eth" | +| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa"
- "holesky"
- "0x4268" | The chain to query | | "eth" | "eth" | | from_block | int | The minimum block number from where to get the transfers
* Provide the param 'from_block' or 'from_date'
* If 'from_date' and 'from_block' are provided, 'from_block' will be used.
| | | 0 | | to_block | int | The maximum block number from where to get the transfers.
* Provide the param 'to_block' or 'to_date'
* If 'to_date' and 'to_block' are provided, 'to_block' will be used.
| | | 0 | | from_date | str | The date from where to get the transfers (format in seconds or datestring accepted by momentjs)
* Provide the param 'from_block' or 'from_date'
* If 'from_date' and 'from_block' are provided, 'from_block' will be used.
| | | "" | @@ -332,7 +332,7 @@ print(result) | Name | Type | Description | Required | Default | Example | |------|------|-------------|----------|---------|---------| | address | str | The address of the NFT contract | Yes | | "0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D" | -| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa" | The chain to query | | "eth" | "eth" | +| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa"
- "holesky"
- "0x4268" | The chain to query | | "eth" | "eth" | | days | int | The number of days to look back to find the lowest price
If not provided 7 days will be the default
| | | 0 | | marketplace | enum[str]:
- "opensea" | Marketplace from which to get the trades (only OpenSea is supported at the moment) | | "opensea" | "opensea" | @@ -377,7 +377,7 @@ print(result) |------|------|-------------|----------|---------|---------| | address | str | The address of the NFT contract | Yes | | "0xb47e3cd837dDF8e4c57F05d70Ab865de6e193BBB" | | token_id | str | The ID of the token | Yes | | "1" | -| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa" | The chain to query | | "eth" | "eth" | +| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa"
- "holesky"
- "0x4268" | The chain to query | | "eth" | "eth" | | format | enum[str]:
- "decimal"
- "hex" | The format of the token ID | | "decimal" | "decimal" | | normalizeMetadata | bool | Should normalized metadata be returned? | | False | True | | media_items | bool | Should preview media data be returned? | | False | True | @@ -422,7 +422,7 @@ print(result) | Name | Type | Description | Required | Default | Example | |------|------|-------------|----------|---------|---------| | address | str | The address of the NFT contract | Yes | | "0xb47e3cd837dDF8e4c57F05d70Ab865de6e193BBB" | -| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa" | The chain to query | | "eth" | "eth" | +| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa"
- "holesky"
- "0x4268" | The chain to query | | "eth" | "eth" | | format | enum[str]:
- "decimal"
- "hex" | The format of the token ID | | "decimal" | "decimal" | | limit | int | The desired page size of the result. | | | 0 | | cursor | str | The cursor returned in the previous response (used for getting the next page). | | | "" | @@ -472,7 +472,7 @@ print(result) |------|------|-------------|----------|---------|---------| | address | str | The address of the NFT contract | Yes | | "0xb47e3cd837dDF8e4c57F05d70Ab865de6e193BBB" | | token_id | str | The ID of the token | Yes | | "1" | -| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa" | The chain to query | | "eth" | "eth" | +| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa"
- "holesky"
- "0x4268" | The chain to query | | "eth" | "eth" | | format | enum[str]:
- "decimal"
- "hex" | The format of the token ID | | "decimal" | "decimal" | | limit | int | The desired page size of the result. | | | 0 | | cursor | str | The cursor returned in the previous response (used for getting the next page). | | | "" | @@ -515,7 +515,7 @@ print(result) |------|------|-------------|----------|---------|---------| | address | str | The address of the NFT collection | Yes | | "" | | token_id | str | The token id of the NFT collection | Yes | | "" | -| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa" | The chain to query | | "eth" | "eth" | +| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa"
- "holesky"
- "0x4268" | The chain to query | | "eth" | "eth" | @@ -558,7 +558,7 @@ print(result) | Name | Type | Description | Required | Default | Example | |------|------|-------------|----------|---------|---------| | address | str | The address of the NFT contract | Yes | | "0xb47e3cd837dDF8e4c57F05d70Ab865de6e193BBB" | -| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa" | The chain to query | | "eth" | "eth" | +| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa"
- "holesky"
- "0x4268" | The chain to query | | "eth" | "eth" | | from_block | int | The minimum block number from which to get the transfers
* Provide the param 'from_block' or 'from_date'
* If 'from_date' and 'from_block' are provided, 'from_block' will be used.
| | | 0 | | to_block | str | The block number to get the trades from | | | "" | | from_date | str | The start date from which to get the transfers (format in seconds or datestring accepted by momentjs)
* Provide the param 'from_block' or 'from_date'
* If 'from_date' and 'from_block' are provided, 'from_block' will be used.
| | | "" | @@ -607,7 +607,7 @@ print(result) |------|------|-------------|----------|---------|---------| | address | str | The address of the NFT contract | Yes | | "0xb47e3cd837dDF8e4c57F05d70Ab865de6e193BBB" | | token_id | str | The ID of the token | Yes | | "1" | -| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa" | The chain to query | | "eth" | "eth" | +| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa"
- "holesky"
- "0x4268" | The chain to query | | "eth" | "eth" | | format | enum[str]:
- "decimal"
- "hex" | The format of the token ID | | "decimal" | "decimal" | | limit | int | The desired page size of the result. | | | 0 | | order | enum[str]:
- "ASC"
- "DESC" | The order of the result, in ascending (ASC) or descending (DESC) | | "DESC" | "DESC" | @@ -650,7 +650,7 @@ print(result) | Name | Type | Description | Required | Default | Example | |------|------|-------------|----------|---------|---------| | block_number_or_hash | str | The block number or block hash | Yes | | "15846571" | -| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa" | The chain to query | | "eth" | "eth" | +| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa"
- "holesky"
- "0x4268" | The chain to query | | "eth" | "eth" | | limit | int | The desired page size of the result. | | 100 | 0 | | order | enum[str]:
- "ASC"
- "DESC" | The order of the result, in ascending (ASC) or descending (DESC) | | "DESC" | "DESC" | | cursor | str | The cursor returned in the previous response (used for getting the next page). | | | "" | @@ -695,7 +695,7 @@ print(result) | Name | Type | Description | Required | Default | Example | |------|------|-------------|----------|---------|---------| -| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa" | The chain to query | | "eth" | "eth" | +| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa"
- "holesky"
- "0x4268" | The chain to query | | "eth" | "eth" | | from_block | int | The minimum block number from which to get the transfers
* Provide the param 'from_block' or 'from_date'
* If 'from_date' and 'from_block' are provided, 'from_block' will be used.
| | | 0 | | to_block | int | The maximum block number from which to get the transfers.
* Provide the param 'to_block' or 'to_date'
* If 'to_date' and 'to_block' are provided, 'to_block' will be used.
| | | 0 | | from_date | str | The start date from which to get the transfers (format in seconds or datestring accepted by momentjs)
* Provide the param 'from_block' or 'from_date'
* If 'from_date' and 'from_block' are provided, 'from_block' will be used.
| | | "" | @@ -743,7 +743,7 @@ print(result) | Name | Type | Description | Required | Default | Example | |------|------|-------------|----------|---------|---------| | address | str | The wallet address of the owner of NFTs in the collections | Yes | | "0xd8da6bf26964af9d7eed9e03e53415d37aa96045" | -| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa" | The chain to query | | "eth" | "eth" | +| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa"
- "holesky"
- "0x4268" | The chain to query | | "eth" | "eth" | | limit | int | The desired page size of the result. | | | 0 | | exclude_spam | bool | Should spam NFTs be excluded from the result? | | False | True | | cursor | str | The cursor returned in the previous response (used for getting the next page). | | | "" | @@ -792,7 +792,7 @@ print(result) | Name | Type | Description | Required | Default | Example | |------|------|-------------|----------|---------|---------| | address | str | The wallet address of the sender or recipient of the transfers | Yes | | "0xd8da6bf26964af9d7eed9e03e53415d37aa96045" | -| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa" | The chain to query | | "eth" | "eth" | +| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa"
- "holesky"
- "0x4268" | The chain to query | | "eth" | "eth" | | contract_addresses | List of str | List of contract addresses of transfers | | | [] | | format | enum[str]:
- "decimal"
- "hex" | The format of the token ID | | "decimal" | "decimal" | | from_block | int | The minimum block number from which to get the transfers
* Provide the param 'from_block' or 'from_date'
* If 'from_date' and 'from_block' are provided, 'from_block' will be used.
| | | 0 | @@ -848,7 +848,7 @@ print(result) | Name | Type | Description | Required | Default | Example | |------|------|-------------|----------|---------|---------| | address | str | The address of the wallet | Yes | | "0xd8da6bf26964af9d7eed9e03e53415d37aa96045" | -| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa" | The chain to query | | "eth" | "eth" | +| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa"
- "holesky"
- "0x4268" | The chain to query | | "eth" | "eth" | | format | enum[str]:
- "decimal"
- "hex" | The format of the token ID | | "decimal" | "decimal" | | limit | int | The desired page size of the result. | | | 0 | | exclude_spam | bool | Should spam NFTs be excluded from the result? | | False | True | @@ -900,7 +900,7 @@ print(result) |------|------|-------------|----------|---------|---------| | address | str | The address of the NFT contract | Yes | | "0xb47e3cd837dDF8e4c57F05d70Ab865de6e193BBB" | | token_id | str | The ID of the token | Yes | | "1" | -| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa" | The chain to query | | "eth" | "eth" | +| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa"
- "holesky"
- "0x4268" | The chain to query | | "eth" | "eth" | | flag | enum[str]:
- "uri"
- "metadata" | The type of resync to operate | | "uri" | "uri" | | mode | enum[str]:
- "async"
- "sync" | To define the behaviour of the endpoint | | "async" | "sync" | @@ -938,7 +938,7 @@ print(result) | Name | Type | Description | Required | Default | Example | |------|------|-------------|----------|---------|---------| | address | str | The address of the NFT contract | Yes | | "0xb47e3cd837dDF8e4c57F05d70Ab865de6e193BBB" | -| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa" | The chain to query | | "eth" | "eth" | +| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa"
- "holesky"
- "0x4268" | The chain to query | | "eth" | "eth" | diff --git a/docs/evm_api/token.md b/docs/evm_api/token.md index 7b85ab7..ff1442e 100644 --- a/docs/evm_api/token.md +++ b/docs/evm_api/token.md @@ -49,7 +49,7 @@ print(result) | Name | Type | Description | Required | Default | Example | |------|------|-------------|----------|---------|---------| -| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa" | The chain to query | | "eth" | "eth" | +| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa"
- "holesky"
- "0x4268" | The chain to query | | "eth" | "eth" | | include | enum[str]:
- "percent_change" | If the result should contain the 24hr percent change | | "" | "" | @@ -97,7 +97,7 @@ print(result) | address | str | The address of the token contract | Yes | | "" | | owner_address | str | The address of the token owner | Yes | | "" | | spender_address | str | The address of the token spender | Yes | | "" | -| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa" | The chain to query | | "eth" | "eth" | +| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa"
- "holesky"
- "0x4268" | The chain to query | | "eth" | "eth" | @@ -133,7 +133,7 @@ print(result) | Name | Type | Description | Required | Default | Example | |------|------|-------------|----------|---------|---------| | addresses | List of str | The addresses to get metadata for | Yes | | [] | -| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa" | The chain to query | | "eth" | "eth" | +| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa"
- "holesky"
- "0x4268" | The chain to query | | "eth" | "eth" | @@ -169,7 +169,7 @@ print(result) | Name | Type | Description | Required | Default | Example | |------|------|-------------|----------|---------|---------| | symbols | List of str | The symbols to get metadata for | Yes | | [] | -| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa" | The chain to query | | "eth" | "eth" | +| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa"
- "holesky"
- "0x4268" | The chain to query | | "eth" | "eth" | @@ -219,7 +219,7 @@ print(result) | price_format | str | The price format of the ohlc candles (usd, native) | Yes | | "" | | from_date | str | The date from where to get the ohlc candles (format in seconds or datestring accepted by momentjs). | Yes | | "" | | to_date | str | Get ohlc candles up until this date (format in seconds or datestring accepted by momentjs). | Yes | | "" | -| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa" | The chain to query | | "eth" | "eth" | +| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa"
- "holesky"
- "0x4268" | The chain to query | | "eth" | "eth" | | limit | int | The maximum number of ohlc candles to return (max 100) | | | 0 | | cursor | str | The cursor returned in the previous response (used for getting the next page). | | | "" | @@ -260,7 +260,7 @@ print(result) | Name | Type | Description | Required | Default | Example | |------|------|-------------|----------|---------|---------| | address | str | The address of the token contract | Yes | | "0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0" | -| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa" | The chain to query | | "eth" | "eth" | +| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa"
- "holesky"
- "0x4268" | The chain to query | | "eth" | "eth" | | exchange | str | The factory name or address of the token exchange | | | "" | | to_block | int | The block number from which the token price should be checked | | | 0 | | include | enum[str]:
- "percent_change" | If the result should contain the 24hr percent change | | "" | "" | @@ -299,7 +299,7 @@ print(result) | Name | Type | Description | Required | Default | Example | |------|------|-------------|----------|---------|---------| | address | str | The address of the erc20 token | Yes | | "" | -| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa" | The chain to query | | "eth" | "eth" | +| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa"
- "holesky"
- "0x4268" | The chain to query | | "eth" | "eth" | @@ -342,7 +342,7 @@ print(result) | Name | Type | Description | Required | Default | Example | |------|------|-------------|----------|---------|---------| | address | str | The address of the token contract | Yes | | "0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0" | -| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa" | The chain to query | | "eth" | "eth" | +| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa"
- "holesky"
- "0x4268" | The chain to query | | "eth" | "eth" | | from_block | int | The minimum block number from which to get the transfers
* Provide the param 'from_block' or 'from_date'
* If 'from_date' and 'from_block' are provided, 'from_block' will be used.
| | | 0 | | to_block | int | The maximum block number from which to get the transfers.
* Provide the param 'to_block' or 'to_date'
* If 'to_date' and 'to_block' are provided, 'to_block' will be used.
| | | 0 | | from_date | str | The start date from which to get the transfers (format in seconds or datestring accepted by momentjs)
* Provide the param 'from_block' or 'from_date'
* If 'from_date' and 'from_block' are provided, 'from_block' will be used.
| | | "" | @@ -388,7 +388,7 @@ print(result) | Name | Type | Description | Required | Default | Example | |------|------|-------------|----------|---------|---------| | address | str | The address from which token balances will be checked | Yes | | "0xd8da6bf26964af9d7eed9e03e53415d37aa96045" | -| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa" | The chain to query | | "eth" | "eth" | +| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa"
- "holesky"
- "0x4268" | The chain to query | | "eth" | "eth" | | to_block | float | The block number up to which the balances will be checked. | | | 1.2 | | token_addresses | List of str | The addresses to get balances for (optional) | | | [] | | exclude_spam | bool | Exclude spam tokens from the result | | True | True | @@ -435,7 +435,7 @@ print(result) | Name | Type | Description | Required | Default | Example | |------|------|-------------|----------|---------|---------| | address | str | The address of the wallet | Yes | | "0xd8da6bf26964af9d7eed9e03e53415d37aa96045" | -| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa" | The chain to query | | "eth" | "eth" | +| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa"
- "holesky"
- "0x4268" | The chain to query | | "eth" | "eth" | | from_block | int | The minimum block number from which to get the transactions
* Provide the param 'from_block' or 'from_date'
* If 'from_date' and 'from_block' are provided, 'from_block' will be used.
| | | 0 | | to_block | int | The maximum block number from which to get the transactions.
* Provide the param 'to_block' or 'to_date'
* If 'to_date' and 'to_block' are provided, 'to_block' will be used.
| | | 0 | | from_date | str | The start date from which to get the transactions (format in seconds or datestring accepted by momentjs)
* Provide the param 'from_block' or 'from_date'
* If 'from_date' and 'from_block' are provided, 'from_block' will be used.
| | | "" | diff --git a/docs/evm_api/transaction.md b/docs/evm_api/transaction.md index a4816e1..72c40c3 100644 --- a/docs/evm_api/transaction.md +++ b/docs/evm_api/transaction.md @@ -41,7 +41,7 @@ print(result) | Name | Type | Description | Required | Default | Example | |------|------|-------------|----------|---------|---------| | transaction_hash | str | The transaction hash | Yes | | "0xdc85cb1b75fd09c2f6d001fea4aba83764193cbd7881a1fa8ccde350a5681109" | -| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa" | The chain to query | | "eth" | "eth" | +| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa"
- "holesky"
- "0x4268" | The chain to query | | "eth" | "eth" | @@ -78,7 +78,7 @@ print(result) | Name | Type | Description | Required | Default | Example | |------|------|-------------|----------|---------|---------| | transaction_hash | str | The transaction hash | Yes | | "0xdc85cb1b75fd09c2f6d001fea4aba83764193cbd7881a1fa8ccde350a5681109" | -| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa" | The chain to query | | "eth" | "eth" | +| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa"
- "holesky"
- "0x4268" | The chain to query | | "eth" | "eth" | | include | enum[str]:
- "internal_transactions" | If the result should contain the internal transactions. | | "" | "" | @@ -116,7 +116,7 @@ print(result) | Name | Type | Description | Required | Default | Example | |------|------|-------------|----------|---------|---------| | transaction_hash | str | The transaction hash | Yes | | "0xdc85cb1b75fd09c2f6d001fea4aba83764193cbd7881a1fa8ccde350a5681109" | -| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa" | The chain to query | | "eth" | "eth" | +| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa"
- "holesky"
- "0x4268" | The chain to query | | "eth" | "eth" | | include | enum[str]:
- "internal_transactions" | If the result should contain the internal transactions. | | "" | "" | @@ -161,7 +161,7 @@ print(result) | Name | Type | Description | Required | Default | Example | |------|------|-------------|----------|---------|---------| | address | str | The address of the wallet | Yes | | "0xd8da6bf26964af9d7eed9e03e53415d37aa96045" | -| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa" | The chain to query | | "eth" | "eth" | +| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa"
- "holesky"
- "0x4268" | The chain to query | | "eth" | "eth" | | from_block | int | The minimum block number from which to get the transactions
* Provide the param 'from_block' or 'from_date'
* If 'from_date' and 'from_block' are provided, 'from_block' will be used.
| | | 0 | | to_block | int | The maximum block number from which to get the transactions.
* Provide the param 'to_block' or 'to_date'
* If 'to_date' and 'to_block' are provided, 'to_block' will be used.
| | | 0 | | from_date | str | The start date from which to get the transactions (format in seconds or datestring accepted by momentjs)
* Provide the param 'from_block' or 'from_date'
* If 'from_date' and 'from_block' are provided, 'from_block' will be used.
| | | "" | @@ -213,7 +213,7 @@ print(result) | Name | Type | Description | Required | Default | Example | |------|------|-------------|----------|---------|---------| | address | str | The address of the wallet | Yes | | "0xd8da6bf26964af9d7eed9e03e53415d37aa96045" | -| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa" | The chain to query | | "eth" | "eth" | +| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa"
- "holesky"
- "0x4268" | The chain to query | | "eth" | "eth" | | from_block | int | The minimum block number from which to get the transactions
* Provide the param 'from_block' or 'from_date'
* If 'from_date' and 'from_block' are provided, 'from_block' will be used.
| | | 0 | | to_block | int | The maximum block number from which to get the transactions.
* Provide the param 'to_block' or 'to_date'
* If 'to_date' and 'to_block' are provided, 'to_block' will be used.
| | | 0 | | from_date | str | The start date from which to get the transactions (format in seconds or datestring accepted by momentjs)
* Provide the param 'from_block' or 'from_date'
* If 'from_date' and 'from_block' are provided, 'from_block' will be used.
| | | "" | diff --git a/docs/evm_api/utils.md b/docs/evm_api/utils.md index db88331..7f408c1 100644 --- a/docs/evm_api/utils.md +++ b/docs/evm_api/utils.md @@ -65,7 +65,7 @@ print(result) | Name | Type | Description | Required | Default | Example | |------|------|-------------|----------|---------|---------| -| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa" | The chain to query | | "eth" | "eth" | +| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa"
- "holesky"
- "0x4268" | The chain to query | | "eth" | "eth" | ### Body @@ -115,7 +115,7 @@ print(result) |------|------|-------------|----------|---------|---------| | address | str | The address of the contract | Yes | | "" | | function_name | str | The function name of the contract | Yes | | "" | -| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa" | The chain to query | | "eth" | "eth" | +| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa"
- "holesky"
- "0x4268" | The chain to query | | "eth" | "eth" | ### Body diff --git a/docs/evm_api/wallets.md b/docs/evm_api/wallets.md index 676a9d9..75f45c2 100644 --- a/docs/evm_api/wallets.md +++ b/docs/evm_api/wallets.md @@ -3,6 +3,7 @@ > `evm_api.wallets` - [get_wallet_active_chains](#get_wallet_active_chains) +- [get_wallet_history](#get_wallet_history) - [get_wallet_net_worth](#get_wallet_net_worth) - [get_wallet_stats](#get_wallet_stats) - [get_wallet_token_balances_price](#get_wallet_token_balances_price) @@ -40,7 +41,61 @@ print(result) | Name | Type | Description | Required | Default | Example | |------|------|-------------|----------|---------|---------| | address | str | Wallet address | Yes | | "" | -| chains | List of enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa" | The chains to query | | | [] | +| chains | List of enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa"
- "holesky"
- "0x4268" | The chains to query | | | [] | + + + +--- +## get_wallet_history + +> `evm_api.wallets.get_wallet_history()` + +Get the complete history of a wallet + + +### Example +```python +from moralis import evm_api + +api_key = "YOUR_API_KEY" +params = { + "address": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045", + "chain": "eth", + "from_block": 0, + "to_block": 0, + "from_date": "", + "to_date": "", + "internal_transactions": True, + "nft_metadata": True, + "cursor": "", + "order": "DESC", + "limit": 0, +} + +result = evm_api.wallets.get_wallet_history( + api_key=api_key, + params=params, +) + +print(result) + +``` + +### Parameters + +| Name | Type | Description | Required | Default | Example | +|------|------|-------------|----------|---------|---------| +| address | str | The address of the wallet | Yes | | "0xd8da6bf26964af9d7eed9e03e53415d37aa96045" | +| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa"
- "holesky"
- "0x4268" | The chain to query | | "eth" | "eth" | +| from_block | int | The minimum block number from which to get the transactions
* Provide the param 'from_block' or 'from_date'
* If 'from_date' and 'from_block' are provided, 'from_block' will be used.
| | | 0 | +| to_block | int | The maximum block number from which to get the transactions.
* Provide the param 'to_block' or 'to_date'
* If 'to_date' and 'to_block' are provided, 'to_block' will be used.
| | | 0 | +| from_date | str | The start date from which to get the transactions (format in seconds or datestring accepted by momentjs)
* Provide the param 'from_block' or 'from_date'
* If 'from_date' and 'from_block' are provided, 'from_block' will be used.
| | | "" | +| to_date | str | Get the transactions up to this date (format in seconds or datestring accepted by momentjs)
* Provide the param 'to_block' or 'to_date'
* If 'to_date' and 'to_block' are provided, 'to_block' will be used.
| | | "" | +| internal_transactions | bool | If the result should contain the internal transactions. | | | True | +| nft_metadata | bool | If the result should contain the nft metadata. | | | True | +| cursor | str | The cursor returned in the previous response (used for getting the next page). | | | "" | +| order | enum[str]:
- "ASC"
- "DESC" | The order of the result, in ascending (ASC) or descending (DESC) | | "DESC" | "DESC" | +| limit | int | The desired page size of the result. | | | 0 | @@ -78,7 +133,7 @@ print(result) | Name | Type | Description | Required | Default | Example | |------|------|-------------|----------|---------|---------| | address | str | The wallet address | Yes | | "0xd8da6bf26964af9d7eed9e03e53415d37aa96045" | -| chains | List of enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa" | The chains to query | | | [] | +| chains | List of enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa"
- "holesky"
- "0x4268" | The chains to query | | | [] | | exclude_spam | bool | Exclude spam tokens from the result | | False | True | | exclude_unverified_contracts | bool | Exclude unverified contracts from the result | | False | True | @@ -116,7 +171,7 @@ print(result) | Name | Type | Description | Required | Default | Example | |------|------|-------------|----------|---------|---------| | address | str | Wallet address | Yes | | "" | -| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa" | The chain to query | | "eth" | "eth" | +| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa"
- "holesky"
- "0x4268" | The chain to query | | "eth" | "eth" | @@ -159,7 +214,7 @@ print(result) | Name | Type | Description | Required | Default | Example | |------|------|-------------|----------|---------|---------| | address | str | The address from which token balances will be checked | Yes | | "0xd8da6bf26964af9d7eed9e03e53415d37aa96045" | -| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa" | The chain to query | | "eth" | "eth" | +| chain | enum[str]:
- "eth"
- "0x1"
- "goerli"
- "0x5"
- "sepolia"
- "0xaa36a7"
- "polygon"
- "0x89"
- "mumbai"
- "0x13881"
- "bsc"
- "0x38"
- "bsc testnet"
- "0x61"
- "avalanche"
- "0xa86a"
- "fantom"
- "0xfa"
- "palm"
- "0x2a15c308d"
- "cronos"
- "0x19"
- "arbitrum"
- "0xa4b1"
- "chiliz"
- "0x15b38"
- "chiliz testnet"
- "0x15b32"
- "gnosis"
- "0x64"
- "gnosis testnet"
- "0x27d8"
- "base"
- "0x2105"
- "base testnet"
- "0x14a33"
- "base sepolia"
- "0x14a34"
- "optimism"
- "0xa"
- "holesky"
- "0x4268" | The chain to query | | "eth" | "eth" | | to_block | float | The block number up to which the balances will be checked. | | | 1.2 | | token_addresses | List of str | The addresses to get balances for (optional) | | | [] | | exclude_spam | bool | Exclude spam tokens from the result | | False | True | diff --git a/src/moralis/evm_api/wallets/get_wallet_history.py b/src/moralis/evm_api/wallets/get_wallet_history.py new file mode 100644 index 0000000..acfa0d8 --- /dev/null +++ b/src/moralis/evm_api/wallets/get_wallet_history.py @@ -0,0 +1,28 @@ +import json +import typing +import typing_extensions +from .api_instance import get_api_instance +from openapi_evm_api.paths.wallets_address_history.get import RequestQueryParams, RequestPathParams + + + +class QueryParams(RequestQueryParams): + pass + +class Params(QueryParams,RequestPathParams,): + pass + +def get_wallet_history(api_key: str, params: Params): + api_instance = get_api_instance(api_key, params) + query_params: typing.Any = {k: v for k, v in params.items() if k in RequestQueryParams.__annotations__.keys()} + path_params: typing.Any = {k: v for k, v in params.items() if k in RequestPathParams.__annotations__.keys()} + api_response = api_instance.get_wallet_history( + query_params=query_params, + path_params=path_params, + accept_content_types=( + 'application/json; charset=utf-8', + ), + skip_deserialization=True + ) + + return json.loads(api_response.response.data) diff --git a/src/moralis/evm_api/wallets/wallets.py b/src/moralis/evm_api/wallets/wallets.py index d86eef0..c305a18 100644 --- a/src/moralis/evm_api/wallets/wallets.py +++ b/src/moralis/evm_api/wallets/wallets.py @@ -1,4 +1,5 @@ from .get_wallet_active_chains import get_wallet_active_chains +from .get_wallet_history import get_wallet_history from .get_wallet_net_worth import get_wallet_net_worth from .get_wallet_stats import get_wallet_stats from .get_wallet_token_balances_price import get_wallet_token_balances_price diff --git a/src/openapi_evm_api/apis/path_to_api.py b/src/openapi_evm_api/apis/path_to_api.py index 0e240e0..b6d910f 100644 --- a/src/openapi_evm_api/apis/path_to_api.py +++ b/src/openapi_evm_api/apis/path_to_api.py @@ -29,6 +29,7 @@ from openapi_evm_api.apis.paths.erc20_address_transfers import Erc20AddressTransfers from openapi_evm_api.apis.paths.address_balance import AddressBalance from openapi_evm_api.apis.paths.wallets_balances import WalletsBalances +from openapi_evm_api.apis.paths.wallets_address_history import WalletsAddressHistory from openapi_evm_api.apis.paths.wallets_address_tokens import WalletsAddressTokens from openapi_evm_api.apis.paths.wallets_address_net_worth import WalletsAddressNetWorth from openapi_evm_api.apis.paths.address import Address @@ -107,6 +108,7 @@ PathValues.ERC20_ADDRESS_TRANSFERS: Erc20AddressTransfers, PathValues.ADDRESS_BALANCE: AddressBalance, PathValues.WALLETS_BALANCES: WalletsBalances, + PathValues.WALLETS_ADDRESS_HISTORY: WalletsAddressHistory, PathValues.WALLETS_ADDRESS_TOKENS: WalletsAddressTokens, PathValues.WALLETS_ADDRESS_NETWORTH: WalletsAddressNetWorth, PathValues.ADDRESS: Address, @@ -186,6 +188,7 @@ PathValues.ERC20_ADDRESS_TRANSFERS: Erc20AddressTransfers, PathValues.ADDRESS_BALANCE: AddressBalance, PathValues.WALLETS_BALANCES: WalletsBalances, + PathValues.WALLETS_ADDRESS_HISTORY: WalletsAddressHistory, PathValues.WALLETS_ADDRESS_TOKENS: WalletsAddressTokens, PathValues.WALLETS_ADDRESS_NETWORTH: WalletsAddressNetWorth, PathValues.ADDRESS: Address, diff --git a/src/openapi_evm_api/apis/paths/wallets_address_history.py b/src/openapi_evm_api/apis/paths/wallets_address_history.py new file mode 100644 index 0000000..ae48efe --- /dev/null +++ b/src/openapi_evm_api/apis/paths/wallets_address_history.py @@ -0,0 +1,7 @@ +from openapi_evm_api.paths.wallets_address_history.get import ApiForget + + +class WalletsAddressHistory( + ApiForget, +): + pass diff --git a/src/openapi_evm_api/apis/tags/wallets_api.py b/src/openapi_evm_api/apis/tags/wallets_api.py index b2a8cb0..97911a4 100644 --- a/src/openapi_evm_api/apis/tags/wallets_api.py +++ b/src/openapi_evm_api/apis/tags/wallets_api.py @@ -10,6 +10,7 @@ """ from openapi_evm_api.paths.wallets_address_chains.get import GetWalletActiveChains +from openapi_evm_api.paths.wallets_address_history.get import GetWalletHistory from openapi_evm_api.paths.wallets_address_net_worth.get import GetWalletNetWorth from openapi_evm_api.paths.wallets_address_stats.get import GetWalletStats from openapi_evm_api.paths.wallets_address_tokens.get import GetWalletTokenBalancesPrice @@ -17,6 +18,7 @@ class WalletsApi( GetWalletActiveChains, + GetWalletHistory, GetWalletNetWorth, GetWalletStats, GetWalletTokenBalancesPrice, diff --git a/src/openapi_evm_api/model/chain_list.py b/src/openapi_evm_api/model/chain_list.py index 01f68f6..744881e 100644 --- a/src/openapi_evm_api/model/chain_list.py +++ b/src/openapi_evm_api/model/chain_list.py @@ -76,6 +76,8 @@ class MetaOapg: "0x14a34": "X14A34", "optimism": "OPTIMISM", "0xa": "XA", + "holesky": "HOLESKY", + "0x4268": "X4268", } @schemas.classproperty @@ -237,3 +239,11 @@ def OPTIMISM(cls): @schemas.classproperty def XA(cls): return cls("0xa") + + @schemas.classproperty + def HOLESKY(cls): + return cls("holesky") + + @schemas.classproperty + def X4268(cls): + return cls("0x4268") diff --git a/src/openapi_evm_api/model/chain_list.pyi b/src/openapi_evm_api/model/chain_list.pyi index b8d4197..02d8270 100644 --- a/src/openapi_evm_api/model/chain_list.pyi +++ b/src/openapi_evm_api/model/chain_list.pyi @@ -192,3 +192,11 @@ class ChainList( @schemas.classproperty def XA(cls): return cls("0xa") + + @schemas.classproperty + def HOLESKY(cls): + return cls("holesky") + + @schemas.classproperty + def X4268(cls): + return cls("0x4268") diff --git a/src/openapi_evm_api/model/e_transaction_category.py b/src/openapi_evm_api/model/e_transaction_category.py new file mode 100644 index 0000000..746b465 --- /dev/null +++ b/src/openapi_evm_api/model/e_transaction_category.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +""" + EVM API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: 2.2 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from openapi_evm_api import schemas # noqa: F401 + + +class ETransactionCategory( + schemas.EnumBase, + schemas.StrSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Defines the category of the transaction. + """ + + + class MetaOapg: + enum_value_to_name = { + "send": "SEND", + "receive": "RECEIVE", + "token send": "TOKEN_SEND", + "token receive": "TOKEN_RECEIVE", + "nft send": "NFT_SEND", + "nft receive": "NFT_RECEIVE", + "token swap": "TOKEN_SWAP", + "deposit": "DEPOSIT", + "withdraw": "WITHDRAW", + "nft purchase": "NFT_PURCHASE", + "nft sale": "NFT_SALE", + "airdrop": "AIRDROP", + "mint": "MINT", + "burn": "BURN", + "contract interaction": "CONTRACT_INTERACTION", + } + + @schemas.classproperty + def SEND(cls): + return cls("send") + + @schemas.classproperty + def RECEIVE(cls): + return cls("receive") + + @schemas.classproperty + def TOKEN_SEND(cls): + return cls("token send") + + @schemas.classproperty + def TOKEN_RECEIVE(cls): + return cls("token receive") + + @schemas.classproperty + def NFT_SEND(cls): + return cls("nft send") + + @schemas.classproperty + def NFT_RECEIVE(cls): + return cls("nft receive") + + @schemas.classproperty + def TOKEN_SWAP(cls): + return cls("token swap") + + @schemas.classproperty + def DEPOSIT(cls): + return cls("deposit") + + @schemas.classproperty + def WITHDRAW(cls): + return cls("withdraw") + + @schemas.classproperty + def NFT_PURCHASE(cls): + return cls("nft purchase") + + @schemas.classproperty + def NFT_SALE(cls): + return cls("nft sale") + + @schemas.classproperty + def AIRDROP(cls): + return cls("airdrop") + + @schemas.classproperty + def MINT(cls): + return cls("mint") + + @schemas.classproperty + def BURN(cls): + return cls("burn") + + @schemas.classproperty + def CONTRACT_INTERACTION(cls): + return cls("contract interaction") diff --git a/src/openapi_evm_api/model/e_transaction_category.pyi b/src/openapi_evm_api/model/e_transaction_category.pyi new file mode 100644 index 0000000..4dcd85c --- /dev/null +++ b/src/openapi_evm_api/model/e_transaction_category.pyi @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + EVM API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: 2.2 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from openapi_evm_api import schemas # noqa: F401 + + +class ETransactionCategory( + schemas.EnumBase, + schemas.StrSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Defines the category of the transaction. + """ + + @schemas.classproperty + def SEND(cls): + return cls("send") + + @schemas.classproperty + def RECEIVE(cls): + return cls("receive") + + @schemas.classproperty + def TOKEN_SEND(cls): + return cls("token send") + + @schemas.classproperty + def TOKEN_RECEIVE(cls): + return cls("token receive") + + @schemas.classproperty + def NFT_SEND(cls): + return cls("nft send") + + @schemas.classproperty + def NFT_RECEIVE(cls): + return cls("nft receive") + + @schemas.classproperty + def TOKEN_SWAP(cls): + return cls("token swap") + + @schemas.classproperty + def DEPOSIT(cls): + return cls("deposit") + + @schemas.classproperty + def WITHDRAW(cls): + return cls("withdraw") + + @schemas.classproperty + def NFT_PURCHASE(cls): + return cls("nft purchase") + + @schemas.classproperty + def NFT_SALE(cls): + return cls("nft sale") + + @schemas.classproperty + def AIRDROP(cls): + return cls("airdrop") + + @schemas.classproperty + def MINT(cls): + return cls("mint") + + @schemas.classproperty + def BURN(cls): + return cls("burn") + + @schemas.classproperty + def CONTRACT_INTERACTION(cls): + return cls("contract interaction") diff --git a/src/openapi_evm_api/model/wallet_history.py b/src/openapi_evm_api/model/wallet_history.py new file mode 100644 index 0000000..227ff18 --- /dev/null +++ b/src/openapi_evm_api/model/wallet_history.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + EVM API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: 2.2 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from openapi_evm_api import schemas # noqa: F401 + + +class WalletHistory( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "cursor", + "result", + "page", + "page_size", + } + + class properties: + page = schemas.IntSchema + page_size = schemas.IntSchema + cursor = schemas.StrSchema + + + class result( + schemas.ListSchema + ): + + + class MetaOapg: + + @staticmethod + def items() -> typing.Type['WalletHistoryTransaction']: + return WalletHistoryTransaction + + def __new__( + cls, + arg: typing.Union[typing.Tuple['WalletHistoryTransaction'], typing.List['WalletHistoryTransaction']], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'result': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> 'WalletHistoryTransaction': + return super().__getitem__(i) + __annotations__ = { + "page": page, + "page_size": page_size, + "cursor": cursor, + "result": result, + } + + + cursor: MetaOapg.properties.cursor + result: MetaOapg.properties.result + page: MetaOapg.properties.page + page_size: MetaOapg.properties.page_size + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["page"]) -> MetaOapg.properties.page: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["page_size"]) -> MetaOapg.properties.page_size: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["cursor"]) -> MetaOapg.properties.cursor: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["page", "page_size", "cursor", "result", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["page"]) -> MetaOapg.properties.page: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["page_size"]) -> MetaOapg.properties.page_size: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["cursor"]) -> MetaOapg.properties.cursor: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["page", "page_size", "cursor", "result", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + cursor: typing.Union[MetaOapg.properties.cursor, str, ], + result: typing.Union[MetaOapg.properties.result, list, tuple, ], + page: typing.Union[MetaOapg.properties.page, decimal.Decimal, int, ], + page_size: typing.Union[MetaOapg.properties.page_size, decimal.Decimal, int, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'WalletHistory': + return super().__new__( + cls, + *args, + cursor=cursor, + result=result, + page=page, + page_size=page_size, + _configuration=_configuration, + **kwargs, + ) + +from openapi_evm_api.model.wallet_history_transaction import WalletHistoryTransaction diff --git a/src/openapi_evm_api/model/wallet_history.pyi b/src/openapi_evm_api/model/wallet_history.pyi new file mode 100644 index 0000000..227ff18 --- /dev/null +++ b/src/openapi_evm_api/model/wallet_history.pyi @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + EVM API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: 2.2 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from openapi_evm_api import schemas # noqa: F401 + + +class WalletHistory( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "cursor", + "result", + "page", + "page_size", + } + + class properties: + page = schemas.IntSchema + page_size = schemas.IntSchema + cursor = schemas.StrSchema + + + class result( + schemas.ListSchema + ): + + + class MetaOapg: + + @staticmethod + def items() -> typing.Type['WalletHistoryTransaction']: + return WalletHistoryTransaction + + def __new__( + cls, + arg: typing.Union[typing.Tuple['WalletHistoryTransaction'], typing.List['WalletHistoryTransaction']], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'result': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> 'WalletHistoryTransaction': + return super().__getitem__(i) + __annotations__ = { + "page": page, + "page_size": page_size, + "cursor": cursor, + "result": result, + } + + + cursor: MetaOapg.properties.cursor + result: MetaOapg.properties.result + page: MetaOapg.properties.page + page_size: MetaOapg.properties.page_size + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["page"]) -> MetaOapg.properties.page: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["page_size"]) -> MetaOapg.properties.page_size: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["cursor"]) -> MetaOapg.properties.cursor: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["page", "page_size", "cursor", "result", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["page"]) -> MetaOapg.properties.page: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["page_size"]) -> MetaOapg.properties.page_size: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["cursor"]) -> MetaOapg.properties.cursor: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["page", "page_size", "cursor", "result", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + cursor: typing.Union[MetaOapg.properties.cursor, str, ], + result: typing.Union[MetaOapg.properties.result, list, tuple, ], + page: typing.Union[MetaOapg.properties.page, decimal.Decimal, int, ], + page_size: typing.Union[MetaOapg.properties.page_size, decimal.Decimal, int, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'WalletHistory': + return super().__new__( + cls, + *args, + cursor=cursor, + result=result, + page=page, + page_size=page_size, + _configuration=_configuration, + **kwargs, + ) + +from openapi_evm_api.model.wallet_history_transaction import WalletHistoryTransaction diff --git a/src/openapi_evm_api/model/wallet_history_transaction.py b/src/openapi_evm_api/model/wallet_history_transaction.py new file mode 100644 index 0000000..acf015a --- /dev/null +++ b/src/openapi_evm_api/model/wallet_history_transaction.py @@ -0,0 +1,237 @@ +# coding: utf-8 + +""" + EVM API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: 2.2 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from openapi_evm_api import schemas # noqa: F401 + + +class WalletHistoryTransaction( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class all_of_1( + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + required = { + "summary", + "nft_transfers", + "category", + "erc20_transfers", + } + + class properties: + + @staticmethod + def category() -> typing.Type['ETransactionCategory']: + return ETransactionCategory + possible_spam = schemas.BoolSchema + method_label = schemas.StrSchema + summary = schemas.StrSchema + + + class nft_transfers( + schemas.ListSchema + ): + + + class MetaOapg: + + @staticmethod + def items() -> typing.Type['NftTransfer']: + return NftTransfer + + def __new__( + cls, + arg: typing.Union[typing.Tuple['NftTransfer'], typing.List['NftTransfer']], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'nft_transfers': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> 'NftTransfer': + return super().__getitem__(i) + + + class erc20_transfer( + schemas.ListSchema + ): + + + class MetaOapg: + + @staticmethod + def items() -> typing.Type['Erc20Transaction']: + return Erc20Transaction + + def __new__( + cls, + arg: typing.Union[typing.Tuple['Erc20Transaction'], typing.List['Erc20Transaction']], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'erc20_transfer': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> 'Erc20Transaction': + return super().__getitem__(i) + __annotations__ = { + "category": category, + "possible_spam": possible_spam, + "method_label": method_label, + "summary": summary, + "nft_transfers": nft_transfers, + "erc20_transfer": erc20_transfer, + } + + + summary: MetaOapg.properties.summary + nft_transfers: MetaOapg.properties.nft_transfers + category: 'ETransactionCategory' + erc20_transfers: schemas.AnyTypeSchema + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["category"]) -> 'ETransactionCategory': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["possible_spam"]) -> MetaOapg.properties.possible_spam: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["method_label"]) -> MetaOapg.properties.method_label: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["summary"]) -> MetaOapg.properties.summary: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["nft_transfers"]) -> MetaOapg.properties.nft_transfers: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["erc20_transfer"]) -> MetaOapg.properties.erc20_transfer: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["category", "possible_spam", "method_label", "summary", "nft_transfers", "erc20_transfer", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["category"]) -> 'ETransactionCategory': ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["possible_spam"]) -> typing.Union[MetaOapg.properties.possible_spam, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["method_label"]) -> typing.Union[MetaOapg.properties.method_label, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["summary"]) -> MetaOapg.properties.summary: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["nft_transfers"]) -> MetaOapg.properties.nft_transfers: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["erc20_transfer"]) -> typing.Union[MetaOapg.properties.erc20_transfer, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["category", "possible_spam", "method_label", "summary", "nft_transfers", "erc20_transfer", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + summary: typing.Union[MetaOapg.properties.summary, str, ], + nft_transfers: typing.Union[MetaOapg.properties.nft_transfers, list, tuple, ], + category: 'ETransactionCategory', + erc20_transfers: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + possible_spam: typing.Union[MetaOapg.properties.possible_spam, bool, schemas.Unset] = schemas.unset, + method_label: typing.Union[MetaOapg.properties.method_label, str, schemas.Unset] = schemas.unset, + erc20_transfer: typing.Union[MetaOapg.properties.erc20_transfer, list, tuple, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'all_of_1': + return super().__new__( + cls, + *args, + summary=summary, + nft_transfers=nft_transfers, + category=category, + erc20_transfers=erc20_transfers, + possible_spam=possible_spam, + method_label=method_label, + erc20_transfer=erc20_transfer, + _configuration=_configuration, + **kwargs, + ) + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + BlockTransaction, + cls.all_of_1, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'WalletHistoryTransaction': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from openapi_evm_api.model.block_transaction import BlockTransaction +from openapi_evm_api.model.e_transaction_category import ETransactionCategory +from openapi_evm_api.model.erc20_transaction import Erc20Transaction +from openapi_evm_api.model.nft_transfer import NftTransfer diff --git a/src/openapi_evm_api/model/wallet_history_transaction.pyi b/src/openapi_evm_api/model/wallet_history_transaction.pyi new file mode 100644 index 0000000..acf015a --- /dev/null +++ b/src/openapi_evm_api/model/wallet_history_transaction.pyi @@ -0,0 +1,237 @@ +# coding: utf-8 + +""" + EVM API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: 2.2 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from openapi_evm_api import schemas # noqa: F401 + + +class WalletHistoryTransaction( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class all_of_1( + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + required = { + "summary", + "nft_transfers", + "category", + "erc20_transfers", + } + + class properties: + + @staticmethod + def category() -> typing.Type['ETransactionCategory']: + return ETransactionCategory + possible_spam = schemas.BoolSchema + method_label = schemas.StrSchema + summary = schemas.StrSchema + + + class nft_transfers( + schemas.ListSchema + ): + + + class MetaOapg: + + @staticmethod + def items() -> typing.Type['NftTransfer']: + return NftTransfer + + def __new__( + cls, + arg: typing.Union[typing.Tuple['NftTransfer'], typing.List['NftTransfer']], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'nft_transfers': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> 'NftTransfer': + return super().__getitem__(i) + + + class erc20_transfer( + schemas.ListSchema + ): + + + class MetaOapg: + + @staticmethod + def items() -> typing.Type['Erc20Transaction']: + return Erc20Transaction + + def __new__( + cls, + arg: typing.Union[typing.Tuple['Erc20Transaction'], typing.List['Erc20Transaction']], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'erc20_transfer': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> 'Erc20Transaction': + return super().__getitem__(i) + __annotations__ = { + "category": category, + "possible_spam": possible_spam, + "method_label": method_label, + "summary": summary, + "nft_transfers": nft_transfers, + "erc20_transfer": erc20_transfer, + } + + + summary: MetaOapg.properties.summary + nft_transfers: MetaOapg.properties.nft_transfers + category: 'ETransactionCategory' + erc20_transfers: schemas.AnyTypeSchema + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["category"]) -> 'ETransactionCategory': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["possible_spam"]) -> MetaOapg.properties.possible_spam: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["method_label"]) -> MetaOapg.properties.method_label: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["summary"]) -> MetaOapg.properties.summary: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["nft_transfers"]) -> MetaOapg.properties.nft_transfers: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["erc20_transfer"]) -> MetaOapg.properties.erc20_transfer: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["category", "possible_spam", "method_label", "summary", "nft_transfers", "erc20_transfer", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["category"]) -> 'ETransactionCategory': ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["possible_spam"]) -> typing.Union[MetaOapg.properties.possible_spam, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["method_label"]) -> typing.Union[MetaOapg.properties.method_label, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["summary"]) -> MetaOapg.properties.summary: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["nft_transfers"]) -> MetaOapg.properties.nft_transfers: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["erc20_transfer"]) -> typing.Union[MetaOapg.properties.erc20_transfer, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["category", "possible_spam", "method_label", "summary", "nft_transfers", "erc20_transfer", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + summary: typing.Union[MetaOapg.properties.summary, str, ], + nft_transfers: typing.Union[MetaOapg.properties.nft_transfers, list, tuple, ], + category: 'ETransactionCategory', + erc20_transfers: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + possible_spam: typing.Union[MetaOapg.properties.possible_spam, bool, schemas.Unset] = schemas.unset, + method_label: typing.Union[MetaOapg.properties.method_label, str, schemas.Unset] = schemas.unset, + erc20_transfer: typing.Union[MetaOapg.properties.erc20_transfer, list, tuple, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'all_of_1': + return super().__new__( + cls, + *args, + summary=summary, + nft_transfers=nft_transfers, + category=category, + erc20_transfers=erc20_transfers, + possible_spam=possible_spam, + method_label=method_label, + erc20_transfer=erc20_transfer, + _configuration=_configuration, + **kwargs, + ) + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + BlockTransaction, + cls.all_of_1, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'WalletHistoryTransaction': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from openapi_evm_api.model.block_transaction import BlockTransaction +from openapi_evm_api.model.e_transaction_category import ETransactionCategory +from openapi_evm_api.model.erc20_transaction import Erc20Transaction +from openapi_evm_api.model.nft_transfer import NftTransfer diff --git a/src/openapi_evm_api/models/__init__.py b/src/openapi_evm_api/models/__init__.py index fe17ce7..a3e7380 100644 --- a/src/openapi_evm_api/models/__init__.py +++ b/src/openapi_evm_api/models/__init__.py @@ -28,6 +28,7 @@ from openapi_evm_api.model.discovery_token import DiscoveryToken from openapi_evm_api.model.discovery_token_links import DiscoveryTokenLinks from openapi_evm_api.model.discovery_tokens import DiscoveryTokens +from openapi_evm_api.model.e_transaction_category import ETransactionCategory from openapi_evm_api.model.endpoint_weights import EndpointWeights from openapi_evm_api.model.ens import Ens from openapi_evm_api.model.erc20_allowance import Erc20Allowance @@ -101,5 +102,7 @@ from openapi_evm_api.model.unstoppable_domain import UnstoppableDomain from openapi_evm_api.model.wallet_active_chain import WalletActiveChain from openapi_evm_api.model.wallet_active_chains import WalletActiveChains +from openapi_evm_api.model.wallet_history import WalletHistory +from openapi_evm_api.model.wallet_history_transaction import WalletHistoryTransaction from openapi_evm_api.model.wallet_stat import WalletStat from openapi_evm_api.model.web3version import Web3version diff --git a/src/openapi_evm_api/paths/__init__.py b/src/openapi_evm_api/paths/__init__.py index fedb812..75b5fb0 100644 --- a/src/openapi_evm_api/paths/__init__.py +++ b/src/openapi_evm_api/paths/__init__.py @@ -34,6 +34,7 @@ class PathValues(str, enum.Enum): ERC20_ADDRESS_TRANSFERS = "/erc20/{address}/transfers" ADDRESS_BALANCE = "/{address}/balance" WALLETS_BALANCES = "/wallets/balances" + WALLETS_ADDRESS_HISTORY = "/wallets/{address}/history" WALLETS_ADDRESS_TOKENS = "/wallets/{address}/tokens" WALLETS_ADDRESS_NETWORTH = "/wallets/{address}/net-worth" ADDRESS = "/{address}" diff --git a/src/openapi_evm_api/paths/wallets_address_history/__init__.py b/src/openapi_evm_api/paths/wallets_address_history/__init__.py new file mode 100644 index 0000000..de2976a --- /dev/null +++ b/src/openapi_evm_api/paths/wallets_address_history/__init__.py @@ -0,0 +1,7 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from openapi_evm_api.paths.wallets_address_history import Api + +from openapi_evm_api.paths import PathValues + +path = PathValues.WALLETS_ADDRESS_HISTORY \ No newline at end of file diff --git a/src/openapi_evm_api/paths/wallets_address_history/get.py b/src/openapi_evm_api/paths/wallets_address_history/get.py new file mode 100644 index 0000000..e076e4d --- /dev/null +++ b/src/openapi_evm_api/paths/wallets_address_history/get.py @@ -0,0 +1,454 @@ +# coding: utf-8 + +""" + + + Generated by: https://openapi-generator.tech +""" + +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from openapi_evm_api import api_client, exceptions +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from openapi_evm_api import schemas # noqa: F401 + +from openapi_evm_api.model.chain_list import ChainList +from openapi_evm_api.model.wallet_history import WalletHistory +from openapi_evm_api.model.order_list import OrderList + +from . import path + +# Query params +ChainSchema = ChainList + + +class FromBlockSchema( + schemas.IntSchema +): + + + class MetaOapg: + inclusive_minimum = 0 + + +class ToBlockSchema( + schemas.IntSchema +): + + + class MetaOapg: + inclusive_minimum = 0 +FromDateSchema = schemas.StrSchema +ToDateSchema = schemas.StrSchema +InternalTransactionsSchema = schemas.BoolSchema +NftMetadataSchema = schemas.BoolSchema +CursorSchema = schemas.StrSchema +OrderSchema = OrderList + + +class LimitSchema( + schemas.IntSchema +): + + + class MetaOapg: + inclusive_minimum = 0 +RequestRequiredQueryParams = typing_extensions.TypedDict( + 'RequestRequiredQueryParams', + { + } +) +RequestOptionalQueryParams = typing_extensions.TypedDict( + 'RequestOptionalQueryParams', + { + 'chain': typing.Union[ChainSchema, ], + 'from_block': typing.Union[FromBlockSchema, decimal.Decimal, int, ], + 'to_block': typing.Union[ToBlockSchema, decimal.Decimal, int, ], + 'from_date': typing.Union[FromDateSchema, str, ], + 'to_date': typing.Union[ToDateSchema, str, ], + 'internal_transactions': typing.Union[InternalTransactionsSchema, bool, ], + 'nft_metadata': typing.Union[NftMetadataSchema, bool, ], + 'cursor': typing.Union[CursorSchema, str, ], + 'order': typing.Union[OrderSchema, ], + 'limit': typing.Union[LimitSchema, decimal.Decimal, int, ], + }, + total=False +) + + +class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): + pass + + +request_query_chain = api_client.QueryParameter( + name="chain", + style=api_client.ParameterStyle.FORM, + schema=ChainSchema, + explode=True, +) +request_query_from_block = api_client.QueryParameter( + name="from_block", + style=api_client.ParameterStyle.FORM, + schema=FromBlockSchema, + explode=True, +) +request_query_to_block = api_client.QueryParameter( + name="to_block", + style=api_client.ParameterStyle.FORM, + schema=ToBlockSchema, + explode=True, +) +request_query_from_date = api_client.QueryParameter( + name="from_date", + style=api_client.ParameterStyle.FORM, + schema=FromDateSchema, + explode=True, +) +request_query_to_date = api_client.QueryParameter( + name="to_date", + style=api_client.ParameterStyle.FORM, + schema=ToDateSchema, + explode=True, +) +request_query_internal_transactions = api_client.QueryParameter( + name="internal_transactions", + style=api_client.ParameterStyle.FORM, + schema=InternalTransactionsSchema, + explode=True, +) +request_query_nft_metadata = api_client.QueryParameter( + name="nft_metadata", + style=api_client.ParameterStyle.FORM, + schema=NftMetadataSchema, + explode=True, +) +request_query_cursor = api_client.QueryParameter( + name="cursor", + style=api_client.ParameterStyle.FORM, + schema=CursorSchema, + explode=True, +) +request_query_order = api_client.QueryParameter( + name="order", + style=api_client.ParameterStyle.FORM, + schema=OrderSchema, + explode=True, +) +request_query_limit = api_client.QueryParameter( + name="limit", + style=api_client.ParameterStyle.FORM, + schema=LimitSchema, + explode=True, +) +# Path params +AddressSchema = schemas.StrSchema +RequestRequiredPathParams = typing_extensions.TypedDict( + 'RequestRequiredPathParams', + { + 'address': typing.Union[AddressSchema, str, ], + } +) +RequestOptionalPathParams = typing_extensions.TypedDict( + 'RequestOptionalPathParams', + { + }, + total=False +) + + +class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): + pass + + +request_path_address = api_client.PathParameter( + name="address", + style=api_client.ParameterStyle.SIMPLE, + schema=AddressSchema, + required=True, +) +_auth = [ + 'ApiKeyAuth', +] +SchemaFor200ResponseBodyApplicationJson = WalletHistory + + +@dataclass +class ApiResponseFor200(api_client.ApiResponse): + response: urllib3.HTTPResponse + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] + headers: schemas.Unset = schemas.unset + + +_response_for_200 = api_client.OpenApiResponse( + response_cls=ApiResponseFor200, + content={ + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), + }, +) +_status_code_to_response = { + '200': _response_for_200, +} +_all_accept_content_types = ( + 'application/json', +) + + +class BaseApi(api_client.Api): + @typing.overload + def _get_wallet_history_oapg( + self, + query_params: RequestQueryParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = ..., + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload + def _get_wallet_history_oapg( + self, + skip_deserialization: typing_extensions.Literal[True], + query_params: RequestQueryParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + ) -> api_client.ApiResponseWithoutDeserialization: ... + + @typing.overload + def _get_wallet_history_oapg( + self, + query_params: RequestQueryParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = ..., + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + + def _get_wallet_history_oapg( + self, + query_params: RequestQueryParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ): + """ + Get complete history of wallets + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value + + _path_params = {} + for parameter in ( + request_path_address, + ): + parameter_data = path_params.get(parameter.name, schemas.unset) + if parameter_data is schemas.unset: + continue + serialized_data = parameter.serialize(parameter_data) + _path_params.update(serialized_data) + + for k, v in _path_params.items(): + used_path = used_path.replace('{%s}' % k, v) + + prefix_separator_iterator = None + for parameter in ( + request_query_chain, + request_query_from_block, + request_query_to_block, + request_query_from_date, + request_query_to_date, + request_query_internal_transactions, + request_query_nft_metadata, + request_query_cursor, + request_query_order, + request_query_limit, + ): + parameter_data = query_params.get(parameter.name, schemas.unset) + if parameter_data is schemas.unset: + continue + if prefix_separator_iterator is None: + prefix_separator_iterator = parameter.get_prefix_separator_iterator() + serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) + for serialized_value in serialized_data.values(): + used_path += serialized_value + + _headers = HTTPHeaderDict() + # TODO add cookie handling + if accept_content_types: + for accept_content_type in accept_content_types: + _headers.add('Accept', accept_content_type) + + response = self.api_client.call_api( + resource_path=used_path, + method='get'.upper(), + headers=_headers, + auth_settings=_auth, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + api_response = api_client.ApiResponseWithoutDeserialization(response=response) + else: + response_for_status = _status_code_to_response.get(str(response.status)) + if response_for_status: + api_response = response_for_status.deserialize(response, self.api_client.configuration) + else: + api_response = api_client.ApiResponseWithoutDeserialization(response=response) + + if not 200 <= response.status <= 299: + raise exceptions.ApiException(api_response=api_response) + + return api_response + + +class GetWalletHistory(BaseApi): + # this class is used by api classes that refer to endpoints with operationId fn names + + @typing.overload + def get_wallet_history( + self, + query_params: RequestQueryParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = ..., + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload + def get_wallet_history( + self, + skip_deserialization: typing_extensions.Literal[True], + query_params: RequestQueryParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + ) -> api_client.ApiResponseWithoutDeserialization: ... + + @typing.overload + def get_wallet_history( + self, + query_params: RequestQueryParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = ..., + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + + def get_wallet_history( + self, + query_params: RequestQueryParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ): + return self._get_wallet_history_oapg( + query_params=query_params, + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) + + +class ApiForget(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + + @typing.overload + def get( + self, + query_params: RequestQueryParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = ..., + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload + def get( + self, + skip_deserialization: typing_extensions.Literal[True], + query_params: RequestQueryParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + ) -> api_client.ApiResponseWithoutDeserialization: ... + + @typing.overload + def get( + self, + query_params: RequestQueryParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = ..., + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + + def get( + self, + query_params: RequestQueryParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ): + return self._get_wallet_history_oapg( + query_params=query_params, + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) + + diff --git a/src/openapi_evm_api/paths/wallets_address_history/get.pyi b/src/openapi_evm_api/paths/wallets_address_history/get.pyi new file mode 100644 index 0000000..fd93a1c --- /dev/null +++ b/src/openapi_evm_api/paths/wallets_address_history/get.pyi @@ -0,0 +1,437 @@ +# coding: utf-8 + +""" + + + Generated by: https://openapi-generator.tech +""" + +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from openapi_evm_api import api_client, exceptions +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from openapi_evm_api import schemas # noqa: F401 + +from openapi_evm_api.model.chain_list import ChainList +from openapi_evm_api.model.wallet_history import WalletHistory +from openapi_evm_api.model.order_list import OrderList + +# Query params +ChainSchema = ChainList + + +class FromBlockSchema( + schemas.IntSchema +): + pass + + +class ToBlockSchema( + schemas.IntSchema +): + pass +FromDateSchema = schemas.StrSchema +ToDateSchema = schemas.StrSchema +InternalTransactionsSchema = schemas.BoolSchema +NftMetadataSchema = schemas.BoolSchema +CursorSchema = schemas.StrSchema +OrderSchema = OrderList + + +class LimitSchema( + schemas.IntSchema +): + pass +RequestRequiredQueryParams = typing_extensions.TypedDict( + 'RequestRequiredQueryParams', + { + } +) +RequestOptionalQueryParams = typing_extensions.TypedDict( + 'RequestOptionalQueryParams', + { + 'chain': typing.Union[ChainSchema, ], + 'from_block': typing.Union[FromBlockSchema, decimal.Decimal, int, ], + 'to_block': typing.Union[ToBlockSchema, decimal.Decimal, int, ], + 'from_date': typing.Union[FromDateSchema, str, ], + 'to_date': typing.Union[ToDateSchema, str, ], + 'internal_transactions': typing.Union[InternalTransactionsSchema, bool, ], + 'nft_metadata': typing.Union[NftMetadataSchema, bool, ], + 'cursor': typing.Union[CursorSchema, str, ], + 'order': typing.Union[OrderSchema, ], + 'limit': typing.Union[LimitSchema, decimal.Decimal, int, ], + }, + total=False +) + + +class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): + pass + + +request_query_chain = api_client.QueryParameter( + name="chain", + style=api_client.ParameterStyle.FORM, + schema=ChainSchema, + explode=True, +) +request_query_from_block = api_client.QueryParameter( + name="from_block", + style=api_client.ParameterStyle.FORM, + schema=FromBlockSchema, + explode=True, +) +request_query_to_block = api_client.QueryParameter( + name="to_block", + style=api_client.ParameterStyle.FORM, + schema=ToBlockSchema, + explode=True, +) +request_query_from_date = api_client.QueryParameter( + name="from_date", + style=api_client.ParameterStyle.FORM, + schema=FromDateSchema, + explode=True, +) +request_query_to_date = api_client.QueryParameter( + name="to_date", + style=api_client.ParameterStyle.FORM, + schema=ToDateSchema, + explode=True, +) +request_query_internal_transactions = api_client.QueryParameter( + name="internal_transactions", + style=api_client.ParameterStyle.FORM, + schema=InternalTransactionsSchema, + explode=True, +) +request_query_nft_metadata = api_client.QueryParameter( + name="nft_metadata", + style=api_client.ParameterStyle.FORM, + schema=NftMetadataSchema, + explode=True, +) +request_query_cursor = api_client.QueryParameter( + name="cursor", + style=api_client.ParameterStyle.FORM, + schema=CursorSchema, + explode=True, +) +request_query_order = api_client.QueryParameter( + name="order", + style=api_client.ParameterStyle.FORM, + schema=OrderSchema, + explode=True, +) +request_query_limit = api_client.QueryParameter( + name="limit", + style=api_client.ParameterStyle.FORM, + schema=LimitSchema, + explode=True, +) +# Path params +AddressSchema = schemas.StrSchema +RequestRequiredPathParams = typing_extensions.TypedDict( + 'RequestRequiredPathParams', + { + 'address': typing.Union[AddressSchema, str, ], + } +) +RequestOptionalPathParams = typing_extensions.TypedDict( + 'RequestOptionalPathParams', + { + }, + total=False +) + + +class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): + pass + + +request_path_address = api_client.PathParameter( + name="address", + style=api_client.ParameterStyle.SIMPLE, + schema=AddressSchema, + required=True, +) +SchemaFor200ResponseBodyApplicationJson = WalletHistory + + +@dataclass +class ApiResponseFor200(api_client.ApiResponse): + response: urllib3.HTTPResponse + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] + headers: schemas.Unset = schemas.unset + + +_response_for_200 = api_client.OpenApiResponse( + response_cls=ApiResponseFor200, + content={ + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), + }, +) +_all_accept_content_types = ( + 'application/json', +) + + +class BaseApi(api_client.Api): + @typing.overload + def _get_wallet_history_oapg( + self, + query_params: RequestQueryParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = ..., + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload + def _get_wallet_history_oapg( + self, + skip_deserialization: typing_extensions.Literal[True], + query_params: RequestQueryParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + ) -> api_client.ApiResponseWithoutDeserialization: ... + + @typing.overload + def _get_wallet_history_oapg( + self, + query_params: RequestQueryParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = ..., + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + + def _get_wallet_history_oapg( + self, + query_params: RequestQueryParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ): + """ + Get complete history of wallets + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value + + _path_params = {} + for parameter in ( + request_path_address, + ): + parameter_data = path_params.get(parameter.name, schemas.unset) + if parameter_data is schemas.unset: + continue + serialized_data = parameter.serialize(parameter_data) + _path_params.update(serialized_data) + + for k, v in _path_params.items(): + used_path = used_path.replace('{%s}' % k, v) + + prefix_separator_iterator = None + for parameter in ( + request_query_chain, + request_query_from_block, + request_query_to_block, + request_query_from_date, + request_query_to_date, + request_query_internal_transactions, + request_query_nft_metadata, + request_query_cursor, + request_query_order, + request_query_limit, + ): + parameter_data = query_params.get(parameter.name, schemas.unset) + if parameter_data is schemas.unset: + continue + if prefix_separator_iterator is None: + prefix_separator_iterator = parameter.get_prefix_separator_iterator() + serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) + for serialized_value in serialized_data.values(): + used_path += serialized_value + + _headers = HTTPHeaderDict() + # TODO add cookie handling + if accept_content_types: + for accept_content_type in accept_content_types: + _headers.add('Accept', accept_content_type) + + response = self.api_client.call_api( + resource_path=used_path, + method='get'.upper(), + headers=_headers, + auth_settings=_auth, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + api_response = api_client.ApiResponseWithoutDeserialization(response=response) + else: + response_for_status = _status_code_to_response.get(str(response.status)) + if response_for_status: + api_response = response_for_status.deserialize(response, self.api_client.configuration) + else: + api_response = api_client.ApiResponseWithoutDeserialization(response=response) + + if not 200 <= response.status <= 299: + raise exceptions.ApiException(api_response=api_response) + + return api_response + + +class GetWalletHistory(BaseApi): + # this class is used by api classes that refer to endpoints with operationId fn names + + @typing.overload + def get_wallet_history( + self, + query_params: RequestQueryParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = ..., + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload + def get_wallet_history( + self, + skip_deserialization: typing_extensions.Literal[True], + query_params: RequestQueryParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + ) -> api_client.ApiResponseWithoutDeserialization: ... + + @typing.overload + def get_wallet_history( + self, + query_params: RequestQueryParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = ..., + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + + def get_wallet_history( + self, + query_params: RequestQueryParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ): + return self._get_wallet_history_oapg( + query_params=query_params, + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) + + +class ApiForget(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + + @typing.overload + def get( + self, + query_params: RequestQueryParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = ..., + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload + def get( + self, + skip_deserialization: typing_extensions.Literal[True], + query_params: RequestQueryParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + ) -> api_client.ApiResponseWithoutDeserialization: ... + + @typing.overload + def get( + self, + query_params: RequestQueryParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = ..., + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + + def get( + self, + query_params: RequestQueryParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ): + return self._get_wallet_history_oapg( + query_params=query_params, + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) + + diff --git a/src/openapi_evm_api/test/test_models/test_e_transaction_category.py b/src/openapi_evm_api/test/test_models/test_e_transaction_category.py new file mode 100644 index 0000000..c779df8 --- /dev/null +++ b/src/openapi_evm_api/test/test_models/test_e_transaction_category.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + EVM API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: 2.2 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import openapi_evm_api +from openapi_evm_api.model.e_transaction_category import ETransactionCategory +from openapi_evm_api import configuration + + +class TestETransactionCategory(unittest.TestCase): + """ETransactionCategory unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/src/openapi_evm_api/test/test_models/test_wallet_history.py b/src/openapi_evm_api/test/test_models/test_wallet_history.py new file mode 100644 index 0000000..441cd90 --- /dev/null +++ b/src/openapi_evm_api/test/test_models/test_wallet_history.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + EVM API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: 2.2 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import openapi_evm_api +from openapi_evm_api.model.wallet_history import WalletHistory +from openapi_evm_api import configuration + + +class TestWalletHistory(unittest.TestCase): + """WalletHistory unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/src/openapi_evm_api/test/test_models/test_wallet_history_transaction.py b/src/openapi_evm_api/test/test_models/test_wallet_history_transaction.py new file mode 100644 index 0000000..c87dbd6 --- /dev/null +++ b/src/openapi_evm_api/test/test_models/test_wallet_history_transaction.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + EVM API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: 2.2 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import openapi_evm_api +from openapi_evm_api.model.wallet_history_transaction import WalletHistoryTransaction +from openapi_evm_api import configuration + + +class TestWalletHistoryTransaction(unittest.TestCase): + """WalletHistoryTransaction unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main()