string
required
Unique identifier for a given organization.
array
required
A list of smart contract interfaces.
Show smartContractInterfaces details
Show smartContractInterfaces details
curl --request POST \
--url https://api.turnkey.com/public/v1/query/list_smart_contract_interfaces \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header "X-Stamp: <string> (see Authorizations)" \
--data '{
"organizationId": "<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().getSmartContractInterfaces({
organizationId: "<string> (Unique identifier for a given organization.)"
});
{
"smartContractInterfaces": [
{
"organizationId": "<string>",
"smartContractInterfaceId": "<string>",
"smartContractAddress": "<string>",
"smartContractInterface": "<string>",
"type": "<string>",
"label": "<string>",
"notes": "<string>",
"createdAt": {
"seconds": "<string>",
"nanos": "<string>"
},
"updatedAt": {
"seconds": "<string>",
"nanos": "<string>"
}
}
]
}