Skip to main content

Contracts

Queries contract information for the specified chain Id and Type.


query Contracts($chainUId: String!, $type: String!) {
chains {
contracts(chainUId: $chainUId, type: $type) {
CreatedAt
UpdatedAt
ContractAddress
ChainUID
Type
}
}
}

Example

curl --request POST \
--header 'content-type: application/json' \
--url 'https://api.euclidprotocol.com/graphql' \
--data '{"query":"query Contracts($chainUId: String!, $type: String!) {\n chains {\n contracts(chainUId: $chainUId, type: $type) {\n CreatedAt\n UpdatedAt\n ContractAddress\n ChainUID\n Type\n }\n }\n}","variables":{"chainUId":"vsl","type":"vlp"}}'

Open in Playground

Arguments

  • chainUId (String!): The unique identifier of the chain.
  • type (String!): The type of the contract.

Returned Fields

FieldTypeDescription
CreatedAtStringThe date and time when the contract was created.
UpdatedAtStringThe date and time when the contract was last updated.
ContractAddressStringThe address of the contract on the blockchain.
ChainUIDStringThe unique identifier of the chain where the contract is deployed.
TypeStringThe type of the contract.