cdp.openapi_client.models package

Submodules

cdp.openapi_client.models.abi_function 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.abi_function.AbiFunction(**data)

Bases: BaseModel

ABI function type for contract functions.

constant: Optional[StrictBool]
classmethod from_dict(obj)

Create an instance of AbiFunction from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of AbiFunction from a JSON string

Return type:

Optional[Self]

gas: Optional[StrictInt]
inputs: List[AbiParameter]
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: StrictStr
outputs: List[AbiParameter]
payable: Optional[StrictBool]
state_mutability: AbiStateMutability
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.abi_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.abi_inner.AbiInner(*args, **kwargs)

Bases: BaseModel

actual_instance: Optional[Union[AbiFunction, AbiInput]]
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[AbiFunction]
oneof_schema_2_validator: Optional[AbiInput]
to_dict()

Returns the dict representation of the actual instance

Return type:

Union[Dict[str, Any], AbiFunction, AbiInput, 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.abi_input 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.abi_input.AbiInput(**data)

Bases: BaseModel

Generic ABI item type encapsulating all other types besides function.

additional_properties: Optional[Any]
classmethod from_dict(obj)

Create an instance of AbiInput from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of AbiInput 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

type: StrictStr
classmethod type_validate_enum(value)

Validates the enum

cdp.openapi_client.models.abi_parameter 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.abi_parameter.AbiParameter(**data)

Bases: BaseModel

Parameter definition for ABI functions, errors, and constructors.

components: Optional[List[AbiParameter]]
classmethod from_dict(obj)

Create an instance of AbiParameter from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of AbiParameter from a JSON string

Return type:

Optional[Self]

internal_type: Optional[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].

name: 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

type: StrictStr

cdp.openapi_client.models.abi_state_mutability 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.abi_state_mutability.AbiStateMutability(value)

Bases: str, Enum

State mutability of a function in Solidity.

NONPAYABLE = 'nonpayable'
PAYABLE = 'payable'
PURE = 'pure'
VIEW = 'view'
classmethod from_json(json_str)

Create an instance of AbiStateMutability from a JSON string

Return type:

Self

cdp.openapi_client.models.common_swap_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.common_swap_response.CommonSwapResponse(**data)

Bases: BaseModel

block_number: Annotated[str, Field(strict=True)]
classmethod block_number_validate_regular_expression(value)

Validates the regular expression

fees: CommonSwapResponseFees
from_amount: Annotated[str, Field(strict=True)]
classmethod from_amount_validate_regular_expression(value)

Validates the regular expression

classmethod from_dict(obj)

Create an instance of CommonSwapResponse from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of CommonSwapResponse from a JSON string

Return type:

Optional[Self]

from_token: Annotated[str, Field(strict=True)]
classmethod from_token_validate_regular_expression(value)

Validates the regular expression

issues: CommonSwapResponseIssues
liquidity_available: StrictBool
min_to_amount: Annotated[str, Field(strict=True)]
classmethod min_to_amount_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].

to_amount: Annotated[str, Field(strict=True)]
classmethod to_amount_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

to_token: Annotated[str, Field(strict=True)]
classmethod to_token_validate_regular_expression(value)

Validates the regular expression

cdp.openapi_client.models.common_swap_response_fees 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.common_swap_response_fees.CommonSwapResponseFees(**data)

Bases: BaseModel

The estimated fees for the swap.

classmethod from_dict(obj)

Create an instance of CommonSwapResponseFees from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of CommonSwapResponseFees from a JSON string

Return type:

Optional[Self]

gas_fee: Optional[TokenFee]
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].

protocol_fee: Optional[TokenFee]
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.common_swap_response_issues 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.common_swap_response_issues.CommonSwapResponseIssues(**data)

Bases: BaseModel

An object containing potential issues discovered during validation that could prevent the swap from being executed successfully.

allowance: Optional[CommonSwapResponseIssuesAllowance]
balance: Optional[CommonSwapResponseIssuesBalance]
classmethod from_dict(obj)

Create an instance of CommonSwapResponseIssues from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of CommonSwapResponseIssues 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].

simulation_incomplete: StrictBool
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.common_swap_response_issues_allowance 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.common_swap_response_issues_allowance.CommonSwapResponseIssuesAllowance(**data)

Bases: BaseModel

Details of the allowances that the taker must set in order to execute the swap successfully. Null if no allowance is required.

current_allowance: Annotated[str, Field(strict=True)]
classmethod current_allowance_validate_regular_expression(value)

Validates the regular expression

classmethod from_dict(obj)

Create an instance of CommonSwapResponseIssuesAllowance from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of CommonSwapResponseIssuesAllowance 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].

spender: Annotated[str, Field(strict=True)]
classmethod spender_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.common_swap_response_issues_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.common_swap_response_issues_balance.CommonSwapResponseIssuesBalance(**data)

Bases: BaseModel

Details of the balance of the fromToken that the taker must hold. Null if the taker has a sufficient balance.

current_balance: Annotated[str, Field(strict=True)]
classmethod current_balance_validate_regular_expression(value)

Validates the regular expression

classmethod from_dict(obj)

Create an instance of CommonSwapResponseIssuesBalance from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of CommonSwapResponseIssuesBalance 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].

required_balance: Annotated[str, Field(strict=True)]
classmethod required_balance_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

token: Annotated[str, Field(strict=True)]
classmethod token_validate_regular_expression(value)

Validates the regular expression

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

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 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].

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.create_evm_swap_quote_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_swap_quote_request.CreateEvmSwapQuoteRequest(**data)

Bases: BaseModel

from_amount: Annotated[str, Field(strict=True)]
classmethod from_amount_validate_regular_expression(value)

Validates the regular expression

classmethod from_dict(obj)

Create an instance of CreateEvmSwapQuoteRequest from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of CreateEvmSwapQuoteRequest from a JSON string

Return type:

Optional[Self]

from_token: Annotated[str, Field(strict=True)]
classmethod from_token_validate_regular_expression(value)

Validates the regular expression

gas_price: Optional[Annotated[str, Field(strict=True)]]
classmethod gas_price_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].

network: EvmSwapsNetwork
signer_address: Optional[Annotated[str, Field(strict=True)]]
classmethod signer_address_validate_regular_expression(value)

Validates the regular expression

slippage_bps: Optional[Annotated[int, Field(le=10000, strict=True, ge=0)]]
taker: Annotated[str, Field(strict=True)]
classmethod taker_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

to_token: Annotated[str, Field(strict=True)]
classmethod to_token_validate_regular_expression(value)

Validates the regular expression

cdp.openapi_client.models.create_payment_transfer_quote201_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.create_payment_transfer_quote201_response.CreatePaymentTransferQuote201Response(**data)

Bases: BaseModel

classmethod from_dict(obj)

Create an instance of CreatePaymentTransferQuote201Response from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of CreatePaymentTransferQuote201Response 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

transfer: Transfer

cdp.openapi_client.models.create_payment_transfer_quote_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_payment_transfer_quote_request.CreatePaymentTransferQuoteRequest(**data)

Bases: BaseModel

amount: StrictStr
currency: StrictStr
execute: Optional[StrictBool]
classmethod from_dict(obj)

Create an instance of CreatePaymentTransferQuoteRequest from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of CreatePaymentTransferQuoteRequest 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].

source: TransferSource
source_type: StrictStr
classmethod source_type_validate_enum(value)

Validates the enum

target: TransferTarget
target_type: StrictStr
classmethod target_type_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_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

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 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.create_swap_quote_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.create_swap_quote_response.CreateSwapQuoteResponse(**data)

Bases: BaseModel

block_number: Annotated[str, Field(strict=True)]
classmethod block_number_validate_regular_expression(value)

Validates the regular expression

fees: CommonSwapResponseFees
from_amount: Annotated[str, Field(strict=True)]
classmethod from_amount_validate_regular_expression(value)

Validates the regular expression

classmethod from_dict(obj)

Create an instance of CreateSwapQuoteResponse from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of CreateSwapQuoteResponse from a JSON string

Return type:

Optional[Self]

from_token: Annotated[str, Field(strict=True)]
classmethod from_token_validate_regular_expression(value)

Validates the regular expression

issues: CommonSwapResponseIssues
liquidity_available: StrictBool
min_to_amount: Annotated[str, Field(strict=True)]
classmethod min_to_amount_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].

permit2: Optional[CreateSwapQuoteResponseAllOfPermit2]
to_amount: Annotated[str, Field(strict=True)]
classmethod to_amount_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

to_token: Annotated[str, Field(strict=True)]
classmethod to_token_validate_regular_expression(value)

Validates the regular expression

transaction: CreateSwapQuoteResponseAllOfTransaction

cdp.openapi_client.models.create_swap_quote_response_all_of_permit2 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_swap_quote_response_all_of_permit2.CreateSwapQuoteResponseAllOfPermit2(**data)

Bases: BaseModel

The approval object which contains the necessary fields to submit an approval for this transaction. Null if the fromToken is the native token or the transaction is a native token wrap / unwrap.

eip712: EIP712Message
classmethod from_dict(obj)

Create an instance of CreateSwapQuoteResponseAllOfPermit2 from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of CreateSwapQuoteResponseAllOfPermit2 from a JSON string

Return type:

Optional[Self]

hash: Annotated[str, Field(strict=True)]
classmethod hash_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].

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_swap_quote_response_all_of_transaction 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_swap_quote_response_all_of_transaction.CreateSwapQuoteResponseAllOfTransaction(**data)

Bases: BaseModel

The details of the transaction to be signed and submitted to execute the swap.

data: StrictStr
classmethod from_dict(obj)

Create an instance of CreateSwapQuoteResponseAllOfTransaction from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of CreateSwapQuoteResponseAllOfTransaction from a JSON string

Return type:

Optional[Self]

gas: Annotated[str, Field(strict=True)]
gas_price: Annotated[str, Field(strict=True)]
classmethod gas_price_validate_regular_expression(value)

Validates the regular expression

classmethod gas_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].

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: Annotated[str, Field(strict=True)]
classmethod value_validate_regular_expression(value)

Validates the regular expression

cdp.openapi_client.models.create_swap_quote_response_wrapper 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_swap_quote_response_wrapper.CreateSwapQuoteResponseWrapper(*args, **kwargs)

Bases: BaseModel

A wrapper for the response of a swap quote operation.

actual_instance: Optional[Union[CreateSwapQuoteResponse, SwapUnavailableResponse]]
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[CreateSwapQuoteResponse]
oneof_schema_2_validator: Optional[SwapUnavailableResponse]
to_dict()

Returns the dict representation of the actual instance

Return type:

Union[Dict[str, Any], CreateSwapQuoteResponse, SwapUnavailableResponse, 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.crypto_rail 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.crypto_rail.CryptoRail(**data)

Bases: BaseModel

The crypto rails available.

actions: List[PaymentRailAction]
currency: StrictStr
classmethod from_dict(obj)

Create an instance of CryptoRail from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of CryptoRail 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: StrictStr
networks: List[CryptoRailNetworksInner]
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.crypto_rail_address 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.crypto_rail_address.CryptoRailAddress(**data)

Bases: BaseModel

The crypto rail input object which specifies the symbol, network, and address which is the source or destination wallet address.

address: StrictStr
currency: StrictStr
classmethod from_dict(obj)

Create an instance of CryptoRailAddress from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of CryptoRailAddress 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
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.crypto_rail_networks_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.crypto_rail_networks_inner.CryptoRailNetworksInner(**data)

Bases: BaseModel

The networks of the asset.

chain_id: Optional[StrictInt]
contract_address: Optional[StrictStr]
classmethod from_dict(obj)

Create an instance of CryptoRailNetworksInner from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of CryptoRailNetworksInner 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]
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.

ACCOUNT_LIMIT_EXCEEDED = 'account_limit_exceeded'
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'
PAYMENT_METHOD_REQUIRED = 'payment_method_required'
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

created_at: Optional[datetime]
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

updated_at: Optional[datetime]

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_data_condition 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_data_condition.EvmDataCondition(**data)

Bases: BaseModel

A single condition to apply against the function and encoded arguments in the transaction’s data field. Each parameter configuration must be successfully evaluated against the corresponding function argument in order for a policy to be accepted.

classmethod from_dict(obj)

Create an instance of EvmDataCondition from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of EvmDataCondition from a JSON string

Return type:

Optional[Self]

function: 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].

params: Optional[List[EvmDataConditionParamsInner]]
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_data_condition_params_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.evm_data_condition_params_inner.EvmDataConditionParamsInner(*args, **kwargs)

Bases: BaseModel

A list of parameter conditions to apply against encoded arguments in the transaction’s data field.

actual_instance: Optional[Union[EvmDataParameterCondition, EvmDataParameterConditionList]]
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[EvmDataParameterCondition]
oneof_schema_2_validator: Optional[EvmDataParameterConditionList]
to_dict()

Returns the dict representation of the actual instance

Return type:

Union[Dict[str, Any], EvmDataParameterCondition, EvmDataParameterConditionList, 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.evm_data_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_data_criterion.EvmDataCriterion(**data)

Bases: BaseModel

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

abi: EvmDataCriterionAbi
conditions: List[EvmDataCondition]
classmethod from_dict(obj)

Create an instance of EvmDataCriterion from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of EvmDataCriterion 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

type: StrictStr
classmethod type_validate_enum(value)

Validates the enum

cdp.openapi_client.models.evm_data_criterion_abi 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_data_criterion_abi.EvmDataCriterionAbi(*args, **kwargs)

Bases: BaseModel

The ABI of the smart contract being called. This can be a partial structure with only specific functions.

actual_instance: Optional[Union[KnownAbiType, List[AbiInner]]]
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[KnownAbiType]
oneof_schema_2_validator: Optional[List[AbiInner]]
to_dict()

Returns the dict representation of the actual instance

Return type:

Union[Dict[str, Any], KnownAbiType, List[AbiInner], 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.evm_data_parameter_condition 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_data_parameter_condition.EvmDataParameterCondition(**data)

Bases: BaseModel

classmethod from_dict(obj)

Create an instance of EvmDataParameterCondition from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of EvmDataParameterCondition 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: StrictStr
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

value: StrictStr

cdp.openapi_client.models.evm_data_parameter_condition_list 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_data_parameter_condition_list.EvmDataParameterConditionList(**data)

Bases: BaseModel

classmethod from_dict(obj)

Create an instance of EvmDataParameterConditionList from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of EvmDataParameterConditionList 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: StrictStr
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

values: List[StrictStr]

cdp.openapi_client.models.evm_message_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_message_criterion.EvmMessageCriterion(**data)

Bases: BaseModel

A schema for specifying a criterion for the message being signed.

classmethod from_dict(obj)

Create an instance of EvmMessageCriterion from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of EvmMessageCriterion from a JSON string

Return type:

Optional[Self]

match: 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

type: StrictStr
classmethod type_validate_enum(value)

Validates the enum

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

created_at: Optional[datetime]
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

updated_at: Optional[datetime]

cdp.openapi_client.models.evm_swaps_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.evm_swaps_network.EvmSwapsNetwork(value)

Bases: str, Enum

The network on which to perform the swap.

BASE = 'base'
ETHEREUM = 'ethereum'
classmethod from_json(json_str)

Create an instance of EvmSwapsNetwork from a JSON string

Return type:

Self

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.export_evm_account200_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.export_evm_account200_response.ExportEvmAccount200Response(**data)

Bases: BaseModel

encrypted_private_key: StrictStr
classmethod from_dict(obj)

Create an instance of ExportEvmAccount200Response from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of ExportEvmAccount200Response 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.export_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.export_evm_account_request.ExportEvmAccountRequest(**data)

Bases: BaseModel

export_encryption_key: StrictStr
classmethod from_dict(obj)

Create an instance of ExportEvmAccountRequest from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of ExportEvmAccountRequest 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.export_solana_account200_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.export_solana_account200_response.ExportSolanaAccount200Response(**data)

Bases: BaseModel

encrypted_private_key: StrictStr
classmethod from_dict(obj)

Create an instance of ExportSolanaAccount200Response from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of ExportSolanaAccount200Response 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.fee 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.fee.Fee(**data)

Bases: BaseModel

The fee for the transfer.

amount: StrictStr
currency: StrictStr
description: Optional[StrictStr]
classmethod from_dict(obj)

Create an instance of Fee from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of Fee 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

type: StrictStr
classmethod type_validate_enum(value)

Validates the enum

cdp.openapi_client.models.get_swap_price_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.get_swap_price_response.GetSwapPriceResponse(**data)

Bases: BaseModel

block_number: Annotated[str, Field(strict=True)]
classmethod block_number_validate_regular_expression(value)

Validates the regular expression

fees: CommonSwapResponseFees
from_amount: Annotated[str, Field(strict=True)]
classmethod from_amount_validate_regular_expression(value)

Validates the regular expression

classmethod from_dict(obj)

Create an instance of GetSwapPriceResponse from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of GetSwapPriceResponse from a JSON string

Return type:

Optional[Self]

from_token: Annotated[str, Field(strict=True)]
classmethod from_token_validate_regular_expression(value)

Validates the regular expression

gas: Optional[Annotated[str, Field(strict=True)]]
gas_price: Annotated[str, Field(strict=True)]
classmethod gas_price_validate_regular_expression(value)

Validates the regular expression

classmethod gas_validate_regular_expression(value)

Validates the regular expression

issues: CommonSwapResponseIssues
liquidity_available: StrictBool
min_to_amount: Annotated[str, Field(strict=True)]
classmethod min_to_amount_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].

to_amount: Annotated[str, Field(strict=True)]
classmethod to_amount_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

to_token: Annotated[str, Field(strict=True)]
classmethod to_token_validate_regular_expression(value)

Validates the regular expression

cdp.openapi_client.models.get_swap_price_response_wrapper 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.get_swap_price_response_wrapper.GetSwapPriceResponseWrapper(*args, **kwargs)

Bases: BaseModel

A wrapper for the response of a swap price operation.

actual_instance: Optional[Union[GetSwapPriceResponse, SwapUnavailableResponse]]
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[GetSwapPriceResponse]
oneof_schema_2_validator: Optional[SwapUnavailableResponse]
to_dict()

Returns the dict representation of the actual instance

Return type:

Union[Dict[str, Any], GetSwapPriceResponse, SwapUnavailableResponse, 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.import_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.import_evm_account_request.ImportEvmAccountRequest(**data)

Bases: BaseModel

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

Validates the regular expression

encrypted_private_key: StrictStr
classmethod from_dict(obj)

Create an instance of ImportEvmAccountRequest from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of ImportEvmAccountRequest 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.known_abi_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.known_abi_type.KnownAbiType(value)

Bases: str, Enum

A reference to an established EIP standard. When referencing a KnownAbiType within a policy rule configuring an EvmDataCriterion, criteria will only decode function data officially documented in the standard. For more information on supported token standards, see the links below. - [erc20 - Token Standard](https://eips.ethereum.org/EIPS/eip-20). - [erc721 - Non-Fungible Token Standard](https://eips.ethereum.org/EIPS/eip-721). - [erc1155 - Multi Token Standard](https://eips.ethereum.org/EIPS/eip-1155).

ERC1155 = 'erc1155'
ERC20 = 'erc20'
ERC721 = 'erc721'
classmethod from_json(json_str)

Create an instance of KnownAbiType from a JSON string

Return type:

Self

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'
ETHEREUM = 'ethereum'
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.payment_method 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.payment_method.PaymentMethod(**data)

Bases: BaseModel

The fiat payment method object.

actions: List[PaymentRailAction]
currency: StrictStr
classmethod from_dict(obj)

Create an instance of PaymentMethod from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of PaymentMethod from a JSON string

Return type:

Optional[Self]

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

Validates the regular expression

limits: Optional[PaymentMethodLimits]
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

type: StrictStr
classmethod type_validate_enum(value)

Validates the enum

cdp.openapi_client.models.payment_method_limits 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.payment_method_limits.PaymentMethodLimits(**data)

Bases: BaseModel

The limits of the payment method.

classmethod from_dict(obj)

Create an instance of PaymentMethodLimits from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of PaymentMethodLimits 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].

source_limit: Optional[PaymentMethodLimitsSourceLimit]
target_limit: Optional[PaymentMethodLimitsTargetLimit]
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.payment_method_limits_source_limit 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.payment_method_limits_source_limit.PaymentMethodLimitsSourceLimit(**data)

Bases: BaseModel

The limit for this payment method being used as a source for transfers.

amount: Optional[StrictStr]
currency: Optional[StrictStr]
classmethod from_dict(obj)

Create an instance of PaymentMethodLimitsSourceLimit from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of PaymentMethodLimitsSourceLimit 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.payment_method_limits_target_limit 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.payment_method_limits_target_limit.PaymentMethodLimitsTargetLimit(**data)

Bases: BaseModel

The limit for this payment method being used as a target for transfers.

amount: Optional[StrictStr]
currency: Optional[StrictStr]
classmethod from_dict(obj)

Create an instance of PaymentMethodLimitsTargetLimit from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of PaymentMethodLimitsTargetLimit 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.payment_method_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.payment_method_request.PaymentMethodRequest(**data)

Bases: BaseModel

The fiat payment method request object.

classmethod from_dict(obj)

Create an instance of PaymentMethodRequest from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of PaymentMethodRequest 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].

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.payment_rail_action 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.payment_rail_action.PaymentRailAction(value)

Bases: str, Enum

The action of the payment method.

SOURCE = 'source'
TARGET = 'target'
classmethod from_json(json_str)

Create an instance of PaymentRailAction from a JSON string

Return type:

Self

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, SignEvmHashRule, SignEvmMessageRule, 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[SignEvmMessageRule]
oneof_schema_4_validator: Optional[SignSolTransactionRule]
oneof_schema_5_validator: Optional[SignEvmHashRule]
to_dict()

Returns the dict representation of the actual instance

Return type:

Union[Dict[str, Any], SendEvmTransactionRule, SignEvmHashRule, SignEvmMessageRule, 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, EvmDataCriterion, 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]
oneof_schema_4_validator: Optional[EvmDataCriterion]
to_dict()

Returns the dict representation of the actual instance

Return type:

Union[Dict[str, Any], EthValueCriterion, EvmAddressCriterion, EvmDataCriterion, 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_hash_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_hash_rule.SignEvmHashRule(**data)

Bases: BaseModel

action: StrictStr
classmethod action_validate_enum(value)

Validates the enum

classmethod from_dict(obj)

Create an instance of SignEvmHashRule from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of SignEvmHashRule 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_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_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_message_criteria_inner.SignEvmMessageCriteriaInner(*args, **kwargs)

Bases: BaseModel

actual_instance: Optional[Union[EvmMessageCriterion]]
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[EvmMessageCriterion]
to_dict()

Returns the dict representation of the actual instance

Return type:

Union[Dict[str, Any], EvmMessageCriterion, 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_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_message_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_message_rule.SignEvmMessageRule(**data)

Bases: BaseModel

action: StrictStr
classmethod action_validate_enum(value)

Validates the enum

criteria: List[SignEvmMessageCriteriaInner]
classmethod from_dict(obj)

Create an instance of SignEvmMessageRule from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of SignEvmMessageRule 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_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, EvmDataCriterion]]
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[EvmDataCriterion]
to_dict()

Returns the dict representation of the actual instance

Return type:

Union[Dict[str, Any], EthValueCriterion, EvmAddressCriterion, EvmDataCriterion, 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

created_at: Optional[datetime]
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

updated_at: Optional[datetime]

cdp.openapi_client.models.swap_unavailable_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.swap_unavailable_response.SwapUnavailableResponse(**data)

Bases: BaseModel

classmethod from_dict(obj)

Create an instance of SwapUnavailableResponse from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of SwapUnavailableResponse from a JSON string

Return type:

Optional[Self]

liquidity_available: StrictBool
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 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.token_fee 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_fee.TokenFee(**data)

Bases: BaseModel

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

Validates the regular expression

classmethod from_dict(obj)

Create an instance of TokenFee from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of TokenFee 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: Annotated[str, Field(strict=True)]
classmethod token_validate_regular_expression(value)

Validates the regular expression

cdp.openapi_client.models.transfer 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.transfer.Transfer(**data)

Bases: BaseModel

The transfer object.

created_at: StrictStr
fees: List[Fee]
classmethod from_dict(obj)

Create an instance of Transfer from a dict

Return type:

Optional[Self]

classmethod from_json(json_str)

Create an instance of Transfer 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].

source: TransferSource
source_amount: StrictStr
source_currency: StrictStr
source_type: StrictStr
classmethod source_type_validate_enum(value)

Validates the enum

status: StrictStr
classmethod status_validate_enum(value)

Validates the enum

target: TransferTarget
target_amount: StrictStr
target_currency: StrictStr
target_type: StrictStr
classmethod target_type_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[StrictStr]
updated_at: StrictStr
user_amount: StrictStr
user_currency: StrictStr

cdp.openapi_client.models.transfer_source 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.transfer_source.TransferSource(*args, **kwargs)

Bases: BaseModel

The source of the transfer.

actual_instance: Optional[Union[PaymentMethodRequest]]
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[PaymentMethodRequest]
to_dict()

Returns the dict representation of the actual instance

Return type:

Union[Dict[str, Any], PaymentMethodRequest, 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.transfer_target 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.transfer_target.TransferTarget(*args, **kwargs)

Bases: BaseModel

The target of the transfer.

actual_instance: Optional[Union[CryptoRailAddress]]
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[CryptoRailAddress]
to_dict()

Returns the dict representation of the actual instance

Return type:

Union[Dict[str, Any], CryptoRailAddress, 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.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.