def __init__(self, account: Account, address: ChecksumAddress, abi: dict) -> None
from poseidon.evm import Chain, Account, Contract
# 连接到链并导入账户
chain = Chain("https://eth-mainnet.g.alchemy.com/v2/YOUR-API-KEY")
account = Account(chain, HexBytes("0x...")) # 你的私钥
# 实例化合约
contract_address = "0x..." # 合约地址
contract_abi = [...] # 合约 ABI
contract = Contract(account, contract_address, contract_abi)