cdp.openapi_client.models package

Submodules

cdp.openapi_client.models.create_evm_account_request module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.create_evm_account_request.CreateEvmAccountRequest(**data)

Bases: BaseModel

classmethod from_dict(obj)

Create an instance of CreateEvmAccountRequest from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of CreateEvmAccountRequest from a JSON string

Return type:

Optional[Self]

model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: Optional[Annotated[str, Field(strict=True)]]
classmethod name_validate_regular_expression(value)

Validates the regular expression

to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True): :rtype: Dict[str, Any]

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

to_json()

Returns the JSON representation of the model using alias

Return type:

str

to_str()

Returns the string representation of the model using alias

Return type:

str

cdp.openapi_client.models.create_evm_smart_account_request module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.create_evm_smart_account_request.CreateEvmSmartAccountRequest(**data)

Bases: BaseModel

classmethod from_dict(obj)

Create an instance of CreateEvmSmartAccountRequest from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of CreateEvmSmartAccountRequest from a JSON string

Return type:

Optional[Self]

model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

owners: List[Annotated[str, Field(strict=True)]]
to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True): :rtype: Dict[str, Any]

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

to_json()

Returns the JSON representation of the model using alias

Return type:

str

to_str()

Returns the string representation of the model using alias

Return type:

str

cdp.openapi_client.models.create_policy_request module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.create_policy_request.CreatePolicyRequest(**data)

Bases: BaseModel

description: Optional[Annotated[str, Field(strict=True)]]
classmethod description_validate_regular_expression(value)

Validates the regular expression

classmethod from_dict(obj)

Create an instance of CreatePolicyRequest from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of CreatePolicyRequest from a JSON string

Return type:

Optional[Self]

model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

rules: List[Rule]
scope: StrictStr
classmethod scope_validate_enum(value)

Validates the enum

to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True): :rtype: Dict[str, Any]

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

to_json()

Returns the JSON representation of the model using alias

Return type:

str

to_str()

Returns the string representation of the model using alias

Return type:

str

cdp.openapi_client.models.create_solana_account_request module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.create_solana_account_request.CreateSolanaAccountRequest(**data)

Bases: BaseModel

classmethod from_dict(obj)

Create an instance of CreateSolanaAccountRequest from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of CreateSolanaAccountRequest from a JSON string

Return type:

Optional[Self]

model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: Optional[Annotated[str, Field(strict=True)]]
classmethod name_validate_regular_expression(value)

Validates the regular expression

to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True): :rtype: Dict[str, Any]

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

to_json()

Returns the JSON representation of the model using alias

Return type:

str

to_str()

Returns the string representation of the model using alias

Return type:

str

cdp.openapi_client.models.eip712_domain module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.eip712_domain.EIP712Domain(**data)

Bases: BaseModel

The domain of the EIP-712 typed data.

chain_id: Optional[StrictInt]
classmethod from_dict(obj)

Create an instance of EIP712Domain from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of EIP712Domain from a JSON string

Return type:

Optional[Self]

model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: Optional[StrictStr]
salt: Optional[Annotated[str, Field(strict=True)]]
classmethod salt_validate_regular_expression(value)

Validates the regular expression

to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True): :rtype: Dict[str, Any]

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

to_json()

Returns the JSON representation of the model using alias

Return type:

str

to_str()

Returns the string representation of the model using alias

Return type:

str

verifying_contract: Optional[Annotated[str, Field(strict=True)]]
classmethod verifying_contract_validate_regular_expression(value)

Validates the regular expression

version: Optional[StrictStr]

cdp.openapi_client.models.eip712_message module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.eip712_message.EIP712Message(**data)

Bases: BaseModel

The message to sign using EIP-712.

domain: EIP712Domain
classmethod from_dict(obj)

Create an instance of EIP712Message from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of EIP712Message from a JSON string

Return type:

Optional[Self]

message: Dict[str, Any]
model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

primary_type: StrictStr
to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True): :rtype: Dict[str, Any]

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

to_json()

Returns the JSON representation of the model using alias

Return type:

str

to_str()

Returns the string representation of the model using alias

Return type:

str

types: Dict[str, Any]

cdp.openapi_client.models.error module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.error.Error(**data)

Bases: BaseModel

An error response including the code for the type of error and a human-readable message describing the error.

correlation_id: Optional[StrictStr]
error_message: StrictStr
error_type: ErrorType
classmethod from_dict(obj)

Create an instance of Error from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of Error from a JSON string

Return type:

Optional[Self]

model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True): :rtype: Dict[str, Any]

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

to_json()

Returns the JSON representation of the model using alias

Return type:

str

to_str()

Returns the string representation of the model using alias

Return type:

str

cdp.openapi_client.models.error_type module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.error_type.ErrorType(value)

Bases: str, Enum

The code that indicates the type of error that occurred. These error codes can be used to determine how to handle the error.

ALREADY_EXISTS = 'already_exists'
BAD_GATEWAY = 'bad_gateway'
FAUCET_LIMIT_EXCEEDED = 'faucet_limit_exceeded'
FORBIDDEN = 'forbidden'
IDEMPOTENCY_ERROR = 'idempotency_error'
INTERNAL_SERVER_ERROR = 'internal_server_error'
INVALID_REQUEST = 'invalid_request'
INVALID_SIGNATURE = 'invalid_signature'
MALFORMED_TRANSACTION = 'malformed_transaction'
NOT_FOUND = 'not_found'
POLICY_IN_USE = 'policy_in_use'
POLICY_VIOLATION = 'policy_violation'
RATE_LIMIT_EXCEEDED = 'rate_limit_exceeded'
REQUEST_CANCELED = 'request_canceled'
SERVICE_UNAVAILABLE = 'service_unavailable'
TIMED_OUT = 'timed_out'
UNAUTHORIZED = 'unauthorized'
classmethod from_json(json_str)

Create an instance of ErrorType from a JSON string

Return type:

Self

cdp.openapi_client.models.eth_value_criterion module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.eth_value_criterion.EthValueCriterion(**data)

Bases: BaseModel

A schema for specifying a criterion for the value field of an EVM transaction.

eth_value: Annotated[str, Field(strict=True)]
classmethod eth_value_validate_regular_expression(value)

Validates the regular expression

classmethod from_dict(obj)

Create an instance of EthValueCriterion from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of EthValueCriterion from a JSON string

Return type:

Optional[Self]

model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

operator: StrictStr
classmethod operator_validate_enum(value)

Validates the enum

to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True): :rtype: Dict[str, Any]

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

to_json()

Returns the JSON representation of the model using alias

Return type:

str

to_str()

Returns the string representation of the model using alias

Return type:

str

type: StrictStr
classmethod type_validate_enum(value)

Validates the enum

cdp.openapi_client.models.evm_account module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.evm_account.EvmAccount(**data)

Bases: BaseModel

address: Annotated[str, Field(strict=True)]
classmethod address_validate_regular_expression(value)

Validates the regular expression

classmethod from_dict(obj)

Create an instance of EvmAccount from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of EvmAccount from a JSON string

Return type:

Optional[Self]

model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: Optional[Annotated[str, Field(strict=True)]]
classmethod name_validate_regular_expression(value)

Validates the regular expression

policies: Optional[List[Annotated[str, Field(strict=True)]]]
to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True): :rtype: Dict[str, Any]

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

to_json()

Returns the JSON representation of the model using alias

Return type:

str

to_str()

Returns the string representation of the model using alias

Return type:

str

cdp.openapi_client.models.evm_address_criterion module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.evm_address_criterion.EvmAddressCriterion(**data)

Bases: BaseModel

A schema for specifying a criterion for the to field of an EVM transaction.

addresses: List[Annotated[str, Field(strict=True)]]
classmethod from_dict(obj)

Create an instance of EvmAddressCriterion from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of EvmAddressCriterion from a JSON string

Return type:

Optional[Self]

model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

operator: StrictStr
classmethod operator_validate_enum(value)

Validates the enum

to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True): :rtype: Dict[str, Any]

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

to_json()

Returns the JSON representation of the model using alias

Return type:

str

to_str()

Returns the string representation of the model using alias

Return type:

str

type: StrictStr
classmethod type_validate_enum(value)

Validates the enum

cdp.openapi_client.models.evm_call module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.evm_call.EvmCall(**data)

Bases: BaseModel

data: Annotated[str, Field(strict=True)]
classmethod data_validate_regular_expression(value)

Validates the regular expression

classmethod from_dict(obj)

Create an instance of EvmCall from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of EvmCall from a JSON string

Return type:

Optional[Self]

model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

to: Annotated[str, Field(strict=True)]
to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True): :rtype: Dict[str, Any]

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

to_json()

Returns the JSON representation of the model using alias

Return type:

str

to_str()

Returns the string representation of the model using alias

Return type:

str

classmethod to_validate_regular_expression(value)

Validates the regular expression

value: StrictStr

cdp.openapi_client.models.evm_network_criterion module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.evm_network_criterion.EvmNetworkCriterion(**data)

Bases: BaseModel

A schema for specifying a criterion for the intended network of an EVM transaction.

classmethod from_dict(obj)

Create an instance of EvmNetworkCriterion from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of EvmNetworkCriterion from a JSON string

Return type:

Optional[Self]

model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

networks: List[StrictStr]
classmethod networks_validate_enum(value)

Validates the enum

operator: StrictStr
classmethod operator_validate_enum(value)

Validates the enum

to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True): :rtype: Dict[str, Any]

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

to_json()

Returns the JSON representation of the model using alias

Return type:

str

to_str()

Returns the string representation of the model using alias

Return type:

str

type: StrictStr
classmethod type_validate_enum(value)

Validates the enum

cdp.openapi_client.models.evm_smart_account module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.evm_smart_account.EvmSmartAccount(**data)

Bases: BaseModel

address: Annotated[str, Field(strict=True)]
classmethod address_validate_regular_expression(value)

Validates the regular expression

classmethod from_dict(obj)

Create an instance of EvmSmartAccount from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of EvmSmartAccount from a JSON string

Return type:

Optional[Self]

model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: Optional[Annotated[str, Field(strict=True)]]
classmethod name_validate_regular_expression(value)

Validates the regular expression

owners: List[Annotated[str, Field(strict=True)]]
to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True): :rtype: Dict[str, Any]

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

to_json()

Returns the JSON representation of the model using alias

Return type:

str

to_str()

Returns the string representation of the model using alias

Return type:

str

cdp.openapi_client.models.evm_user_operation module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.evm_user_operation.EvmUserOperation(**data)

Bases: BaseModel

calls: List[EvmCall]
classmethod from_dict(obj)

Create an instance of EvmUserOperation from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of EvmUserOperation from a JSON string

Return type:

Optional[Self]

model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

network: StrictStr
classmethod network_validate_enum(value)

Validates the enum

status: StrictStr
classmethod status_validate_enum(value)

Validates the enum

to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True): :rtype: Dict[str, Any]

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

to_json()

Returns the JSON representation of the model using alias

Return type:

str

to_str()

Returns the string representation of the model using alias

Return type:

str

transaction_hash: Optional[Annotated[str, Field(strict=True)]]
classmethod transaction_hash_validate_regular_expression(value)

Validates the regular expression

user_op_hash: Annotated[str, Field(strict=True)]
classmethod user_op_hash_validate_regular_expression(value)

Validates the regular expression

cdp.openapi_client.models.list_evm_accounts200_response module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.list_evm_accounts200_response.ListEvmAccounts200Response(**data)

Bases: BaseModel

accounts: List[EvmAccount]
classmethod from_dict(obj)

Create an instance of ListEvmAccounts200Response from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of ListEvmAccounts200Response from a JSON string

Return type:

Optional[Self]

model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

next_page_token: Optional[StrictStr]
to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True): :rtype: Dict[str, Any]

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

to_json()

Returns the JSON representation of the model using alias

Return type:

str

to_str()

Returns the string representation of the model using alias

Return type:

str

cdp.openapi_client.models.list_evm_smart_accounts200_response module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.list_evm_smart_accounts200_response.ListEvmSmartAccounts200Response(**data)

Bases: BaseModel

accounts: List[EvmSmartAccount]
classmethod from_dict(obj)

Create an instance of ListEvmSmartAccounts200Response from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of ListEvmSmartAccounts200Response from a JSON string

Return type:

Optional[Self]

model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

next_page_token: Optional[StrictStr]
to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True): :rtype: Dict[str, Any]

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

to_json()

Returns the JSON representation of the model using alias

Return type:

str

to_str()

Returns the string representation of the model using alias

Return type:

str

cdp.openapi_client.models.list_evm_token_balances200_response module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.list_evm_token_balances200_response.ListEvmTokenBalances200Response(**data)

Bases: BaseModel

balances: List[TokenBalance]
classmethod from_dict(obj)

Create an instance of ListEvmTokenBalances200Response from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of ListEvmTokenBalances200Response from a JSON string

Return type:

Optional[Self]

model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

next_page_token: Optional[StrictStr]
to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True): :rtype: Dict[str, Any]

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

to_json()

Returns the JSON representation of the model using alias

Return type:

str

to_str()

Returns the string representation of the model using alias

Return type:

str

cdp.openapi_client.models.list_evm_token_balances_network module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.list_evm_token_balances_network.ListEvmTokenBalancesNetwork(value)

Bases: str, Enum

The name of the supported EVM networks in human-readable format.

BASE = 'base'
BASE_MINUS_SEPOLIA = 'base-sepolia'
classmethod from_json(json_str)

Create an instance of ListEvmTokenBalancesNetwork from a JSON string

Return type:

Self

cdp.openapi_client.models.list_policies200_response module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.list_policies200_response.ListPolicies200Response(**data)

Bases: BaseModel

classmethod from_dict(obj)

Create an instance of ListPolicies200Response from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of ListPolicies200Response from a JSON string

Return type:

Optional[Self]

model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

next_page_token: Optional[StrictStr]
policies: List[Policy]
to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True): :rtype: Dict[str, Any]

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

to_json()

Returns the JSON representation of the model using alias

Return type:

str

to_str()

Returns the string representation of the model using alias

Return type:

str

cdp.openapi_client.models.list_response module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.list_response.ListResponse(**data)

Bases: BaseModel

classmethod from_dict(obj)

Create an instance of ListResponse from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of ListResponse from a JSON string

Return type:

Optional[Self]

model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

next_page_token: Optional[StrictStr]
to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True): :rtype: Dict[str, Any]

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

to_json()

Returns the JSON representation of the model using alias

Return type:

str

to_str()

Returns the string representation of the model using alias

Return type:

str

cdp.openapi_client.models.list_solana_accounts200_response module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.list_solana_accounts200_response.ListSolanaAccounts200Response(**data)

Bases: BaseModel

accounts: List[SolanaAccount]
classmethod from_dict(obj)

Create an instance of ListSolanaAccounts200Response from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of ListSolanaAccounts200Response from a JSON string

Return type:

Optional[Self]

model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

next_page_token: Optional[StrictStr]
to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True): :rtype: Dict[str, Any]

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

to_json()

Returns the JSON representation of the model using alias

Return type:

str

to_str()

Returns the string representation of the model using alias

Return type:

str

cdp.openapi_client.models.policy module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.policy.Policy(**data)

Bases: BaseModel

created_at: StrictStr
description: Optional[Annotated[str, Field(strict=True)]]
classmethod description_validate_regular_expression(value)

Validates the regular expression

classmethod from_dict(obj)

Create an instance of Policy from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of Policy from a JSON string

Return type:

Optional[Self]

id: Annotated[str, Field(strict=True)]
classmethod id_validate_regular_expression(value)

Validates the regular expression

model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

rules: List[Rule]
scope: StrictStr
classmethod scope_validate_enum(value)

Validates the enum

to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True): :rtype: Dict[str, Any]

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

to_json()

Returns the JSON representation of the model using alias

Return type:

str

to_str()

Returns the string representation of the model using alias

Return type:

str

updated_at: StrictStr

cdp.openapi_client.models.prepare_user_operation_request module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.prepare_user_operation_request.PrepareUserOperationRequest(**data)

Bases: BaseModel

calls: List[EvmCall]
classmethod from_dict(obj)

Create an instance of PrepareUserOperationRequest from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of PrepareUserOperationRequest from a JSON string

Return type:

Optional[Self]

model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

network: StrictStr
classmethod network_validate_enum(value)

Validates the enum

paymaster_url: Optional[StrictStr]
to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True): :rtype: Dict[str, Any]

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

to_json()

Returns the JSON representation of the model using alias

Return type:

str

to_str()

Returns the string representation of the model using alias

Return type:

str

cdp.openapi_client.models.request_evm_faucet200_response module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.request_evm_faucet200_response.RequestEvmFaucet200Response(**data)

Bases: BaseModel

classmethod from_dict(obj)

Create an instance of RequestEvmFaucet200Response from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of RequestEvmFaucet200Response from a JSON string

Return type:

Optional[Self]

model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True): :rtype: Dict[str, Any]

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

to_json()

Returns the JSON representation of the model using alias

Return type:

str

to_str()

Returns the string representation of the model using alias

Return type:

str

transaction_hash: StrictStr

cdp.openapi_client.models.request_evm_faucet_request module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.request_evm_faucet_request.RequestEvmFaucetRequest(**data)

Bases: BaseModel

address: Annotated[str, Field(strict=True)]
classmethod address_validate_regular_expression(value)

Validates the regular expression

classmethod from_dict(obj)

Create an instance of RequestEvmFaucetRequest from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of RequestEvmFaucetRequest from a JSON string

Return type:

Optional[Self]

model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

network: StrictStr
classmethod network_validate_enum(value)

Validates the enum

to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True): :rtype: Dict[str, Any]

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

to_json()

Returns the JSON representation of the model using alias

Return type:

str

to_str()

Returns the string representation of the model using alias

Return type:

str

token: StrictStr
classmethod token_validate_enum(value)

Validates the enum

cdp.openapi_client.models.request_solana_faucet200_response module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.request_solana_faucet200_response.RequestSolanaFaucet200Response(**data)

Bases: BaseModel

classmethod from_dict(obj)

Create an instance of RequestSolanaFaucet200Response from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of RequestSolanaFaucet200Response from a JSON string

Return type:

Optional[Self]

model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True): :rtype: Dict[str, Any]

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

to_json()

Returns the JSON representation of the model using alias

Return type:

str

to_str()

Returns the string representation of the model using alias

Return type:

str

transaction_signature: StrictStr

cdp.openapi_client.models.request_solana_faucet_request module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.request_solana_faucet_request.RequestSolanaFaucetRequest(**data)

Bases: BaseModel

address: Annotated[str, Field(strict=True)]
classmethod address_validate_regular_expression(value)

Validates the regular expression

classmethod from_dict(obj)

Create an instance of RequestSolanaFaucetRequest from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of RequestSolanaFaucetRequest from a JSON string

Return type:

Optional[Self]

model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True): :rtype: Dict[str, Any]

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

to_json()

Returns the JSON representation of the model using alias

Return type:

str

to_str()

Returns the string representation of the model using alias

Return type:

str

token: StrictStr
classmethod token_validate_enum(value)

Validates the enum

cdp.openapi_client.models.rule module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.rule.Rule(*args, **kwargs)

Bases: BaseModel

A rule that limits the behavior of an account.

actual_instance: Optional[Union[SendEvmTransactionRule, SignEvmTransactionRule, SignSolTransactionRule]]
classmethod actual_instance_must_validate_oneof(v)
classmethod from_dict(obj)
Return type:

Self

classmethod from_json(json_str)

Returns the object represented by the json string

Return type:

Self

model_config: ClassVar[ConfigDict] = {'protected_namespaces': (), 'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

one_of_schemas: Set[str]
oneof_schema_1_validator: Optional[SignEvmTransactionRule]
oneof_schema_2_validator: Optional[SendEvmTransactionRule]
oneof_schema_3_validator: Optional[SignSolTransactionRule]
to_dict()

Returns the dict representation of the actual instance

Return type:

Union[Dict[str, Any], SendEvmTransactionRule, SignEvmTransactionRule, SignSolTransactionRule, None]

to_json()

Returns the JSON representation of the actual instance

Return type:

str

to_str()

Returns the string representation of the actual instance

Return type:

str

cdp.openapi_client.models.send_evm_transaction200_response module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.send_evm_transaction200_response.SendEvmTransaction200Response(**data)

Bases: BaseModel

classmethod from_dict(obj)

Create an instance of SendEvmTransaction200Response from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of SendEvmTransaction200Response from a JSON string

Return type:

Optional[Self]

model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True): :rtype: Dict[str, Any]

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

to_json()

Returns the JSON representation of the model using alias

Return type:

str

to_str()

Returns the string representation of the model using alias

Return type:

str

transaction_hash: StrictStr

cdp.openapi_client.models.send_evm_transaction_criteria_inner module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.send_evm_transaction_criteria_inner.SendEvmTransactionCriteriaInner(*args, **kwargs)

Bases: BaseModel

actual_instance: Optional[Union[EthValueCriterion, EvmAddressCriterion, EvmNetworkCriterion]]
classmethod actual_instance_must_validate_oneof(v)
classmethod from_dict(obj)
Return type:

Self

classmethod from_json(json_str)

Returns the object represented by the json string

Return type:

Self

model_config: ClassVar[ConfigDict] = {'protected_namespaces': (), 'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

one_of_schemas: Set[str]
oneof_schema_1_validator: Optional[EthValueCriterion]
oneof_schema_2_validator: Optional[EvmAddressCriterion]
oneof_schema_3_validator: Optional[EvmNetworkCriterion]
to_dict()

Returns the dict representation of the actual instance

Return type:

Union[Dict[str, Any], EthValueCriterion, EvmAddressCriterion, EvmNetworkCriterion, None]

to_json()

Returns the JSON representation of the actual instance

Return type:

str

to_str()

Returns the string representation of the actual instance

Return type:

str

cdp.openapi_client.models.send_evm_transaction_request module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.send_evm_transaction_request.SendEvmTransactionRequest(**data)

Bases: BaseModel

classmethod from_dict(obj)

Create an instance of SendEvmTransactionRequest from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of SendEvmTransactionRequest from a JSON string

Return type:

Optional[Self]

model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

network: StrictStr
classmethod network_validate_enum(value)

Validates the enum

to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True): :rtype: Dict[str, Any]

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

to_json()

Returns the JSON representation of the model using alias

Return type:

str

to_str()

Returns the string representation of the model using alias

Return type:

str

transaction: StrictStr

cdp.openapi_client.models.send_evm_transaction_rule module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.send_evm_transaction_rule.SendEvmTransactionRule(**data)

Bases: BaseModel

action: StrictStr
classmethod action_validate_enum(value)

Validates the enum

criteria: List[SendEvmTransactionCriteriaInner]
classmethod from_dict(obj)

Create an instance of SendEvmTransactionRule from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of SendEvmTransactionRule from a JSON string

Return type:

Optional[Self]

model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

operation: StrictStr
classmethod operation_validate_enum(value)

Validates the enum

to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True): :rtype: Dict[str, Any]

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

to_json()

Returns the JSON representation of the model using alias

Return type:

str

to_str()

Returns the string representation of the model using alias

Return type:

str

cdp.openapi_client.models.send_user_operation_request module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.send_user_operation_request.SendUserOperationRequest(**data)

Bases: BaseModel

classmethod from_dict(obj)

Create an instance of SendUserOperationRequest from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of SendUserOperationRequest from a JSON string

Return type:

Optional[Self]

model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

signature: StrictStr
to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True): :rtype: Dict[str, Any]

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

to_json()

Returns the JSON representation of the model using alias

Return type:

str

to_str()

Returns the string representation of the model using alias

Return type:

str

cdp.openapi_client.models.sign_evm_hash200_response module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.sign_evm_hash200_response.SignEvmHash200Response(**data)

Bases: BaseModel

classmethod from_dict(obj)

Create an instance of SignEvmHash200Response from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of SignEvmHash200Response from a JSON string

Return type:

Optional[Self]

model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

signature: StrictStr
to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True): :rtype: Dict[str, Any]

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

to_json()

Returns the JSON representation of the model using alias

Return type:

str

to_str()

Returns the string representation of the model using alias

Return type:

str

cdp.openapi_client.models.sign_evm_hash_request module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.sign_evm_hash_request.SignEvmHashRequest(**data)

Bases: BaseModel

classmethod from_dict(obj)

Create an instance of SignEvmHashRequest from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of SignEvmHashRequest from a JSON string

Return type:

Optional[Self]

hash: StrictStr
model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True): :rtype: Dict[str, Any]

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

to_json()

Returns the JSON representation of the model using alias

Return type:

str

to_str()

Returns the string representation of the model using alias

Return type:

str

cdp.openapi_client.models.sign_evm_message200_response module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.sign_evm_message200_response.SignEvmMessage200Response(**data)

Bases: BaseModel

classmethod from_dict(obj)

Create an instance of SignEvmMessage200Response from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of SignEvmMessage200Response from a JSON string

Return type:

Optional[Self]

model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

signature: StrictStr
to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True): :rtype: Dict[str, Any]

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

to_json()

Returns the JSON representation of the model using alias

Return type:

str

to_str()

Returns the string representation of the model using alias

Return type:

str

cdp.openapi_client.models.sign_evm_message_request module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.sign_evm_message_request.SignEvmMessageRequest(**data)

Bases: BaseModel

classmethod from_dict(obj)

Create an instance of SignEvmMessageRequest from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of SignEvmMessageRequest from a JSON string

Return type:

Optional[Self]

message: StrictStr
model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True): :rtype: Dict[str, Any]

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

to_json()

Returns the JSON representation of the model using alias

Return type:

str

to_str()

Returns the string representation of the model using alias

Return type:

str

cdp.openapi_client.models.sign_evm_transaction200_response module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.sign_evm_transaction200_response.SignEvmTransaction200Response(**data)

Bases: BaseModel

classmethod from_dict(obj)

Create an instance of SignEvmTransaction200Response from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of SignEvmTransaction200Response from a JSON string

Return type:

Optional[Self]

model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

signed_transaction: StrictStr
to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True): :rtype: Dict[str, Any]

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

to_json()

Returns the JSON representation of the model using alias

Return type:

str

to_str()

Returns the string representation of the model using alias

Return type:

str

cdp.openapi_client.models.sign_evm_transaction_criteria_inner module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.sign_evm_transaction_criteria_inner.SignEvmTransactionCriteriaInner(*args, **kwargs)

Bases: BaseModel

actual_instance: Optional[Union[EthValueCriterion, EvmAddressCriterion]]
classmethod actual_instance_must_validate_oneof(v)
classmethod from_dict(obj)
Return type:

Self

classmethod from_json(json_str)

Returns the object represented by the json string

Return type:

Self

model_config: ClassVar[ConfigDict] = {'protected_namespaces': (), 'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

one_of_schemas: Set[str]
oneof_schema_1_validator: Optional[EthValueCriterion]
oneof_schema_2_validator: Optional[EvmAddressCriterion]
to_dict()

Returns the dict representation of the actual instance

Return type:

Union[Dict[str, Any], EthValueCriterion, EvmAddressCriterion, None]

to_json()

Returns the JSON representation of the actual instance

Return type:

str

to_str()

Returns the string representation of the actual instance

Return type:

str

cdp.openapi_client.models.sign_evm_transaction_request module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.sign_evm_transaction_request.SignEvmTransactionRequest(**data)

Bases: BaseModel

classmethod from_dict(obj)

Create an instance of SignEvmTransactionRequest from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of SignEvmTransactionRequest from a JSON string

Return type:

Optional[Self]

model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True): :rtype: Dict[str, Any]

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

to_json()

Returns the JSON representation of the model using alias

Return type:

str

to_str()

Returns the string representation of the model using alias

Return type:

str

transaction: StrictStr

cdp.openapi_client.models.sign_evm_transaction_rule module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.sign_evm_transaction_rule.SignEvmTransactionRule(**data)

Bases: BaseModel

action: StrictStr
classmethod action_validate_enum(value)

Validates the enum

criteria: List[SignEvmTransactionCriteriaInner]
classmethod from_dict(obj)

Create an instance of SignEvmTransactionRule from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of SignEvmTransactionRule from a JSON string

Return type:

Optional[Self]

model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

operation: StrictStr
classmethod operation_validate_enum(value)

Validates the enum

to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True): :rtype: Dict[str, Any]

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

to_json()

Returns the JSON representation of the model using alias

Return type:

str

to_str()

Returns the string representation of the model using alias

Return type:

str

cdp.openapi_client.models.sign_evm_typed_data200_response module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.sign_evm_typed_data200_response.SignEvmTypedData200Response(**data)

Bases: BaseModel

classmethod from_dict(obj)

Create an instance of SignEvmTypedData200Response from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of SignEvmTypedData200Response from a JSON string

Return type:

Optional[Self]

model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

signature: StrictStr
to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True): :rtype: Dict[str, Any]

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

to_json()

Returns the JSON representation of the model using alias

Return type:

str

to_str()

Returns the string representation of the model using alias

Return type:

str

cdp.openapi_client.models.sign_sol_transaction_criteria_inner module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.sign_sol_transaction_criteria_inner.SignSolTransactionCriteriaInner(*args, **kwargs)

Bases: BaseModel

actual_instance: Optional[Union[SolAddressCriterion]]
classmethod actual_instance_must_validate_oneof(v)
classmethod from_dict(obj)
Return type:

Self

classmethod from_json(json_str)

Returns the object represented by the json string

Return type:

Self

model_config: ClassVar[ConfigDict] = {'protected_namespaces': (), 'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

one_of_schemas: Set[str]
oneof_schema_1_validator: Optional[SolAddressCriterion]
to_dict()

Returns the dict representation of the actual instance

Return type:

Union[Dict[str, Any], SolAddressCriterion, None]

to_json()

Returns the JSON representation of the actual instance

Return type:

str

to_str()

Returns the string representation of the actual instance

Return type:

str

cdp.openapi_client.models.sign_sol_transaction_rule module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.sign_sol_transaction_rule.SignSolTransactionRule(**data)

Bases: BaseModel

action: StrictStr
classmethod action_validate_enum(value)

Validates the enum

criteria: List[SignSolTransactionCriteriaInner]
classmethod from_dict(obj)

Create an instance of SignSolTransactionRule from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of SignSolTransactionRule from a JSON string

Return type:

Optional[Self]

model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

operation: StrictStr
classmethod operation_validate_enum(value)

Validates the enum

to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True): :rtype: Dict[str, Any]

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

to_json()

Returns the JSON representation of the model using alias

Return type:

str

to_str()

Returns the string representation of the model using alias

Return type:

str

cdp.openapi_client.models.sign_solana_message200_response module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.sign_solana_message200_response.SignSolanaMessage200Response(**data)

Bases: BaseModel

classmethod from_dict(obj)

Create an instance of SignSolanaMessage200Response from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of SignSolanaMessage200Response from a JSON string

Return type:

Optional[Self]

model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

signature: StrictStr
to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True): :rtype: Dict[str, Any]

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

to_json()

Returns the JSON representation of the model using alias

Return type:

str

to_str()

Returns the string representation of the model using alias

Return type:

str

cdp.openapi_client.models.sign_solana_message_request module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.sign_solana_message_request.SignSolanaMessageRequest(**data)

Bases: BaseModel

classmethod from_dict(obj)

Create an instance of SignSolanaMessageRequest from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of SignSolanaMessageRequest from a JSON string

Return type:

Optional[Self]

message: StrictStr
model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True): :rtype: Dict[str, Any]

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

to_json()

Returns the JSON representation of the model using alias

Return type:

str

to_str()

Returns the string representation of the model using alias

Return type:

str

cdp.openapi_client.models.sign_solana_transaction200_response module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.sign_solana_transaction200_response.SignSolanaTransaction200Response(**data)

Bases: BaseModel

classmethod from_dict(obj)

Create an instance of SignSolanaTransaction200Response from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of SignSolanaTransaction200Response from a JSON string

Return type:

Optional[Self]

model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

signed_transaction: StrictStr
to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True): :rtype: Dict[str, Any]

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

to_json()

Returns the JSON representation of the model using alias

Return type:

str

to_str()

Returns the string representation of the model using alias

Return type:

str

cdp.openapi_client.models.sign_solana_transaction_request module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.sign_solana_transaction_request.SignSolanaTransactionRequest(**data)

Bases: BaseModel

classmethod from_dict(obj)

Create an instance of SignSolanaTransactionRequest from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of SignSolanaTransactionRequest from a JSON string

Return type:

Optional[Self]

model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True): :rtype: Dict[str, Any]

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

to_json()

Returns the JSON representation of the model using alias

Return type:

str

to_str()

Returns the string representation of the model using alias

Return type:

str

transaction: StrictStr

cdp.openapi_client.models.sol_address_criterion module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.sol_address_criterion.SolAddressCriterion(**data)

Bases: BaseModel

The criterion for the recipient addresses of a Solana transaction.

addresses: List[Annotated[str, Field(strict=True)]]
classmethod from_dict(obj)

Create an instance of SolAddressCriterion from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of SolAddressCriterion from a JSON string

Return type:

Optional[Self]

model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

operator: StrictStr
classmethod operator_validate_enum(value)

Validates the enum

to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True): :rtype: Dict[str, Any]

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

to_json()

Returns the JSON representation of the model using alias

Return type:

str

to_str()

Returns the string representation of the model using alias

Return type:

str

type: StrictStr
classmethod type_validate_enum(value)

Validates the enum

cdp.openapi_client.models.solana_account module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.solana_account.SolanaAccount(**data)

Bases: BaseModel

address: Annotated[str, Field(strict=True)]
classmethod address_validate_regular_expression(value)

Validates the regular expression

classmethod from_dict(obj)

Create an instance of SolanaAccount from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of SolanaAccount from a JSON string

Return type:

Optional[Self]

model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: Optional[Annotated[str, Field(strict=True)]]
classmethod name_validate_regular_expression(value)

Validates the regular expression

policies: Optional[List[Annotated[str, Field(strict=True)]]]
to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True): :rtype: Dict[str, Any]

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

to_json()

Returns the JSON representation of the model using alias

Return type:

str

to_str()

Returns the string representation of the model using alias

Return type:

str

cdp.openapi_client.models.token module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.token.Token(**data)

Bases: BaseModel

General information about a token. Includes the type, the network, and other identifying information.

contract_address: Annotated[str, Field(strict=True)]
classmethod contract_address_validate_regular_expression(value)

Validates the regular expression

classmethod from_dict(obj)

Create an instance of Token from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of Token from a JSON string

Return type:

Optional[Self]

model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: Optional[StrictStr]
network: ListEvmTokenBalancesNetwork
symbol: Optional[StrictStr]
to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True): :rtype: Dict[str, Any]

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

to_json()

Returns the JSON representation of the model using alias

Return type:

str

to_str()

Returns the string representation of the model using alias

Return type:

str

cdp.openapi_client.models.token_amount module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.token_amount.TokenAmount(**data)

Bases: BaseModel

Amount of a given token.

amount: Annotated[str, Field(strict=True)]
classmethod amount_validate_regular_expression(value)

Validates the regular expression

decimals: StrictInt
classmethod from_dict(obj)

Create an instance of TokenAmount from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of TokenAmount from a JSON string

Return type:

Optional[Self]

model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True): :rtype: Dict[str, Any]

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

to_json()

Returns the JSON representation of the model using alias

Return type:

str

to_str()

Returns the string representation of the model using alias

Return type:

str

cdp.openapi_client.models.token_balance module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.token_balance.TokenBalance(**data)

Bases: BaseModel

amount: TokenAmount
classmethod from_dict(obj)

Create an instance of TokenBalance from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of TokenBalance from a JSON string

Return type:

Optional[Self]

model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True): :rtype: Dict[str, Any]

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

to_json()

Returns the JSON representation of the model using alias

Return type:

str

to_str()

Returns the string representation of the model using alias

Return type:

str

token: Token

cdp.openapi_client.models.update_evm_account_request module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.update_evm_account_request.UpdateEvmAccountRequest(**data)

Bases: BaseModel

account_policy: Optional[Annotated[str, Field(strict=True)]]
classmethod account_policy_validate_regular_expression(value)

Validates the regular expression

classmethod from_dict(obj)

Create an instance of UpdateEvmAccountRequest from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of UpdateEvmAccountRequest from a JSON string

Return type:

Optional[Self]

model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: Optional[Annotated[str, Field(strict=True)]]
classmethod name_validate_regular_expression(value)

Validates the regular expression

to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True): :rtype: Dict[str, Any]

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

to_json()

Returns the JSON representation of the model using alias

Return type:

str

to_str()

Returns the string representation of the model using alias

Return type:

str

cdp.openapi_client.models.update_policy_request module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.update_policy_request.UpdatePolicyRequest(**data)

Bases: BaseModel

description: Optional[Annotated[str, Field(strict=True)]]
classmethod description_validate_regular_expression(value)

Validates the regular expression

classmethod from_dict(obj)

Create an instance of UpdatePolicyRequest from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of UpdatePolicyRequest from a JSON string

Return type:

Optional[Self]

model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

rules: List[Rule]
to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True): :rtype: Dict[str, Any]

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

to_json()

Returns the JSON representation of the model using alias

Return type:

str

to_str()

Returns the string representation of the model using alias

Return type:

str

cdp.openapi_client.models.update_solana_account_request module

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class cdp.openapi_client.models.update_solana_account_request.UpdateSolanaAccountRequest(**data)

Bases: BaseModel

account_policy: Optional[Annotated[str, Field(strict=True)]]
classmethod account_policy_validate_regular_expression(value)

Validates the regular expression

classmethod from_dict(obj)

Create an instance of UpdateSolanaAccountRequest from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of UpdateSolanaAccountRequest from a JSON string

Return type:

Optional[Self]

model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: Optional[Annotated[str, Field(strict=True)]]
classmethod name_validate_regular_expression(value)

Validates the regular expression

to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True): :rtype: Dict[str, Any]

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

to_json()

Returns the JSON representation of the model using alias

Return type:

str

to_str()

Returns the string representation of the model using alias

Return type:

str

Module contents

Coinbase Developer Platform APIs

The Coinbase Developer Platform APIs - leading the world’s transition onchain.

The version of the OpenAPI document: 2.0.0 Contact: cdp@coinbase.com Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.