cdp.client package¶
Subpackages¶
- cdp.client.api package
- Submodules
- cdp.client.api.addresses_api module
AddressesApi
AddressesApi.create_address()
AddressesApi.create_address_with_http_info()
AddressesApi.create_address_without_preload_content()
AddressesApi.create_payload_signature()
AddressesApi.create_payload_signature_with_http_info()
AddressesApi.create_payload_signature_without_preload_content()
AddressesApi.get_address()
AddressesApi.get_address_balance()
AddressesApi.get_address_balance_with_http_info()
AddressesApi.get_address_balance_without_preload_content()
AddressesApi.get_address_with_http_info()
AddressesApi.get_address_without_preload_content()
AddressesApi.get_payload_signature()
AddressesApi.get_payload_signature_with_http_info()
AddressesApi.get_payload_signature_without_preload_content()
AddressesApi.list_address_balances()
AddressesApi.list_address_balances_with_http_info()
AddressesApi.list_address_balances_without_preload_content()
AddressesApi.list_addresses()
AddressesApi.list_addresses_with_http_info()
AddressesApi.list_addresses_without_preload_content()
AddressesApi.list_payload_signatures()
AddressesApi.list_payload_signatures_with_http_info()
AddressesApi.list_payload_signatures_without_preload_content()
AddressesApi.request_faucet_funds()
AddressesApi.request_faucet_funds_with_http_info()
AddressesApi.request_faucet_funds_without_preload_content()
- cdp.client.api.assets_api module
- cdp.client.api.balance_history_api module
- cdp.client.api.contract_events_api module
- cdp.client.api.contract_invocations_api module
ContractInvocationsApi
ContractInvocationsApi.broadcast_contract_invocation()
ContractInvocationsApi.broadcast_contract_invocation_with_http_info()
ContractInvocationsApi.broadcast_contract_invocation_without_preload_content()
ContractInvocationsApi.create_contract_invocation()
ContractInvocationsApi.create_contract_invocation_with_http_info()
ContractInvocationsApi.create_contract_invocation_without_preload_content()
ContractInvocationsApi.get_contract_invocation()
ContractInvocationsApi.get_contract_invocation_with_http_info()
ContractInvocationsApi.get_contract_invocation_without_preload_content()
ContractInvocationsApi.list_contract_invocations()
ContractInvocationsApi.list_contract_invocations_with_http_info()
ContractInvocationsApi.list_contract_invocations_without_preload_content()
- cdp.client.api.external_addresses_api module
ExternalAddressesApi
ExternalAddressesApi.get_external_address_balance()
ExternalAddressesApi.get_external_address_balance_with_http_info()
ExternalAddressesApi.get_external_address_balance_without_preload_content()
ExternalAddressesApi.get_faucet_transaction()
ExternalAddressesApi.get_faucet_transaction_with_http_info()
ExternalAddressesApi.get_faucet_transaction_without_preload_content()
ExternalAddressesApi.list_external_address_balances()
ExternalAddressesApi.list_external_address_balances_with_http_info()
ExternalAddressesApi.list_external_address_balances_without_preload_content()
ExternalAddressesApi.request_external_faucet_funds()
ExternalAddressesApi.request_external_faucet_funds_with_http_info()
ExternalAddressesApi.request_external_faucet_funds_without_preload_content()
- cdp.client.api.fund_api module
FundApi
FundApi.create_fund_operation()
FundApi.create_fund_operation_with_http_info()
FundApi.create_fund_operation_without_preload_content()
FundApi.create_fund_quote()
FundApi.create_fund_quote_with_http_info()
FundApi.create_fund_quote_without_preload_content()
FundApi.get_fund_operation()
FundApi.get_fund_operation_with_http_info()
FundApi.get_fund_operation_without_preload_content()
FundApi.list_fund_operations()
FundApi.list_fund_operations_with_http_info()
FundApi.list_fund_operations_without_preload_content()
- cdp.client.api.mpc_wallet_stake_api module
MPCWalletStakeApi
MPCWalletStakeApi.broadcast_staking_operation()
MPCWalletStakeApi.broadcast_staking_operation_with_http_info()
MPCWalletStakeApi.broadcast_staking_operation_without_preload_content()
MPCWalletStakeApi.create_staking_operation()
MPCWalletStakeApi.create_staking_operation_with_http_info()
MPCWalletStakeApi.create_staking_operation_without_preload_content()
MPCWalletStakeApi.get_staking_operation()
MPCWalletStakeApi.get_staking_operation_with_http_info()
MPCWalletStakeApi.get_staking_operation_without_preload_content()
- cdp.client.api.networks_api module
- cdp.client.api.onchain_identity_api module
- cdp.client.api.reputation_api module
- cdp.client.api.server_signers_api module
ServerSignersApi
ServerSignersApi.create_server_signer()
ServerSignersApi.create_server_signer_with_http_info()
ServerSignersApi.create_server_signer_without_preload_content()
ServerSignersApi.get_server_signer()
ServerSignersApi.get_server_signer_with_http_info()
ServerSignersApi.get_server_signer_without_preload_content()
ServerSignersApi.list_server_signer_events()
ServerSignersApi.list_server_signer_events_with_http_info()
ServerSignersApi.list_server_signer_events_without_preload_content()
ServerSignersApi.list_server_signers()
ServerSignersApi.list_server_signers_with_http_info()
ServerSignersApi.list_server_signers_without_preload_content()
ServerSignersApi.submit_server_signer_seed_event_result()
ServerSignersApi.submit_server_signer_seed_event_result_with_http_info()
ServerSignersApi.submit_server_signer_seed_event_result_without_preload_content()
ServerSignersApi.submit_server_signer_signature_event_result()
ServerSignersApi.submit_server_signer_signature_event_result_with_http_info()
ServerSignersApi.submit_server_signer_signature_event_result_without_preload_content()
- cdp.client.api.smart_contracts_api module
SmartContractsApi
SmartContractsApi.create_smart_contract()
SmartContractsApi.create_smart_contract_with_http_info()
SmartContractsApi.create_smart_contract_without_preload_content()
SmartContractsApi.deploy_smart_contract()
SmartContractsApi.deploy_smart_contract_with_http_info()
SmartContractsApi.deploy_smart_contract_without_preload_content()
SmartContractsApi.get_smart_contract()
SmartContractsApi.get_smart_contract_with_http_info()
SmartContractsApi.get_smart_contract_without_preload_content()
SmartContractsApi.list_smart_contracts()
SmartContractsApi.list_smart_contracts_with_http_info()
SmartContractsApi.list_smart_contracts_without_preload_content()
SmartContractsApi.read_contract()
SmartContractsApi.read_contract_with_http_info()
SmartContractsApi.read_contract_without_preload_content()
SmartContractsApi.register_smart_contract()
SmartContractsApi.register_smart_contract_with_http_info()
SmartContractsApi.register_smart_contract_without_preload_content()
- cdp.client.api.stake_api module
StakeApi
StakeApi.build_staking_operation()
StakeApi.build_staking_operation_with_http_info()
StakeApi.build_staking_operation_without_preload_content()
StakeApi.fetch_historical_staking_balances()
StakeApi.fetch_historical_staking_balances_with_http_info()
StakeApi.fetch_historical_staking_balances_without_preload_content()
StakeApi.fetch_staking_rewards()
StakeApi.fetch_staking_rewards_with_http_info()
StakeApi.fetch_staking_rewards_without_preload_content()
StakeApi.get_external_staking_operation()
StakeApi.get_external_staking_operation_with_http_info()
StakeApi.get_external_staking_operation_without_preload_content()
StakeApi.get_staking_context()
StakeApi.get_staking_context_with_http_info()
StakeApi.get_staking_context_without_preload_content()
StakeApi.get_validator()
StakeApi.get_validator_with_http_info()
StakeApi.get_validator_without_preload_content()
StakeApi.list_validators()
StakeApi.list_validators_with_http_info()
StakeApi.list_validators_without_preload_content()
- cdp.client.api.trades_api module
TradesApi
TradesApi.broadcast_trade()
TradesApi.broadcast_trade_with_http_info()
TradesApi.broadcast_trade_without_preload_content()
TradesApi.create_trade()
TradesApi.create_trade_with_http_info()
TradesApi.create_trade_without_preload_content()
TradesApi.get_trade()
TradesApi.get_trade_with_http_info()
TradesApi.get_trade_without_preload_content()
TradesApi.list_trades()
TradesApi.list_trades_with_http_info()
TradesApi.list_trades_without_preload_content()
- cdp.client.api.transaction_history_api module
- cdp.client.api.transfers_api module
TransfersApi
TransfersApi.broadcast_transfer()
TransfersApi.broadcast_transfer_with_http_info()
TransfersApi.broadcast_transfer_without_preload_content()
TransfersApi.create_transfer()
TransfersApi.create_transfer_with_http_info()
TransfersApi.create_transfer_without_preload_content()
TransfersApi.get_transfer()
TransfersApi.get_transfer_with_http_info()
TransfersApi.get_transfer_without_preload_content()
TransfersApi.list_transfers()
TransfersApi.list_transfers_with_http_info()
TransfersApi.list_transfers_without_preload_content()
- cdp.client.api.users_api module
- cdp.client.api.validators_api module
- cdp.client.api.wallet_stake_api module
WalletStakeApi
WalletStakeApi.broadcast_staking_operation()
WalletStakeApi.broadcast_staking_operation_with_http_info()
WalletStakeApi.broadcast_staking_operation_without_preload_content()
WalletStakeApi.create_staking_operation()
WalletStakeApi.create_staking_operation_with_http_info()
WalletStakeApi.create_staking_operation_without_preload_content()
WalletStakeApi.get_staking_operation()
WalletStakeApi.get_staking_operation_with_http_info()
WalletStakeApi.get_staking_operation_without_preload_content()
- cdp.client.api.wallets_api module
WalletsApi
WalletsApi.create_wallet()
WalletsApi.create_wallet_with_http_info()
WalletsApi.create_wallet_without_preload_content()
WalletsApi.get_wallet()
WalletsApi.get_wallet_balance()
WalletsApi.get_wallet_balance_with_http_info()
WalletsApi.get_wallet_balance_without_preload_content()
WalletsApi.get_wallet_with_http_info()
WalletsApi.get_wallet_without_preload_content()
WalletsApi.list_wallet_balances()
WalletsApi.list_wallet_balances_with_http_info()
WalletsApi.list_wallet_balances_without_preload_content()
WalletsApi.list_wallets()
WalletsApi.list_wallets_with_http_info()
WalletsApi.list_wallets_without_preload_content()
- cdp.client.api.webhooks_api module
WebhooksApi
WebhooksApi.create_wallet_webhook()
WebhooksApi.create_wallet_webhook_with_http_info()
WebhooksApi.create_wallet_webhook_without_preload_content()
WebhooksApi.create_webhook()
WebhooksApi.create_webhook_with_http_info()
WebhooksApi.create_webhook_without_preload_content()
WebhooksApi.delete_webhook()
WebhooksApi.delete_webhook_with_http_info()
WebhooksApi.delete_webhook_without_preload_content()
WebhooksApi.list_webhooks()
WebhooksApi.list_webhooks_with_http_info()
WebhooksApi.list_webhooks_without_preload_content()
WebhooksApi.update_webhook()
WebhooksApi.update_webhook_with_http_info()
WebhooksApi.update_webhook_without_preload_content()
- Module contents
- cdp.client.models package
- Submodules
- cdp.client.models.abi module
- cdp.client.models.address module
- cdp.client.models.address_balance_list module
- cdp.client.models.address_historical_balance_list module
AddressHistoricalBalanceList
AddressHistoricalBalanceList.data
AddressHistoricalBalanceList.from_dict()
AddressHistoricalBalanceList.from_json()
AddressHistoricalBalanceList.has_more
AddressHistoricalBalanceList.model_config
AddressHistoricalBalanceList.next_page
AddressHistoricalBalanceList.to_dict()
AddressHistoricalBalanceList.to_json()
AddressHistoricalBalanceList.to_str()
- cdp.client.models.address_list module
- cdp.client.models.address_reputation module
- cdp.client.models.address_reputation_metadata module
AddressReputationMetadata
AddressReputationMetadata.activity_period_days
AddressReputationMetadata.bridge_transactions_performed
AddressReputationMetadata.current_active_streak
AddressReputationMetadata.ens_contract_interactions
AddressReputationMetadata.from_dict()
AddressReputationMetadata.from_json()
AddressReputationMetadata.lend_borrow_stake_transactions
AddressReputationMetadata.longest_active_streak
AddressReputationMetadata.model_config
AddressReputationMetadata.smart_contract_deployments
AddressReputationMetadata.to_dict()
AddressReputationMetadata.to_json()
AddressReputationMetadata.to_str()
AddressReputationMetadata.token_swaps_performed
AddressReputationMetadata.total_transactions
AddressReputationMetadata.unique_days_active
- cdp.client.models.address_risk module
- cdp.client.models.address_transaction_list module
- cdp.client.models.asset module
- cdp.client.models.balance module
- cdp.client.models.broadcast_contract_invocation_request module
BroadcastContractInvocationRequest
BroadcastContractInvocationRequest.from_dict()
BroadcastContractInvocationRequest.from_json()
BroadcastContractInvocationRequest.model_config
BroadcastContractInvocationRequest.signed_payload
BroadcastContractInvocationRequest.to_dict()
BroadcastContractInvocationRequest.to_json()
BroadcastContractInvocationRequest.to_str()
- cdp.client.models.broadcast_staking_operation_request module
BroadcastStakingOperationRequest
BroadcastStakingOperationRequest.from_dict()
BroadcastStakingOperationRequest.from_json()
BroadcastStakingOperationRequest.model_config
BroadcastStakingOperationRequest.signed_payload
BroadcastStakingOperationRequest.to_dict()
BroadcastStakingOperationRequest.to_json()
BroadcastStakingOperationRequest.to_str()
BroadcastStakingOperationRequest.transaction_index
- cdp.client.models.broadcast_trade_request module
- cdp.client.models.broadcast_transfer_request module
- cdp.client.models.build_staking_operation_request module
BuildStakingOperationRequest
BuildStakingOperationRequest.action
BuildStakingOperationRequest.address_id
BuildStakingOperationRequest.asset_id
BuildStakingOperationRequest.from_dict()
BuildStakingOperationRequest.from_json()
BuildStakingOperationRequest.model_config
BuildStakingOperationRequest.network_id
BuildStakingOperationRequest.options
BuildStakingOperationRequest.to_dict()
BuildStakingOperationRequest.to_json()
BuildStakingOperationRequest.to_str()
- cdp.client.models.contract_event module
ContractEvent
ContractEvent.block_height
ContractEvent.block_time
ContractEvent.contract_address
ContractEvent.contract_name
ContractEvent.data
ContractEvent.event_index
ContractEvent.event_name
ContractEvent.four_bytes
ContractEvent.from_dict()
ContractEvent.from_json()
ContractEvent.model_config
ContractEvent.network_id
ContractEvent.protocol_name
ContractEvent.sig
ContractEvent.to_dict()
ContractEvent.to_json()
ContractEvent.to_str()
ContractEvent.tx_hash
ContractEvent.tx_index
- cdp.client.models.contract_event_list module
- cdp.client.models.contract_invocation module
ContractInvocation
ContractInvocation.abi
ContractInvocation.address_id
ContractInvocation.amount
ContractInvocation.args
ContractInvocation.contract_address
ContractInvocation.contract_invocation_id
ContractInvocation.from_dict()
ContractInvocation.from_json()
ContractInvocation.method
ContractInvocation.model_config
ContractInvocation.network_id
ContractInvocation.to_dict()
ContractInvocation.to_json()
ContractInvocation.to_str()
ContractInvocation.transaction
ContractInvocation.wallet_id
- cdp.client.models.contract_invocation_list module
ContractInvocationList
ContractInvocationList.data
ContractInvocationList.from_dict()
ContractInvocationList.from_json()
ContractInvocationList.has_more
ContractInvocationList.model_config
ContractInvocationList.next_page
ContractInvocationList.to_dict()
ContractInvocationList.to_json()
ContractInvocationList.to_str()
ContractInvocationList.total_count
- cdp.client.models.create_address_request module
- cdp.client.models.create_contract_invocation_request module
CreateContractInvocationRequest
CreateContractInvocationRequest.abi
CreateContractInvocationRequest.amount
CreateContractInvocationRequest.args
CreateContractInvocationRequest.contract_address
CreateContractInvocationRequest.from_dict()
CreateContractInvocationRequest.from_json()
CreateContractInvocationRequest.method
CreateContractInvocationRequest.model_config
CreateContractInvocationRequest.to_dict()
CreateContractInvocationRequest.to_json()
CreateContractInvocationRequest.to_str()
- cdp.client.models.create_fund_operation_request module
CreateFundOperationRequest
CreateFundOperationRequest.amount
CreateFundOperationRequest.asset_id
CreateFundOperationRequest.from_dict()
CreateFundOperationRequest.from_json()
CreateFundOperationRequest.fund_quote_id
CreateFundOperationRequest.model_config
CreateFundOperationRequest.to_dict()
CreateFundOperationRequest.to_json()
CreateFundOperationRequest.to_str()
- cdp.client.models.create_fund_quote_request module
- cdp.client.models.create_payload_signature_request module
CreatePayloadSignatureRequest
CreatePayloadSignatureRequest.from_dict()
CreatePayloadSignatureRequest.from_json()
CreatePayloadSignatureRequest.model_config
CreatePayloadSignatureRequest.signature
CreatePayloadSignatureRequest.to_dict()
CreatePayloadSignatureRequest.to_json()
CreatePayloadSignatureRequest.to_str()
CreatePayloadSignatureRequest.unsigned_payload
- cdp.client.models.create_server_signer_request module
CreateServerSignerRequest
CreateServerSignerRequest.enrollment_data
CreateServerSignerRequest.from_dict()
CreateServerSignerRequest.from_json()
CreateServerSignerRequest.is_mpc
CreateServerSignerRequest.model_config
CreateServerSignerRequest.server_signer_id
CreateServerSignerRequest.to_dict()
CreateServerSignerRequest.to_json()
CreateServerSignerRequest.to_str()
- cdp.client.models.create_smart_contract_request module
- cdp.client.models.create_staking_operation_request module
CreateStakingOperationRequest
CreateStakingOperationRequest.action
CreateStakingOperationRequest.asset_id
CreateStakingOperationRequest.from_dict()
CreateStakingOperationRequest.from_json()
CreateStakingOperationRequest.model_config
CreateStakingOperationRequest.network_id
CreateStakingOperationRequest.options
CreateStakingOperationRequest.to_dict()
CreateStakingOperationRequest.to_json()
CreateStakingOperationRequest.to_str()
- cdp.client.models.create_trade_request module
- cdp.client.models.create_transfer_request module
CreateTransferRequest
CreateTransferRequest.amount
CreateTransferRequest.asset_id
CreateTransferRequest.destination
CreateTransferRequest.from_dict()
CreateTransferRequest.from_json()
CreateTransferRequest.gasless
CreateTransferRequest.model_config
CreateTransferRequest.network_id
CreateTransferRequest.to_dict()
CreateTransferRequest.to_json()
CreateTransferRequest.to_str()
- cdp.client.models.create_wallet_request module
- cdp.client.models.create_wallet_request_wallet module
CreateWalletRequestWallet
CreateWalletRequestWallet.from_dict()
CreateWalletRequestWallet.from_json()
CreateWalletRequestWallet.model_config
CreateWalletRequestWallet.network_id
CreateWalletRequestWallet.to_dict()
CreateWalletRequestWallet.to_json()
CreateWalletRequestWallet.to_str()
CreateWalletRequestWallet.use_server_signer
- cdp.client.models.create_wallet_webhook_request module
CreateWalletWebhookRequest
CreateWalletWebhookRequest.from_dict()
CreateWalletWebhookRequest.from_json()
CreateWalletWebhookRequest.model_config
CreateWalletWebhookRequest.notification_uri
CreateWalletWebhookRequest.signature_header
CreateWalletWebhookRequest.to_dict()
CreateWalletWebhookRequest.to_json()
CreateWalletWebhookRequest.to_str()
- cdp.client.models.create_webhook_request module
CreateWebhookRequest
CreateWebhookRequest.event_filters
CreateWebhookRequest.event_type
CreateWebhookRequest.event_type_filter
CreateWebhookRequest.from_dict()
CreateWebhookRequest.from_json()
CreateWebhookRequest.model_config
CreateWebhookRequest.network_id
CreateWebhookRequest.notification_uri
CreateWebhookRequest.signature_header
CreateWebhookRequest.to_dict()
CreateWebhookRequest.to_json()
CreateWebhookRequest.to_str()
- cdp.client.models.crypto_amount module
- cdp.client.models.deploy_smart_contract_request module
- cdp.client.models.erc20_transfer_event module
ERC20TransferEvent
ERC20TransferEvent.block_hash
ERC20TransferEvent.block_number
ERC20TransferEvent.block_time
ERC20TransferEvent.contract_address
ERC20TransferEvent.event_type
ERC20TransferEvent.from_dict()
ERC20TransferEvent.from_json()
ERC20TransferEvent.log_index
ERC20TransferEvent.model_config
ERC20TransferEvent.network
ERC20TransferEvent.to
ERC20TransferEvent.to_dict()
ERC20TransferEvent.to_json()
ERC20TransferEvent.to_str()
ERC20TransferEvent.transaction_hash
ERC20TransferEvent.transaction_index
ERC20TransferEvent.value
ERC20TransferEvent.var_from
ERC20TransferEvent.webhook_id
- cdp.client.models.erc721_transfer_event module
ERC721TransferEvent
ERC721TransferEvent.block_hash
ERC721TransferEvent.block_number
ERC721TransferEvent.block_time
ERC721TransferEvent.contract_address
ERC721TransferEvent.event_type
ERC721TransferEvent.from_dict()
ERC721TransferEvent.from_json()
ERC721TransferEvent.log_index
ERC721TransferEvent.model_config
ERC721TransferEvent.network
ERC721TransferEvent.to
ERC721TransferEvent.to_dict()
ERC721TransferEvent.to_json()
ERC721TransferEvent.to_str()
ERC721TransferEvent.token_id
ERC721TransferEvent.transaction_hash
ERC721TransferEvent.transaction_index
ERC721TransferEvent.var_from
ERC721TransferEvent.webhook_id
- cdp.client.models.error module
- cdp.client.models.ethereum_token_transfer module
EthereumTokenTransfer
EthereumTokenTransfer.contract_address
EthereumTokenTransfer.from_address
EthereumTokenTransfer.from_dict()
EthereumTokenTransfer.from_json()
EthereumTokenTransfer.log_index
EthereumTokenTransfer.model_config
EthereumTokenTransfer.to_address
EthereumTokenTransfer.to_dict()
EthereumTokenTransfer.to_json()
EthereumTokenTransfer.to_str()
EthereumTokenTransfer.token_id
EthereumTokenTransfer.token_transfer_type
EthereumTokenTransfer.value
- cdp.client.models.ethereum_transaction module
EthereumTransaction
EthereumTransaction.block_timestamp
EthereumTransaction.flattened_traces
EthereumTransaction.from_dict()
EthereumTransaction.from_json()
EthereumTransaction.gas
EthereumTransaction.gas_price
EthereumTransaction.hash
EthereumTransaction.index
EthereumTransaction.input
EthereumTransaction.max_fee_per_gas
EthereumTransaction.max_priority_fee_per_gas
EthereumTransaction.mint
EthereumTransaction.model_config
EthereumTransaction.nonce
EthereumTransaction.priority_fee_per_gas
EthereumTransaction.rlp_encoded_tx
EthereumTransaction.to
EthereumTransaction.to_dict()
EthereumTransaction.to_json()
EthereumTransaction.to_str()
EthereumTransaction.token_transfers
EthereumTransaction.transaction_access_list
EthereumTransaction.type
EthereumTransaction.value
EthereumTransaction.var_from
- cdp.client.models.ethereum_transaction_access module
- cdp.client.models.ethereum_transaction_access_list module
- cdp.client.models.ethereum_transaction_flattened_trace module
EthereumTransactionFlattenedTrace
EthereumTransactionFlattenedTrace.block_hash
EthereumTransactionFlattenedTrace.block_number
EthereumTransactionFlattenedTrace.call_type
EthereumTransactionFlattenedTrace.error
EthereumTransactionFlattenedTrace.from_dict()
EthereumTransactionFlattenedTrace.from_json()
EthereumTransactionFlattenedTrace.gas
EthereumTransactionFlattenedTrace.gas_used
EthereumTransactionFlattenedTrace.input
EthereumTransactionFlattenedTrace.model_config
EthereumTransactionFlattenedTrace.output
EthereumTransactionFlattenedTrace.status
EthereumTransactionFlattenedTrace.sub_traces
EthereumTransactionFlattenedTrace.to
EthereumTransactionFlattenedTrace.to_dict()
EthereumTransactionFlattenedTrace.to_json()
EthereumTransactionFlattenedTrace.to_str()
EthereumTransactionFlattenedTrace.trace_address
EthereumTransactionFlattenedTrace.trace_id
EthereumTransactionFlattenedTrace.trace_type
EthereumTransactionFlattenedTrace.transaction_hash
EthereumTransactionFlattenedTrace.transaction_index
EthereumTransactionFlattenedTrace.type
EthereumTransactionFlattenedTrace.value
EthereumTransactionFlattenedTrace.var_from
- cdp.client.models.ethereum_validator_metadata module
EthereumValidatorMetadata
EthereumValidatorMetadata.activation_epoch
EthereumValidatorMetadata.balance
EthereumValidatorMetadata.effective_balance
EthereumValidatorMetadata.exit_epoch
EthereumValidatorMetadata.from_dict()
EthereumValidatorMetadata.from_json()
EthereumValidatorMetadata.index
EthereumValidatorMetadata.model_config
EthereumValidatorMetadata.public_key
EthereumValidatorMetadata.slashed
EthereumValidatorMetadata.to_dict()
EthereumValidatorMetadata.to_json()
EthereumValidatorMetadata.to_str()
EthereumValidatorMetadata.withdrawable_epoch
EthereumValidatorMetadata.withdrawal_address
- cdp.client.models.faucet_transaction module
- cdp.client.models.feature_set module
- cdp.client.models.fetch_historical_staking_balances200_response module
FetchHistoricalStakingBalances200Response
FetchHistoricalStakingBalances200Response.data
FetchHistoricalStakingBalances200Response.from_dict()
FetchHistoricalStakingBalances200Response.from_json()
FetchHistoricalStakingBalances200Response.has_more
FetchHistoricalStakingBalances200Response.model_config
FetchHistoricalStakingBalances200Response.next_page
FetchHistoricalStakingBalances200Response.to_dict()
FetchHistoricalStakingBalances200Response.to_json()
FetchHistoricalStakingBalances200Response.to_str()
- cdp.client.models.fetch_staking_rewards200_response module
FetchStakingRewards200Response
FetchStakingRewards200Response.data
FetchStakingRewards200Response.from_dict()
FetchStakingRewards200Response.from_json()
FetchStakingRewards200Response.has_more
FetchStakingRewards200Response.model_config
FetchStakingRewards200Response.next_page
FetchStakingRewards200Response.to_dict()
FetchStakingRewards200Response.to_json()
FetchStakingRewards200Response.to_str()
- cdp.client.models.fetch_staking_rewards_request module
FetchStakingRewardsRequest
FetchStakingRewardsRequest.address_ids
FetchStakingRewardsRequest.asset_id
FetchStakingRewardsRequest.end_time
FetchStakingRewardsRequest.format
FetchStakingRewardsRequest.from_dict()
FetchStakingRewardsRequest.from_json()
FetchStakingRewardsRequest.model_config
FetchStakingRewardsRequest.network_id
FetchStakingRewardsRequest.start_time
FetchStakingRewardsRequest.to_dict()
FetchStakingRewardsRequest.to_json()
FetchStakingRewardsRequest.to_str()
- cdp.client.models.fiat_amount module
- cdp.client.models.fund_operation module
FundOperation
FundOperation.address_id
FundOperation.crypto_amount
FundOperation.fees
FundOperation.fiat_amount
FundOperation.from_dict()
FundOperation.from_json()
FundOperation.fund_operation_id
FundOperation.model_config
FundOperation.network_id
FundOperation.status
FundOperation.status_validate_enum()
FundOperation.to_dict()
FundOperation.to_json()
FundOperation.to_str()
FundOperation.wallet_id
- cdp.client.models.fund_operation_fees module
- cdp.client.models.fund_operation_list module
- cdp.client.models.fund_quote module
- cdp.client.models.get_staking_context_request module
GetStakingContextRequest
GetStakingContextRequest.address_id
GetStakingContextRequest.asset_id
GetStakingContextRequest.from_dict()
GetStakingContextRequest.from_json()
GetStakingContextRequest.model_config
GetStakingContextRequest.network_id
GetStakingContextRequest.options
GetStakingContextRequest.to_dict()
GetStakingContextRequest.to_json()
GetStakingContextRequest.to_str()
- cdp.client.models.historical_balance module
- cdp.client.models.multi_token_contract_options module
- cdp.client.models.network module
Network
Network.address_path_prefix
Network.chain_id
Network.display_name
Network.feature_set
Network.from_dict()
Network.from_json()
Network.id
Network.is_testnet
Network.model_config
Network.native_asset
Network.protocol_family
Network.protocol_family_validate_enum()
Network.to_dict()
Network.to_json()
Network.to_str()
- cdp.client.models.network_identifier module
NetworkIdentifier
NetworkIdentifier.ARBITRUM_MINUS_MAINNET
NetworkIdentifier.BASE_MINUS_MAINNET
NetworkIdentifier.BASE_MINUS_SEPOLIA
NetworkIdentifier.ETHEREUM_MINUS_HOLESKY
NetworkIdentifier.ETHEREUM_MINUS_MAINNET
NetworkIdentifier.POLYGON_MINUS_MAINNET
NetworkIdentifier.SOLANA_MINUS_DEVNET
NetworkIdentifier.SOLANA_MINUS_MAINNET
NetworkIdentifier.from_json()
- cdp.client.models.nft_contract_options module
- cdp.client.models.onchain_name module
OnchainName
OnchainName.avatar
OnchainName.domain
OnchainName.expires_at
OnchainName.from_dict()
OnchainName.from_json()
OnchainName.is_primary
OnchainName.manager_address
OnchainName.model_config
OnchainName.network_id
OnchainName.owner_address
OnchainName.primary_address
OnchainName.text_records
OnchainName.to_dict()
OnchainName.to_json()
OnchainName.to_str()
OnchainName.token_id
- cdp.client.models.onchain_name_list module
- cdp.client.models.onchain_name_text_records_inner module
- cdp.client.models.payload_signature module
PayloadSignature
PayloadSignature.address_id
PayloadSignature.from_dict()
PayloadSignature.from_json()
PayloadSignature.model_config
PayloadSignature.payload_signature_id
PayloadSignature.signature
PayloadSignature.status
PayloadSignature.status_validate_enum()
PayloadSignature.to_dict()
PayloadSignature.to_json()
PayloadSignature.to_str()
PayloadSignature.unsigned_payload
PayloadSignature.wallet_id
- cdp.client.models.payload_signature_list module
PayloadSignatureList
PayloadSignatureList.data
PayloadSignatureList.from_dict()
PayloadSignatureList.from_json()
PayloadSignatureList.has_more
PayloadSignatureList.model_config
PayloadSignatureList.next_page
PayloadSignatureList.to_dict()
PayloadSignatureList.to_json()
PayloadSignatureList.to_str()
PayloadSignatureList.total_count
- cdp.client.models.read_contract_request module
- cdp.client.models.read_smart_contract_request module
ReadSmartContractRequest
ReadSmartContractRequest.abi
ReadSmartContractRequest.args
ReadSmartContractRequest.from_dict()
ReadSmartContractRequest.from_json()
ReadSmartContractRequest.method
ReadSmartContractRequest.model_config
ReadSmartContractRequest.to_dict()
ReadSmartContractRequest.to_json()
ReadSmartContractRequest.to_str()
- cdp.client.models.seed_creation_event module
- cdp.client.models.seed_creation_event_result module
SeedCreationEventResult
SeedCreationEventResult.extended_public_key
SeedCreationEventResult.from_dict()
SeedCreationEventResult.from_json()
SeedCreationEventResult.model_config
SeedCreationEventResult.seed_id
SeedCreationEventResult.to_dict()
SeedCreationEventResult.to_json()
SeedCreationEventResult.to_str()
SeedCreationEventResult.wallet_id
SeedCreationEventResult.wallet_user_id
- cdp.client.models.server_signer module
- cdp.client.models.server_signer_event module
- cdp.client.models.server_signer_event_event module
ServerSignerEventEvent
ServerSignerEventEvent.actual_instance
ServerSignerEventEvent.actual_instance_must_validate_oneof()
ServerSignerEventEvent.from_dict()
ServerSignerEventEvent.from_json()
ServerSignerEventEvent.model_config
ServerSignerEventEvent.one_of_schemas
ServerSignerEventEvent.oneof_schema_1_validator
ServerSignerEventEvent.oneof_schema_2_validator
ServerSignerEventEvent.to_dict()
ServerSignerEventEvent.to_json()
ServerSignerEventEvent.to_str()
- cdp.client.models.server_signer_event_list module
ServerSignerEventList
ServerSignerEventList.data
ServerSignerEventList.from_dict()
ServerSignerEventList.from_json()
ServerSignerEventList.has_more
ServerSignerEventList.model_config
ServerSignerEventList.next_page
ServerSignerEventList.to_dict()
ServerSignerEventList.to_json()
ServerSignerEventList.to_str()
ServerSignerEventList.total_count
- cdp.client.models.server_signer_list module
- cdp.client.models.signature_creation_event module
SignatureCreationEvent
SignatureCreationEvent.address_id
SignatureCreationEvent.address_index
SignatureCreationEvent.from_dict()
SignatureCreationEvent.from_json()
SignatureCreationEvent.model_config
SignatureCreationEvent.seed_id
SignatureCreationEvent.signing_payload
SignatureCreationEvent.to_dict()
SignatureCreationEvent.to_json()
SignatureCreationEvent.to_str()
SignatureCreationEvent.transaction_id
SignatureCreationEvent.transaction_type
SignatureCreationEvent.wallet_id
SignatureCreationEvent.wallet_user_id
- cdp.client.models.signature_creation_event_result module
SignatureCreationEventResult
SignatureCreationEventResult.address_id
SignatureCreationEventResult.from_dict()
SignatureCreationEventResult.from_json()
SignatureCreationEventResult.model_config
SignatureCreationEventResult.signature
SignatureCreationEventResult.to_dict()
SignatureCreationEventResult.to_json()
SignatureCreationEventResult.to_str()
SignatureCreationEventResult.transaction_id
SignatureCreationEventResult.transaction_type
SignatureCreationEventResult.wallet_id
SignatureCreationEventResult.wallet_user_id
- cdp.client.models.signed_voluntary_exit_message_metadata module
SignedVoluntaryExitMessageMetadata
SignedVoluntaryExitMessageMetadata.fork
SignedVoluntaryExitMessageMetadata.from_dict()
SignedVoluntaryExitMessageMetadata.from_json()
SignedVoluntaryExitMessageMetadata.model_config
SignedVoluntaryExitMessageMetadata.signed_voluntary_exit
SignedVoluntaryExitMessageMetadata.to_dict()
SignedVoluntaryExitMessageMetadata.to_json()
SignedVoluntaryExitMessageMetadata.to_str()
SignedVoluntaryExitMessageMetadata.validator_pub_key
- cdp.client.models.smart_contract module
SmartContract
SmartContract.abi
SmartContract.contract_address
SmartContract.contract_name
SmartContract.deployer_address
SmartContract.from_dict()
SmartContract.from_json()
SmartContract.model_config
SmartContract.network_id
SmartContract.options
SmartContract.smart_contract_id
SmartContract.to_dict()
SmartContract.to_json()
SmartContract.to_str()
SmartContract.transaction
SmartContract.type
SmartContract.wallet_id
- cdp.client.models.smart_contract_activity_event module
SmartContractActivityEvent
SmartContractActivityEvent.block_hash
SmartContractActivityEvent.block_number
SmartContractActivityEvent.block_time
SmartContractActivityEvent.contract_address
SmartContractActivityEvent.contract_name
SmartContractActivityEvent.event_type
SmartContractActivityEvent.four_bytes
SmartContractActivityEvent.from_dict()
SmartContractActivityEvent.from_json()
SmartContractActivityEvent.func
SmartContractActivityEvent.log_index
SmartContractActivityEvent.model_config
SmartContractActivityEvent.network
SmartContractActivityEvent.project_name
SmartContractActivityEvent.sig
SmartContractActivityEvent.to
SmartContractActivityEvent.to_dict()
SmartContractActivityEvent.to_json()
SmartContractActivityEvent.to_str()
SmartContractActivityEvent.transaction_hash
SmartContractActivityEvent.transaction_index
SmartContractActivityEvent.value
SmartContractActivityEvent.var_from
SmartContractActivityEvent.webhook_id
- cdp.client.models.smart_contract_list module
- cdp.client.models.smart_contract_options module
SmartContractOptions
SmartContractOptions.actual_instance
SmartContractOptions.actual_instance_must_validate_oneof()
SmartContractOptions.from_dict()
SmartContractOptions.from_json()
SmartContractOptions.model_config
SmartContractOptions.one_of_schemas
SmartContractOptions.oneof_schema_1_validator
SmartContractOptions.oneof_schema_2_validator
SmartContractOptions.oneof_schema_3_validator
SmartContractOptions.to_dict()
SmartContractOptions.to_json()
SmartContractOptions.to_str()
- cdp.client.models.smart_contract_type module
- cdp.client.models.solidity_value module
- cdp.client.models.sponsored_send module
SponsoredSend
SponsoredSend.from_dict()
SponsoredSend.from_json()
SponsoredSend.model_config
SponsoredSend.raw_typed_data
SponsoredSend.signature
SponsoredSend.status
SponsoredSend.status_validate_enum()
SponsoredSend.to_address_id
SponsoredSend.to_dict()
SponsoredSend.to_json()
SponsoredSend.to_str()
SponsoredSend.transaction_hash
SponsoredSend.transaction_link
SponsoredSend.typed_data_hash
- cdp.client.models.staking_balance module
- cdp.client.models.staking_context module
- cdp.client.models.staking_context_context module
StakingContextContext
StakingContextContext.claimable_balance
StakingContextContext.from_dict()
StakingContextContext.from_json()
StakingContextContext.model_config
StakingContextContext.stakeable_balance
StakingContextContext.to_dict()
StakingContextContext.to_json()
StakingContextContext.to_str()
StakingContextContext.unstakeable_balance
- cdp.client.models.staking_operation module
StakingOperation
StakingOperation.address_id
StakingOperation.from_dict()
StakingOperation.from_json()
StakingOperation.id
StakingOperation.metadata
StakingOperation.model_config
StakingOperation.network_id
StakingOperation.status
StakingOperation.status_validate_enum()
StakingOperation.to_dict()
StakingOperation.to_json()
StakingOperation.to_str()
StakingOperation.transactions
StakingOperation.wallet_id
- cdp.client.models.staking_operation_metadata module
StakingOperationMetadata
StakingOperationMetadata.actual_instance
StakingOperationMetadata.actual_instance_must_validate_oneof()
StakingOperationMetadata.from_dict()
StakingOperationMetadata.from_json()
StakingOperationMetadata.model_config
StakingOperationMetadata.one_of_schemas
StakingOperationMetadata.oneof_schema_1_validator
StakingOperationMetadata.to_dict()
StakingOperationMetadata.to_json()
StakingOperationMetadata.to_str()
- cdp.client.models.staking_reward module
StakingReward
StakingReward.address_id
StakingReward.amount
StakingReward.format
StakingReward.from_dict()
StakingReward.from_json()
StakingReward.model_config
StakingReward.state
StakingReward.state_validate_enum()
StakingReward.to_dict()
StakingReward.to_json()
StakingReward.to_str()
StakingReward.usd_value
StakingReward.var_date
- cdp.client.models.staking_reward_format module
- cdp.client.models.staking_reward_usd_value module
StakingRewardUSDValue
StakingRewardUSDValue.amount
StakingRewardUSDValue.conversion_price
StakingRewardUSDValue.conversion_time
StakingRewardUSDValue.from_dict()
StakingRewardUSDValue.from_json()
StakingRewardUSDValue.model_config
StakingRewardUSDValue.to_dict()
StakingRewardUSDValue.to_json()
StakingRewardUSDValue.to_str()
- cdp.client.models.token_contract_options module
- cdp.client.models.token_transfer_type module
- cdp.client.models.trade module
- cdp.client.models.trade_list module
- cdp.client.models.transaction module
Transaction
Transaction.block_hash
Transaction.block_height
Transaction.content
Transaction.from_address_id
Transaction.from_dict()
Transaction.from_json()
Transaction.model_config
Transaction.network_id
Transaction.signed_payload
Transaction.status
Transaction.status_validate_enum()
Transaction.to_address_id
Transaction.to_dict()
Transaction.to_json()
Transaction.to_str()
Transaction.transaction_hash
Transaction.transaction_link
Transaction.unsigned_payload
- cdp.client.models.transaction_content module
TransactionContent
TransactionContent.actual_instance
TransactionContent.actual_instance_must_validate_oneof()
TransactionContent.from_dict()
TransactionContent.from_json()
TransactionContent.model_config
TransactionContent.one_of_schemas
TransactionContent.oneof_schema_1_validator
TransactionContent.to_dict()
TransactionContent.to_json()
TransactionContent.to_str()
- cdp.client.models.transaction_type module
- cdp.client.models.transfer module
Transfer
Transfer.address_id
Transfer.amount
Transfer.asset
Transfer.asset_id
Transfer.destination
Transfer.from_dict()
Transfer.from_json()
Transfer.gasless
Transfer.model_config
Transfer.network_id
Transfer.signed_payload
Transfer.sponsored_send
Transfer.status
Transfer.status_validate_enum()
Transfer.to_dict()
Transfer.to_json()
Transfer.to_str()
Transfer.transaction
Transfer.transaction_hash
Transfer.transfer_id
Transfer.unsigned_payload
Transfer.wallet_id
- cdp.client.models.transfer_list module
- cdp.client.models.update_webhook_request module
UpdateWebhookRequest
UpdateWebhookRequest.event_filters
UpdateWebhookRequest.event_type_filter
UpdateWebhookRequest.from_dict()
UpdateWebhookRequest.from_json()
UpdateWebhookRequest.model_config
UpdateWebhookRequest.notification_uri
UpdateWebhookRequest.to_dict()
UpdateWebhookRequest.to_json()
UpdateWebhookRequest.to_str()
- cdp.client.models.user module
- cdp.client.models.validator module
- cdp.client.models.validator_details module
ValidatorDetails
ValidatorDetails.actual_instance
ValidatorDetails.actual_instance_must_validate_oneof()
ValidatorDetails.from_dict()
ValidatorDetails.from_json()
ValidatorDetails.model_config
ValidatorDetails.one_of_schemas
ValidatorDetails.oneof_schema_1_validator
ValidatorDetails.to_dict()
ValidatorDetails.to_json()
ValidatorDetails.to_str()
- cdp.client.models.validator_list module
- cdp.client.models.validator_status module
ValidatorStatus
ValidatorStatus.ACTIVE
ValidatorStatus.ACTIVE_SLASHED
ValidatorStatus.DEPOSITED
ValidatorStatus.EXITED
ValidatorStatus.EXITED_SLASHED
ValidatorStatus.EXITING
ValidatorStatus.PENDING_ACTIVATION
ValidatorStatus.PROVISIONED
ValidatorStatus.PROVISIONING
ValidatorStatus.REAPED
ValidatorStatus.UNKNOWN
ValidatorStatus.WITHDRAWAL_AVAILABLE
ValidatorStatus.WITHDRAWAL_COMPLETE
ValidatorStatus.from_json()
- cdp.client.models.wallet module
- cdp.client.models.wallet_list module
- cdp.client.models.webhook module
- cdp.client.models.webhook_event_filter module
- cdp.client.models.webhook_event_type module
- cdp.client.models.webhook_event_type_filter module
WebhookEventTypeFilter
WebhookEventTypeFilter.actual_instance
WebhookEventTypeFilter.actual_instance_must_validate_oneof()
WebhookEventTypeFilter.from_dict()
WebhookEventTypeFilter.from_json()
WebhookEventTypeFilter.model_config
WebhookEventTypeFilter.one_of_schemas
WebhookEventTypeFilter.oneof_schema_1_validator
WebhookEventTypeFilter.oneof_schema_2_validator
WebhookEventTypeFilter.to_dict()
WebhookEventTypeFilter.to_json()
WebhookEventTypeFilter.to_str()
- cdp.client.models.webhook_list module
- cdp.client.models.webhook_smart_contract_event_filter module
WebhookSmartContractEventFilter
WebhookSmartContractEventFilter.contract_addresses
WebhookSmartContractEventFilter.from_dict()
WebhookSmartContractEventFilter.from_json()
WebhookSmartContractEventFilter.model_config
WebhookSmartContractEventFilter.to_dict()
WebhookSmartContractEventFilter.to_json()
WebhookSmartContractEventFilter.to_str()
- cdp.client.models.webhook_wallet_activity_filter module
WebhookWalletActivityFilter
WebhookWalletActivityFilter.addresses
WebhookWalletActivityFilter.from_dict()
WebhookWalletActivityFilter.from_json()
WebhookWalletActivityFilter.model_config
WebhookWalletActivityFilter.to_dict()
WebhookWalletActivityFilter.to_json()
WebhookWalletActivityFilter.to_str()
WebhookWalletActivityFilter.wallet_id
- Module contents
Submodules¶
cdp.client.api_client module¶
Coinbase Platform API
This is the OpenAPI 3.0 specification for the Coinbase Platform APIs, used in conjunction with the Coinbase Platform SDKs.
The version of the OpenAPI document: 0.0.1-alpha Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
- class cdp.client.api_client.ApiClient(configuration=None, header_name=None, header_value=None, cookie=None)¶
Bases:
object
Generic API client for OpenAPI client library builds.
OpenAPI generic API client. This client handles the client- server communication, and is invariant across implementations. Specifics of the methods and models for each application are generated from the OpenAPI templates.
- Parameters:
configuration – .Configuration object for this client
header_name – a header to pass when making calls to the API.
header_value – a header value to pass when making calls to the API.
cookie – a cookie to include in the header when making calls to the API
- NATIVE_TYPES_MAPPING = {'bool': <class 'bool'>, 'date': <class 'datetime.date'>, 'datetime': <class 'datetime.datetime'>, 'decimal': <class 'decimal.Decimal'>, 'float': <class 'float'>, 'int': <class 'int'>, 'long': <class 'int'>, 'object': <class 'object'>, 'str': <class 'str'>}¶
- PRIMITIVE_TYPES = (<class 'float'>, <class 'bool'>, <class 'bytes'>, <class 'str'>, <class 'int'>)¶
- call_api(method, url, header_params=None, body=None, post_params=None, _request_timeout=None)¶
Makes the HTTP request (synchronous) :type method: :param method: Method to call. :type url: :param url: Path to method endpoint. :type header_params: :param header_params: Header parameters to be
placed in the request header.
- Parameters:
body – Request body.
dict (post_params) – Request post form parameters, for application/x-www-form-urlencoded, multipart/form-data.
_request_timeout – timeout setting for this request.
- Return type:
- Returns:
RESTResponse
- deserialize(response_text, response_type, content_type)¶
Deserializes response into an object.
- Parameters:
response – RESTResponse object to be deserialized.
response_type (
str
) – class literal for deserialized object, or string of class name.content_type (
Optional
[str
]) – content type of response.
- Returns:
deserialized object.
- files_parameters(files)¶
Builds form parameters.
- Parameters:
files (
Dict
[str
,Union
[str
,bytes
,List
[str
],List
[bytes
],Tuple
[str
,bytes
]]]) – File parameters.- Returns:
Form parameters with files.
- classmethod get_default()¶
Return new instance of ApiClient.
This method returns newly created, based on default constructor, object of ApiClient class or returns a copy of default ApiClient.
- Returns:
The ApiClient object.
- param_serialize(method, resource_path, path_params=None, query_params=None, header_params=None, body=None, post_params=None, files=None, auth_settings=None, collection_formats=None, _host=None, _request_auth=None)¶
Builds the HTTP request params needed by the request. :type method: :param method: Method to call. :type resource_path: :param resource_path: Path to method endpoint. :type path_params: :param path_params: Path parameters in the url. :type query_params: :param query_params: Query parameters in the url. :type header_params: :param header_params: Header parameters to be
placed in the request header.
- Parameters:
body – Request body.
dict (files) – Request post form parameters, for application/x-www-form-urlencoded, multipart/form-data.
list (auth_settings) – Auth Settings names for the request.
dict – key -> filename, value -> filepath, for multipart/form-data.
collection_formats – dict of collection formats for path, query, header, and post parameters.
_request_auth – set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.
- Return type:
Tuple
[str
,str
,Dict
[str
,str
],Optional
[str
],List
[str
]]- Returns:
tuple of form (path, http_method, query_params, header_params, body, post_params, files)
- parameters_to_tuples(params, collection_formats)¶
Get parameters as list of tuples, formatting collections.
- Parameters:
params – Parameters as dict or list of two-tuples
collection_formats (dict) – Parameter collection formats
- Returns:
Parameters as list of tuples, collections formatted
- parameters_to_url_query(params, collection_formats)¶
Get parameters as list of tuples, formatting collections.
- Parameters:
params – Parameters as dict or list of two-tuples
collection_formats (dict) – Parameter collection formats
- Returns:
URL query string (e.g. a=Hello%20World&b=123)
- response_deserialize(response_data, response_types_map=None)¶
Deserializes response into an object. :type response_data:
RESTResponse
:param response_data: RESTResponse object to be deserialized. :type response_types_map:Optional
[Dict
[str
,TypeVar
(T
)]] :param response_types_map: dict of response types. :rtype:ApiResponse
:return: ApiResponse
- sanitize_for_serialization(obj)¶
Builds a JSON POST object.
If obj is None, return None. If obj is SecretStr, return obj.get_secret_value() If obj is str, int, long, float, bool, return directly. If obj is datetime.datetime, datetime.date
convert to string in iso8601 format.
If obj is decimal.Decimal return string representation. If obj is list, sanitize each element in the list. If obj is dict, return the dict. If obj is OpenAPI model, return the properties dict.
- Parameters:
obj – The data to serialize.
- Returns:
The serialized form of data.
- select_header_accept(accepts)¶
Returns Accept based on an array of accepts provided.
- Parameters:
accepts (
List
[str
]) – List of headers.- Return type:
Optional
[str
]- Returns:
Accept (e.g. application/json).
- select_header_content_type(content_types)¶
Returns Content-Type based on an array of content_types provided.
- Parameters:
content_types – List of content-types.
- Returns:
Content-Type (e.g. application/json).
- classmethod set_default(default)¶
Set default instance of ApiClient.
It stores default ApiClient.
- Parameters:
default – object of ApiClient.
- set_default_header(header_name, header_value)¶
- update_params_for_auth(headers, queries, auth_settings, resource_path, method, body, request_auth=None)¶
Updates header and query params based on authentication setting.
- Parameters:
headers – Header parameters dict to be updated.
queries – Query parameters tuple list to be updated.
auth_settings – Authentication setting identifiers list.
- Return type:
None
- Resource_path:
A string representation of the HTTP request resource path.
- Method:
A string representation of the HTTP request method.
- Body:
A object representing the body of the HTTP request.
The object type is the return value of sanitize_for_serialization(). :type request_auth: :param request_auth: if set, the provided settings will
override the token in the configuration.
- property user_agent¶
User agent for this API client
cdp.client.api_response module¶
API response object.
- class cdp.client.api_response.ApiResponse(**data)¶
Bases:
BaseModel
,Generic
[T
]API response object
- data: T¶
- headers: Optional[Mapping[str, str]]¶
- model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- raw_data: StrictBytes¶
- status_code: StrictInt¶
cdp.client.configuration module¶
Coinbase Platform API
This is the OpenAPI 3.0 specification for the Coinbase Platform APIs, used in conjunction with the Coinbase Platform SDKs.
The version of the OpenAPI document: 0.0.1-alpha Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
- class cdp.client.configuration.Configuration(host=None, api_key=None, api_key_prefix=None, username=None, password=None, access_token=None, server_index=None, server_variables=None, server_operation_index=None, server_operation_variables=None, ignore_operation_servers=False, ssl_ca_cert=None, retries=None, *, debug=None)¶
Bases:
object
This class contains various settings of the API client.
- Parameters:
host – Base url.
- :param ignore_operation_servers
Boolean to ignore operation servers for the API client. Config will use host as the base url regardless of the operation servers.
- Parameters:
api_key – Dict to store API key(s). Each entry in the dict specifies an API key. The dict key is the name of the security scheme in the OAS specification. The dict value is the API key secret.
api_key_prefix – Dict to store API prefix (e.g. Bearer). The dict key is the name of the security scheme in the OAS specification. The dict value is an API key prefix when generating the auth data.
username – Username for HTTP basic authentication.
password – Password for HTTP basic authentication.
access_token – Access token.
server_index – Index to servers configuration.
server_variables – Mapping with string values to replace variables in templated server configuration. The validation of enums is performed for variables with defined enum values before.
server_operation_index – Mapping from operation ID to an index to server configuration.
server_operation_variables – Mapping from operation ID to a mapping with string values to replace variables in templated server configuration. The validation of enums is performed for variables with defined enum values before.
ssl_ca_cert – str - the path to a file of concatenated CA certificates in PEM format.
retries – Number of retries for API requests.
- access_token¶
Access token
- assert_hostname¶
Set this to True/False to enable/disable SSL hostname verification.
- auth_settings()¶
Gets Auth Settings dict for api client.
- Returns:
The Auth Settings information dict.
- cert_file¶
client certificate file
- connection_pool_maxsize¶
urllib3 connection pool’s maximum number of connections saved per pool. urllib3 uses 1 connection as default value, but this is not the best value when you are making a lot of possibly parallel requests to the same host, which is often the case here. cpu_count * 5 is used as default value to increase performance.
- date_format¶
date format
- datetime_format¶
datetime format
- property debug¶
Debug status
- Parameters:
value – The debug status, True or False.
- Type:
bool
- get_api_key_with_prefix(identifier, alias=None)¶
Gets API key (with prefix if set).
- Parameters:
identifier – The identifier of apiKey.
alias – The alternative identifier of apiKey.
- Returns:
The token for api key authentication.
- get_basic_auth_token()¶
Gets HTTP basic authentication header (string).
- Returns:
The token for basic HTTP authentication.
- classmethod get_default()¶
Return the default configuration.
This method returns newly created, based on default constructor, object of Configuration class or returns a copy of default configuration.
- Returns:
The configuration object.
- classmethod get_default_copy()¶
Deprecated. Please use get_default instead.
Deprecated. Please use get_default instead.
- Returns:
The configuration object.
- get_host_from_settings(index, variables=None, servers=None)¶
Gets host URL based on the index and variables :type index: :param index: array index of the host settings :type variables: :param variables: hash of variable and the corresponding value :type servers: :param servers: an array of host settings or None :return: URL based on host settings
- get_host_settings()¶
Gets an array of host settings
- Returns:
An array of host settings
- property host¶
Return generated host.
- ignore_operation_servers¶
Ignore operation servers
- key_file¶
client key file
- logger¶
Logging Settings
- property logger_file¶
Debug file location
-
logger_file_handler:
Optional
[FileHandler
]¶ Log file handler
- property logger_format¶
Log format
- logger_stream_handler¶
Log stream handler
- password¶
Password for HTTP basic authentication
-
proxy:
Optional
[str
]¶ Proxy URL
- proxy_headers¶
Proxy headers
- refresh_api_key_hook¶
function hook to refresh API key if expired
- retries¶
Adding retries to override urllib3 default value 3
- safe_chars_for_path_param¶
Safe chars for path_param
- server_operation_index¶
Default server index
- server_operation_variables¶
Default server variables
- classmethod set_default(default)¶
Set default instance of configuration.
It stores default configuration, which can be returned by get_default_copy method.
- Parameters:
default – object of Configuration
- socket_options¶
Options to pass down to the underlying urllib3 socket
- ssl_ca_cert¶
Set this to customize the certificate file to verify the peer.
- temp_folder_path¶
Temp file folder for downloading files
- tls_server_name¶
SSL/TLS Server Name Indication (SNI) Set this to the SNI value expected by the server.
- to_debug_report()¶
Gets the essential information for debugging.
- Returns:
The report for debugging.
- username¶
Username for HTTP basic authentication
- verify_ssl¶
SSL/TLS verification Set this to false to skip verifying SSL certificate when calling API from https server.
cdp.client.exceptions module¶
Coinbase Platform API
This is the OpenAPI 3.0 specification for the Coinbase Platform APIs, used in conjunction with the Coinbase Platform SDKs.
The version of the OpenAPI document: 0.0.1-alpha Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
- exception cdp.client.exceptions.ApiAttributeError(msg, path_to_item=None)¶
Bases:
OpenApiException
,AttributeError
- exception cdp.client.exceptions.ApiException(status=None, reason=None, http_resp=None, *, body=None, data=None)¶
Bases:
OpenApiException
- classmethod from_response(*, http_resp, body, data)¶
- Return type:
Self
- exception cdp.client.exceptions.ApiKeyError(msg, path_to_item=None)¶
Bases:
OpenApiException
,KeyError
- exception cdp.client.exceptions.ApiTypeError(msg, path_to_item=None, valid_classes=None, key_type=None)¶
Bases:
OpenApiException
,TypeError
- exception cdp.client.exceptions.ApiValueError(msg, path_to_item=None)¶
Bases:
OpenApiException
,ValueError
- exception cdp.client.exceptions.BadRequestException(status=None, reason=None, http_resp=None, *, body=None, data=None)¶
Bases:
ApiException
- exception cdp.client.exceptions.ForbiddenException(status=None, reason=None, http_resp=None, *, body=None, data=None)¶
Bases:
ApiException
- exception cdp.client.exceptions.NotFoundException(status=None, reason=None, http_resp=None, *, body=None, data=None)¶
Bases:
ApiException
- exception cdp.client.exceptions.OpenApiException¶
Bases:
Exception
The base exception class for all OpenAPIExceptions
- exception cdp.client.exceptions.ServiceException(status=None, reason=None, http_resp=None, *, body=None, data=None)¶
Bases:
ApiException
- exception cdp.client.exceptions.UnauthorizedException(status=None, reason=None, http_resp=None, *, body=None, data=None)¶
Bases:
ApiException
- cdp.client.exceptions.render_path(path_to_item)¶
Returns a string representation of a path
cdp.client.rest module¶
Coinbase Platform API
This is the OpenAPI 3.0 specification for the Coinbase Platform APIs, used in conjunction with the Coinbase Platform SDKs.
The version of the OpenAPI document: 0.0.1-alpha Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
- class cdp.client.rest.RESTClientObject(configuration)¶
Bases:
object
- request(method, url, headers=None, body=None, post_params=None, _request_timeout=None)¶
Perform requests.
- Parameters:
method – http request method
url – http request url
headers – http request headers
body – request json body, for application/json
post_params – request post parameters, application/x-www-form-urlencoded and multipart/form-data
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- class cdp.client.rest.RESTResponse(resp)¶
Bases:
IOBase
- getheader(name, default=None)¶
Returns a given response header.
- getheaders()¶
Returns a dictionary of the response headers.
- read()¶
- cdp.client.rest.is_socks_proxy_url(url)¶
Module contents¶
Coinbase Platform API
This is the OpenAPI 3.0 specification for the Coinbase Platform APIs, used in conjunction with the Coinbase Platform SDKs.
The version of the OpenAPI document: 0.0.1-alpha Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.