cdp.spend_permissions package

Submodules

cdp.spend_permissions.constants module

Constants for Spend Permissions.

cdp.spend_permissions.types module

Types for Spend Permissions.

class cdp.spend_permissions.types.SpendPermission(**data)

Bases: BaseModel

A spend permission structure that defines authorization for spending tokens.

account: str
allowance: int
end: int
extra_data: str
model_config: ClassVar[ConfigDict] = {}

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

period: int
salt: int
spender: str
start: int
token: str

Module contents

Spend Permissions module for CDP SDK.

class cdp.spend_permissions.SpendPermission(**data)

Bases: BaseModel

A spend permission structure that defines authorization for spending tokens.

account: str
allowance: int
end: int
extra_data: str
model_config: ClassVar[ConfigDict] = {}

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

period: int
salt: int
spender: str
start: int
token: str