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"}}'
Arguments
- chainUId (String!): The unique identifier of the chain.
- type (String!): The type of the contract.
Returned Fields
Field | Type | Description |
---|---|---|
CreatedAt | String | The date and time when the contract was created. |
UpdatedAt | String | The date and time when the contract was last updated. |
ContractAddress | String | The address of the contract on the blockchain. |
ChainUID | String | The unique identifier of the chain where the contract is deployed. |
Type | String | The type of the contract. |