KrypCore Web3
PlatformSupportSDK
  • 👋Welcome to Krypcore Web3
  • Introduction
    • Overview
    • Product Architecture
    • Supported Networks
  • Product Overview
    • Key Concepts
    • Unified SDK / APIs
      • Benefits of a Unified Model
      • KrypCore Web3 SDK
      • KrypCore Web3 APIs
    • Infrastructure
      • Blockchain Endpoints
        • Adding network to Metamask
      • Storage Endpoints
      • DID Service Endpoints
    • Core Services
      • Wallets
        • Choosing the right wallet for your Dapp
        • Custodial Wallet
        • Self Managed Wallet
        • MPC Wallet
        • Developer Wallet
        • Smart Contract Wallet
      • Smart Contracts
        • Deploy from Templates
          • Templates Explained
            • ERC 20
            • ERC 721
            • ERC 1155
            • ERC20DAO Token
            • TokenERC20
        • Deploy your own contract
        • Deploy Contract
        • Load Contract
      • NFT
        • Creating a collection
        • Minting NFTs
      • FT
        • Creating an ERC-20 token
      • DIDs
      • Storage
    • Add on Services
      • Datalake
      • Gasless
        • Integration Steps
        • Considerations and Best Practices
  • API Reference
    • KCW3 APIs Explained
    • Infrastructure APIs
      • Ethereum JSON RPC APIs
        • eth_accounts
        • eth_blockNumber
        • eth_call
        • eth_chainId
        • eth_estimateGas
        • eth_feeHistory
        • eth_gasPrice
        • eth_getBalance
        • eth_getBlockByHash
        • eth_getBlockByNumber
        • eth_getBlockReceipts
        • eth_getBlockTransactionCountByHash
        • eth_getBlockTransactionCountByNumber
        • eth_getCode
        • eth_getFilterChanges
        • eth_getFilterLogs
        • eth_getLogs
        • eth_getProof
        • eth_getStorageAt
        • eth_getTransactionByBlockHashAndIndex
        • eth_getTransactionByBlockNumberAndIndex
        • eth_getTransactionByHash
        • eth_getTransactionCount
        • eth_getTransactionReceipt
        • eth_getUncleCountByBlockHash
        • eth_getUncleCountByBlockNumber
        • eth_hashrate
        • eth_maxPriorityFeePerGas
        • eth_mining
        • eth_newBlockFilter
        • eth_newFilter
        • eth_newPendingTransactionFilter
        • eth_signTransaction
        • eth_syncing
        • eth_uninstallFilter
        • eth_unsubscribe
        • eth_sendRawTransaction
        • net_listening
        • net_peerCount
        • net_version
        • txpool_content
        • txpool_inspect
        • txpool_status
        • web3_clientVersion
        • web3_sha3
      • IPFS HTTP Client APIs
        • How to
        • HTTP API methods
          • add
          • block_get
          • block_stat
          • cat
          • dag_get
          • dag_import
          • dag_put
          • dag_resolve
          • get
          • pin_add
          • pin_ls
          • pin_rm
          • pin_update
          • version
          • block_put
    • Core Service APIs
      • Wallet Manager APIs
        • Self Managed Wallet
          • Setup SM Wallet
          • Create Wallet
          • Get Wallet balance
          • Sign Message
          • Verifies Signature off chain
          • Deploy Contract
          • Submit Transaction
          • Estimating Gas Price
          • Call Contract Method
          • Sign and Submit Gasless Transaction
        • Developer Wallet
          • Generate Keys
          • Deploy Contract
          • Call Contract
          • Get Balance
          • Sign And Submit Gasless Txn
          • Create And Execute Txn
          • Sign EIP712 Txn
          • Verify Signature OffChain
          • Sign Message
          • Sign TxHash
          • Estimate Gas
        • Smart Contract Wallet APIs
          • Create Wallet
          • Get All SC Wallet Details
          • GenerateUserOp
          • SubmitUserOp
      • DID Manager APIs
        • Create issuer Profile
        • Create Subject Profile
        • Create Verifiable Credentials
        • Create Verifiable Presentation
        • List Issuer Profile
        • List Subject Profile
        • List Verifiable Credential
        • List Verifiable Credential Templates
        • Verify Verifiable Credential
        • Revoke Verifiable Credential
        • Delete Issuer Profile
        • Resolve DID
      • NFT Studio APIs
        • Create NFT Collection
        • Get all NFT Collections details created by a user
        • Get a NFT collection details created by a user
        • Mint NFT
        • Get all Minted NFT details in a smart contract
      • FT Manager APIs
        • Create ERC20Token
        • Get all Fungible Token details created by user
        • Get a Fungible Token details created by user
        • Mint ERC20 Token
        • Approve ERC20Token
        • Transfer ERC20 Token
        • Burn ERC20Token
        • Get Total Supply
        • Get Balance of an user address
      • Storage Manager APIs
        • Upload file to IPFS Storage
        • Get File Details
        • Download Files from IPFS
        • Update Pin status
      • Gasless API
        • Get Transaction Payload
        • Send Transaction
        • Create Gas Request
        • Add Whitelisted Contract Linked to DApp
        • List All Whitelisted Contracts
        • List All Protocol Configs
        • List All Funded Transactions
        • Update Configured Gas Limit
        • Deactivate Whitelisted Contract
        • Get Protocol Config using userId and ChainId
        • Sign And Submit Gasless Txn Using (Dev wallet)
        • Sign And Submit Gasless Txn Using (kms wallet)
    • Add On APIs
      • Gasless Transactions APIs
      • Datalake APIs
  • SDK Reference
    • Getting Started
    • SDK Architecture
    • Wrapper Packages
    • Power Methods
      • Wallet Suite
      • Utils Suite
    • Core Service Methods
      • Custodial Wallet Kit
      • DID Kit
      • NFT Kit
      • FT Kit
      • Storage Kit
  • faq
    • Platform FAQs
    • API FAQs
    • SDK FAQs
  • Releases
    • Latest Updates
    • Release Notes v1.0.0 Beta
    • Release Notes v1.0.0
Powered by GitBook
On this page
  • API Specification
  • Verify Verifiable Credential

Was this helpful?

  1. API Reference
  2. Core Service APIs
  3. DID Manager APIs

Verify Verifiable Credential

This method lists the available Verifiable Credential Templates. The weightage for this API is 1

API Specification

Verify Verifiable Credential

POST https://api.krypcore.com/api/v0/did/verifyVC

To Verify Verifiable Credential under the given instance.

Headers

Name
Type
Description

Authorization*

String

User Auth Key obtained from Dash

DappId*

String

DappId

Request Body

Name
Type
Description

credentialId*

String

credential Id

policy*

String

policy

{
    "Data": [{
        "mutable": true,
        "name": "PermanentResidentCard",
        "template": null
    }, {
        "mutable": false,
        "name": "DataConsortium",
        "template": null
    }, {
        "mutable": true,
        "name": "KycCredential",
        "template": null
    }, {
        "mutable": true,
        "name": "AmletCredential",
        "template": null
    }, {
        "mutable": true,
        "name": "VerifiablePresentation",
        "template": null
    }, {
        "mutable": true,
        "name": "ParticipantCredential",
        "template": null
    }, {
        "mutable": true,
        "name": "Email",
        "template": null
    }, {
        "mutable": false,
        "name": "EbsiVerifiableAccreditationToAccredit",
        "template": null
    }, {
        "mutable": true,
        "name": "UniversityDegree",
        "template": null
    }, {
        "mutable": false,
        "name": "KybMonoCredential",
        "template": null
    }, {
        "mutable": false,
        "name": "StatusList2021Credential",
        "template": null
    }, {
        "mutable": false,
        "name": "EbsiVerifiableAttestationLegal",
        "template": null
    }, {
        "mutable": true,
        "name": "VerifiableId",
        "template": null
    }, {
        "mutable": true,
        "name": "StudentId",
        "template": null
    }, {
        "mutable": false,
        "name": "VerifiableAttestation",
        "template": null
    }, {
        "mutable": false,
        "name": "EbsiEuropass",
        "template": null
    }, {
        "mutable": false,
        "name": "KybCredential",
        "template": null
    }, {
        "mutable": false,
        "name": "Europass",
        "template": null
    }, {
        "mutable": false,
        "name": "ProofOfResidence",
        "template": null
    }, {
        "mutable": false,
        "name": "EbsiAccreditedVerifiableAttestation",
        "template": null
    }, {
        "mutable": false,
        "name": "LegalPerson",
        "template": null
    }, {
        "mutable": false,
        "name": "VerifiableVaccinationCertificate",
        "template": null
    }, {
        "mutable": false,
        "name": "Iso27001Certificate",
        "template": null
    }, {
        "mutable": false,
        "name": "VerifiableMandate",
        "template": null
    }, {
        "mutable": false,
        "name": "EbsiVerifiableAttestationGeneric",
        "template": null
    }, {
        "mutable": false,
        "name": "GaiaxCredential",
        "template": null
    }, {
        "mutable": false,
        "name": "EbsiVerifiableAttestationPerson",
        "template": null
    }, {
        "mutable": false,
        "name": "EbsiDiplomaVerifiableAccreditation",
        "template": null
    }, {
        "mutable": true,
        "name": "VerifiableAuthorization",
        "template": null
    }, {
        "mutable": true,
        "name": "VerifiableDiploma",
        "template": null
    }, {
        "mutable": true,
        "name": "DataSelfDescription",
        "template": null
    }, {
        "mutable": false,
        "name": "NEOM/StudentCard",
        "template": null
    }, {
        "mutable": false,
        "name": "DataServiceOffering",
        "template": null
    }, {
        "mutable": false,
        "name": "DeqarReport",
        "template": null
    }, {
        "mutable": false,
        "name": "PeerReview",
        "template": null
    }, {
        "mutable": false,
        "name": "OpenBadgeCredential",
        "template": null
    }, {
        "mutable": false,
        "name": "EuropeanBankIdentity",
        "template": null
    }, {
        "mutable": true,
        "name": "ServiceOfferingCredential",
        "template": null
    }],
    "Message": "",
    "Status": "SUCCESS"
}

Take a look at how you might call this method using our official libraries, or via curl:

curl --location 'https://api.krypcore.com/api/v0/did/verifyVC' \
--header 'Authorization: xxxxxxxxxxxxxx' \
--header 'DappId: xxxxxxxxxxxxxx' \
--header 'Content-Type: application/json' \
--data '{
  "credentialId": "string",
  "policy": "string"
}'
const axios = require('axios');
let data = JSON.stringify({
  "credentialId": "string",
  "policy": "string"
});

let config = {
  method: 'post',
  maxBodyLength: Infinity,
  url: 'https://api.krypcore.com/api/v0/did/verifyVC',
  headers: { 
    'Authorization': 'xxxxxxxxxxxxxx', 
    'DappId': 'xxxxxxxxxxxxxx', 
    'Content-Type': 'application/json'
  },
  data : data
};

axios.request(config)
.then((response) => {
  console.log(JSON.stringify(response.data));
})
.catch((error) => {
  console.log(error);
});
import requests
import json

url = "https://api.krypcore.com/api/v0/did/verifyVC"

payload = json.dumps({
  "credentialId": "string",
  "policy": "string"
})
headers = {
  'Authorization': 'xxxxxxxxxxxxxx',
  'DappId': 'xxxxxxxxxxxxxx',
  'Content-Type': 'application/json'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)
package main

import (
  "fmt"
  "strings"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://api.krypcore.com/api/v0/did/verifyVC"
  method := "POST"

  payload := strings.NewReader(`{
  "credentialId": "string",
  "policy": "string"
}`)

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
  req.Header.Add("Authorization", "xxxxxxxxxxxxxx")
  req.Header.Add("DappId", "xxxxxxxxxxxxxx")
  req.Header.Add("Content-Type", "application/json")

  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}

PreviousList Verifiable Credential TemplatesNextRevoke Verifiable Credential

Last updated 1 year ago

Was this helpful?