Can a hosted node support calling only whitelisted smart-contracts?

Viewed 72

I tried to calling only whitelisted smart-contracts with a hosted node support.

I used the >dry-run API. But seems that not work. I will be grateful for any recommendation on what to solve this problem.

p.s. Smart-contracts are written on aeternity's Sophia language.

Thank you in advance!

2 Answers

Not sure what you mean by whitelisted smart contracts. I think on two ways, in one hand you can have your own whitelisting contracts where you say which one are the contracts address list you will support.

On the other hand you could just know which caller address is the right one for those contracts.

There is a good example for whitelisting oracles on superhero implementation here:

https://github.com/aeternity/tipping-oracle-service/blob/master/contracts/OracleService.aes

Even though it's not a contract lists the concept behind is the same.

Related