Skip to main content
added 821 characters in body
Source Link
Mat.C
  • 176
  • 1
  • 1
  • 6

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.

i'm trying to make a read from a smart contract A on blockchain_a to a smart contract B on blockchain_b, for exmaple the smart contra B has a function getPlayerAddressesAndBalance and it should return some data like [[player1, 50]] and i want to read this data from the smart contract A on the blockchain_a.

of course is not possible normally but i thought that with oracles like chainlink it may be possible, but reading the chainlink docs i did not found what i was searching for. Did i miss something in the chainlink docs or there are other oracles that allows this?

I read chainlink CCIP but is not really what i'm searching for, i'd link just to make a read and get the result.

Also if that is possible with chainlk, what could it cost per call?

I'm trying to read data from Smart Contract B on Blockchain B using Smart Contract A on Blockchain A. For example, Smart Contract B has a function getPlayerAddressesAndBalance that returns data like [[player1, 50]]. I want to access this data from Smart Contract A on Blockchain A.

I understand this isn't typically possible, but I thought it might be achievable using oracles like Chainlink. However, after reviewing the Chainlink documentation, I didn't find a clear solution. Did I miss something in the Chainlink docs, or are there other oracles that support this functionality?

I looked into Chainlink CCIP, but it doesn't quite fit my needs. I'm looking for a solution to make a read and get the result.

Additionally, if this is possible with Chainlink, what would 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.

Source Link
Mat.C
  • 176
  • 1
  • 1
  • 6

Cross chain smart contract read

i'm trying to make a read from a smart contract A on blockchain_a to a smart contract B on blockchain_b, for exmaple the smart contra B has a function getPlayerAddressesAndBalance and it should return some data like [[player1, 50]] and i want to read this data from the smart contract A on the blockchain_a.

of course is not possible normally but i thought that with oracles like chainlink it may be possible, but reading the chainlink docs i did not found what i was searching for. Did i miss something in the chainlink docs or there are other oracles that allows this?

I read chainlink CCIP but is not really what i'm searching for, i'd link just to make a read and get the result.

Also if that is possible with chainlk, what could it cost per call?