Getting Contract Id inside the contract

Hi there, Just curious if contract Id can be accessed inside the contract, e.g. I’m writing a choice which creates a new contract. I want to pass the contract Id to the create contract so that the new one can fetch and access the data inside this contract. Is it possible?

You can use self to get access to the contract id of the contract.

3 Likes