Returns a smart contract address of 20 bytes. This is represented as a String
.
```shell
curl -d '{
"id": "1",
"jsonrpc": "2.0",
"method": "GetContractAddressFromTransactionID",
"params": ["AAF3089596437A7C6984FA2627B6F38B5F5B80FAEAAC6993C2E82C6A8EE2615E"]
}' -H "Content-Type: application/json" -X POST "https://zil.nownodes.io/"
```
```js
const contractAddress =
await zilliqa.blockchain.getContractAddressFromTransactionID(
"AAF3089596437A7C6984FA2627B6F38B5F5B80FAEAAC6993C2E82C6A8EE2615E"
);
console.log(contractAddress.result);
```
```java
public class App {
public static void main(String[] args) throws IOException {
HttpProvider client = new HttpProvider("https://zil.nownodes.io");
Rep<String> contractAddress = client.getContractAddressFromTransactionID("AAF3089596437A7C6984FA2627B6F38B5F5B80FAEAAC6993C2E82C6A8EE2615E");
System.out.println(new Gson().toJson(contractAddress));
}
}
```
```python
from pyzil.zilliqa import chain
chain.set_active_chain(chain.MainNet)
print(chain.active_chain.api.GetContractAddressFromTransactionID(
"AAF3089596437A7C6984FA2627B6F38B5F5B80FAEAAC6993C2E82C6A8EE2615E"
))
```
```go
func GetContractAddressFromTransactionID() {
provider := NewProvider("https://zil.nownodes.io/")
response := provider.GetContractAddressFromTransactionID("AAF3089596437A7C6984FA2627B6F38B5F5B80FAEAAC6993C2E82C6A8EE2615E")
result, _ := json.Marshal(response)
fmt.Println(string(result))
}
```
{
"id": "1",
"jsonrpc": "2.0",
"result": "c458f39c106582c1a49bac6bc76ec603e2ae0497"
}