OBJECT

Query

Query root

link GraphQL Schema definition

  • type Query {
  • # Get all approvers registered with the smart contract. RBAC [ADMIN_USER].
  • allApprovers: [ThorApproverDto]
  • # Get all Company details. RBAC [ADMIN_USER].
  • allCompanies: [CompanyDto]
  • # Get item details for all items. RBAC [STANDARD_USER].
  • allItems: [ItemDto]
  • # Get all Product details. RBAC [STANDARD_USER].
  • allProducts: [ProductDto]
  • # Get the details for all Sponsors of the smart contract. RBAC [ADMIN_USER].
  • allThorSponsors: [ThorSponsorDto]
  • # Get all the Users registered with the smart contract. RBAC [ADMIN_USER].
  • allThorUsers: [ThorUserDto]
  • # Get user details for all users in the Real Items system. RBAC [ADMIN_USER].
  • allUsers: [UserDto]
  • # Get all Vechain wallets. RBAC [ADMIN_USER].
  • allWallets: [WalletDto]
  • # Get the approver addresses for the specified range of items. RBAC [ADMIN_USER].
  • #
  • # Arguments
  • # count: Number of addresses to return.
  • # startId: Start index of first address.
  • approverAddresses(count: Int!, startId: Int!): [String]
  • # Return the approver keypair by item id. RBAC [SUPER_USER].
  • #
  • # Arguments
  • # id: The item id.
  • approverKeypairById(id: Int!): KeypairDto
  • # Get Company details by ID. RBAC [ADMIN_USER].
  • #
  • # Arguments
  • # id: Company ID.
  • companyById(id: Int!): CompanyDto
  • # Get Company by User ID. RBAC [ADMIN_USER].
  • #
  • # Arguments
  • # userId: User ID.
  • companyByUserId(userId: Int!): CompanyDto
  • # Get the Current Sponsor of the smart contract. RBAC [ADMIN_USER].
  • currentThorSponsor: ThorSponsorDto
  • # Decrypt an obfuscated item ID using the configured CUSTOMER_SALT variable. RBAC
  • # [STANDARD_USER].
  • #
  • # Arguments
  • # obfuscatedId: The obfusacted item ID.
  • deObfuscateId(obfuscatedId: String): Int!
  • # Deploy a new smart contract to the Vechain Blockchain. RBAC [SUPER_USER].
  • deployNewContract: Receipt
  • # Get a single item
  • #
  • # Arguments
  • # id: The ID of the item. RBAC [STANDARD_USER].
  • itemById(id: Int!): ItemDto
  • # Get a Product by ID. RBAC [STANDARD_USER].
  • #
  • # Arguments
  • # id: Product ID.
  • productById(id: Int!): ProductDto
  • # Get a Product by name. RBAC [STANDARD_USER].
  • #
  • # Arguments
  • # name: Name of the Product.
  • productByIdName(name: String): ProductDto
  • # Get item details for the specified range of items. RBAC [STANDARD_USER].
  • #
  • # Arguments
  • # count: Number of addresses to return.
  • # startId: Start index of first address.
  • rangeOfItems(count: Int!, startId: Int!): [ItemDto]
  • # Reconstitute the relation database from the items in the blockchain. RBAC
  • # [SUPER_USER
  • reconstituteDatabase: [ItemDto]
  • # Get the smart contract information. RBAC [ADMIN_USER].
  • thorContract: ThorContractDto
  • # Get the Credit information for the smart contract. RBAC [ADMIN_USER].
  • thorCredit: ThorCreditDto
  • # Get the details for a Sponsor of the smart contract. RBAC [ADMIN_USER].
  • #
  • # Arguments
  • # address: The VeChain address of the Sponsor.
  • thorSponsorByAddress(address: String): ThorSponsorDto
  • # Get all the Users registered with the smart contract. RBAC [ADMIN_USER].
  • #
  • # Arguments
  • # address:
  • thorUserByAddress(address: String): ThorUserDto
  • # Get user details for a user in the Real Items system. RBAC [ADMIN_USER].
  • #
  • # Arguments
  • # address: The VeChain address of the user.
  • userByAddress(address: String): UserDto
  • # Get user details for a user in the Real Items system. RBAC [ADMIN_USER].
  • #
  • # Arguments
  • # email: The email address of the user.
  • userByEmail(email: String): UserDto
  • # Get user details for a user in the Real Items system. RBAC [ADMIN_USER].
  • #
  • # Arguments
  • # id: The user ID of the user.
  • userById(id: Int!): UserDto
  • # Get a Vechain wallets for an address. RBAC [ADMIN_USER].
  • #
  • # Arguments
  • # address: The VeChain address.
  • walletByAddress(address: String): WalletDto
  • # Get all Vechain wallets for a user. RBAC [ADMIN_USER].
  • #
  • # Arguments
  • # userId: The ID of the user.
  • walletsById(userId: Int!): [WalletDto]
  • }

link Require by

This element is not required by anyone