Build

Dock provides a Substrate node and a Javascript SDK. Dock's mainnet provides support for:

  1. Decentralized Identity (DID) in compliance with W3C

  2. Verifiable Credentials in compliance with W3C

  3. Credential schema using the JSON schema standard

  4. Revocation registries to facilitate credential revocation

  5. Proof of existence anchors

Connecting to the networks

To use the SDK either run a node locally by cloning it from Github or connect to the testnet's Websocket RPC endpoint. To make writes to the testnet, request tokens from the Faucet. To connect to the mainnet, the Websocket RCP endpoint is wss://mainnet-node.dock.io. The custom types for the chain can be found in the SDK repo here or the node repo here and need to be provided if using polkadot-js directly. The SDK by default uses these types. Also when using polkadot-js directly, try to keep the version the same as the SDK, it can be seen in the dependencies in package.json.

The block explorer can be seen here. By default, it connects to the mainnet but you can switch the networks using the switcher from top left corner. The explorer can be used to look for transactions by transaction hash from the search box here and look for blocks by block hash or block number from the search box here.