Skip to content
CCPEDIAby Unity Nodes
App Development

Getting Contract Id inside the contract

2 posts208 views3 likesLast activity Jun 2022

  1. FrankieOP

    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?

  2. cocreature 3

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