i'mI'm trying to make a read data from a smart contract ASmart Contract B on blockchain_a to a smart contractBlockchain B using Smart Contract A on blockchain_bBlockchain A. For example, for exmaple the smart contraSmart Contract B has a function getPlayerAddressesAndBalance
and it should return somethat returns data like [[player1, 50]]
and i. I want to readaccess this data from the smart contractSmart Contract A on the blockchain_aBlockchain A.
of course is notI understand this isn't typically possible normally, but iI thought that with oracles like chainlink it maymight be possibleachievable using oracles like Chainlink. However, but readingafter reviewing the chainlink docs i did not found what i was searching forChainlink documentation, I didn't find a clear solution. Did i Did I miss something in the chainlinkChainlink docs, or there are there other oracles that allowssupport this functionality?
I read chainlinklooked into Chainlink CCIP, but is not really what i'm searchingit doesn't quite fit my needs. I'm looking for, i'd link just a solution to make a read and get the result.
AlsoAdditionally, if thatthis is possible with chainlkChainlink, what could itwould the cost per call be?
Details:
I need a mechanism to resolve disputes. The workflow would be:
- User_A calls a function on the smart contract on Chain_A, let's say
setUsername
. - User_B calls the contract on Chain_B, providing the username that User_A setted with the previous call.
- User_A has 1 minute to inform the Smart Contract on Chain_B if the username provided by User_B is incorrect.
- If a dispute arises, I want to read the actual username from Chain A through an oracle or some other means.
I only want to perform this read operation when necessary, to avoid unnecessary service fees, as disputes will be infrequent. Therefore, it's not practical for me to always call the Smart Contract on Chain_B through CCIP whenever a user interacts with setUsername
on Chain_A.