POST
/
public
/
v1
/
query
/
get_smart_contract_interface
Authorizations
Body
string
required
Unique identifier for a given organization.
string
required
Unique identifier for a given smart contract interface.
Response
A successful response returns the following fields:object
required
smartContractInterface field
Show smartContractInterface details
Show smartContractInterface details
The Organization the Smart Contract Interface belongs to.
Unique identifier for a given Smart Contract Interface (ABI or IDL).
The address corresponding to the Smart Contract or Program.
The JSON corresponding to the Smart Contract Interface (ABI or IDL).
The type corresponding to the Smart Contract Interface (either ETHEREUM or SOLANA).
The label corresponding to the Smart Contract Interface (either ETHEREUM or SOLANA).
The notes corresponding to the Smart Contract Interface (either ETHEREUM or SOLANA).
curl --request POST \
--url https://api.turnkey.com/public/v1/query/get_smart_contract_interface \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header "X-Stamp: <string> (see Authorizations)" \
--data '{
"organizationId": "<string>",
"smartContractInterfaceId": "<string>"
}'
import { Turnkey } from "@turnkey/sdk-server";
const turnkeyClient = new Turnkey({
apiBaseUrl: "https://api.turnkey.com",
apiPublicKey: process.env.API_PUBLIC_KEY!,
apiPrivateKey: process.env.API_PRIVATE_KEY!,
defaultOrganizationId: process.env.ORGANIZATION_ID!,
});
const response = await turnkeyClient.apiClient().getSmartContractInterface({
organizationId: "<string> (Unique identifier for a given organization.)",
smartContractInterfaceId: "<string> (Unique identifier for a given smart contract interface.)"
});
{
"smartContractInterface": {
"organizationId": "<string>",
"smartContractInterfaceId": "<string>",
"smartContractAddress": "<string>",
"smartContractInterface": "<string>",
"type": "<string>",
"label": "<string>",
"notes": "<string>",
"createdAt": {
"seconds": "<string>",
"nanos": "<string>"
},
"updatedAt": {
"seconds": "<string>",
"nanos": "<string>"
}
}
}