最后更新于23天前
根据合约地址和存储插槽索引获取存储值。
def get_storage(self, address: ChecksumAddress, slot_index: int) -> Optional[HexBytes]
# 获取存储值 storage = chain.get_storage("0x...", 0) if storage: print(f"Storage Value: {storage.hex()}")
address
ChecksumAddress
合约地址
slot_index
int
存储插槽索引
Optional[HexBytes]
存储值