GetContractAddressFromTransactionID


Returns a smart contract address of 20 bytes. This is represented as a String.

NOTE: This only works for contract deployment transactions.

Example Request

curl -d '{
"id": "1",
"jsonrpc": "2.0",
"method": "GetContractAddressFromTransactionID",
"params": ["AAF3089596437A7C6984FA2627B6F38B5F5B80FAEAAC6993C2E82C6A8EE2615E"]
}' -H "Content-Type: application/json" -X POST "https://api.zilliqa.com/"

Example Response

{
"id": "1",
"jsonrpc": "2.0",
"result": "c458f39c106582c1a49bac6bc76ec603e2ae0497"
}

HTTP Request

Chain(s)URL(s)
Zilliqa mainnethttps://api.zilliqa.com/
Developer testnethttps://dev-api.zilliqa.com/
Local testnethttp://localhost:4201/
Isolated serverhttp://localhost:5555/

Arguments

ParameterTypeRequiredDescription
idstringRequired"1"
jsonrpcstringRequired"2.0"
methodstringRequired"GetSmartContracts"
paramsstringRequiredA Transaction ID of 32 bytes.
Example: "AAF3089596437A7C6984FA2627B6F38B5F5B80FAEAAC6993C2E82C6A8EE2615E"