coinbase_agentkit.network package

Submodules

coinbase_agentkit.network.chain_definitions module

class coinbase_agentkit.network.chain_definitions.BlockExplorer(**data)

Bases: BaseModel

Represents a block explorer for a blockchain network.

api_url: str
model_config: ClassVar[ConfigDict] = {}

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

name: str
url: str
class coinbase_agentkit.network.chain_definitions.Chain(**data)

Bases: BaseModel

Represents a blockchain network.

block_explorers: dict[str, BlockExplorer]
contracts: dict[str, Contract]
id: str
model_config: ClassVar[ConfigDict] = {}

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

name: str
native_currency: NativeCurrency
network: str | None
rpc_urls: dict[str, RpcUrls]
testnet: bool | None
class coinbase_agentkit.network.chain_definitions.Contract(**data)

Bases: BaseModel

Represents a contract on a blockchain network.

address: str
block_created: int | None
model_config: ClassVar[ConfigDict] = {}

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

class coinbase_agentkit.network.chain_definitions.NativeCurrency(**data)

Bases: BaseModel

Represents the native currency for a blockchain network.

decimals: int
model_config: ClassVar[ConfigDict] = {}

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

name: str
symbol: str
class coinbase_agentkit.network.chain_definitions.RpcUrls(**data)

Bases: BaseModel

Represents the RPC URLs for a blockchain network.

http: list[str]
model_config: ClassVar[ConfigDict] = {}

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

coinbase_agentkit.network.network module

class coinbase_agentkit.network.network.Network(**data)

Bases: BaseModel

Represents a blockchain network.

chain_id: str | None
model_config: ClassVar[ConfigDict] = {}

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

network_id: str | None
protocol_family: str

Module contents

class coinbase_agentkit.network.Network(**data)

Bases: BaseModel

Represents a blockchain network.

chain_id: str | None
model_config: ClassVar[ConfigDict] = {}

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

network_id: str | None
protocol_family: str