Is there any call to get the contract address inside it? I cant find anything like that in tvm
Is there any call to get the contract address inside it? I cant find anything like that in tvm
I assume you are inquiring about the programming language for Smart Contracts. Currently, you can opt for either FunC (https://ton.org/docs/develop/func) or Tact (https://docs.tact-lang.org/), both of which are human-readable languages used to build Smart Contracts.
Both of these languages offer a plugin module to display your current address, similar to `address(this)` in Solidity.
In FunC, you can [use](https://ton.org/docs/develop/func/stdlib/#my_address):
```Clike
slice my_address() asm "MYADDR";
```
In Tact, you can [use](https://docs.tact-lang.org/reference/common#myaddress):
```Rust
myAddress(): Address;
```
I am assuming you are asking in SmartContract programming language. For now, you can choose [FunC](https://ton.org/docs/develop/func) and [Tact](https://docs.tact-lang.org/) as the human readiable language now to build the smart contract.
They both have the plug-in to show your current address like `address(this)` in Solidity.
In FunC, you can [use](https://ton.org/docs/develop/func/stdlib/#my_address):
```Clike
slice my_address() asm "MYADDR";
```
In Tact, you can [use](https://docs.tact-lang.org/reference/common#myaddress):
```Rust
myAddress(): Address;
```
Is there any call to get the contract address inside it? I cant find anything like that in tvm
I am assuming you are asking in SmartContract programming language. For now, you can choose [FunC](https://ton.org/docs/develop/func) and [Tact](https://docs.tact-lang.org/) as the human readiable language now to build the smart contract.
They both have the plug-in to show your current address like `address(this)` in Solidity.
In FunC, you can [use](https://ton.org/docs/develop/func/stdlib/#my_address):
```Clike
slice my_address() asm "MYADDR";
```
In Tact, you can [use](https://docs.tact-lang.org/reference/common#myaddress):
```Rust
myAddress(): Address;
```