fetch_redstone_feed_contract
Documentation for eth_defi.tokenised_fund.securitize.redstone.fetch_redstone_feed_contract function.
- fetch_redstone_feed_contract(web3, feed)
Create a contract proxy for a reviewed RedStone push feed.
- Parameters
web3 (web3.main.Web3) – Connection to
feed.chain_id.feed (eth_defi.tokenised_fund.securitize.redstone.RedstoneSecuritizeFeed) – Reviewed Securitize feed configuration.
- Returns
Chainlink-compatible feed contract.
- Raises
ValueError – If the connection is for a different chain.
- Return type
web3.contract.contract.Contract