DecentralChain (DCC) icon

DecentralChain (DCC)

Create, sign and broadcast DecentralChain transactions, plus query blockchain data

Overview

This node provides various operations to interact with the DecentralChain (DCC) blockchain ecosystem. Specifically, for the Utility resource and Generate Address operation, it generates a blockchain address derived from a given public key by querying the configured DCC node API.

This is useful when you have a public key and want to obtain the corresponding DCC address without manually computing it. For example, after generating or importing a public key externally, you can use this node to get the associated address to send or receive tokens on the DCC network.

Practical scenarios include:

  • Deriving an address from a public key during wallet creation or import.
  • Verifying that a public key corresponds to a valid address on the DCC blockchain.
  • Preparing transaction recipients by converting public keys to addresses.

Properties

Name Meaning
Base URL The base URL of the DCC node API to use if no credential is supplied. Defaults to https://nodes.decentralchain.io.
Public Key The public key string from which to derive the DCC address. This is required for the generate address operation.

Output

The output JSON contains the response from the DCC node API endpoint /addresses/publicKey/{publicKey}. This typically includes the generated address corresponding to the provided public key.

Example output structure (simplified):

{
  "address": "DCC1qxyz...abc",
  "publicKey": "base58-or-hex-encoded-public-key",
  "additionalInfo": { ... }
}

The exact fields depend on the DCC node API response but primarily provide the derived address.

No binary data output is produced by this operation.

Dependencies

  • Requires access to a DecentralChain node API endpoint, either via:
    • An API credential providing a base URL, or
    • A manually specified Base URL parameter.
  • The node uses HTTP requests to communicate with the DCC node API.
  • No other external services or environment variables are strictly required for this operation.

Troubleshooting

  • Invalid Public Key: If the public key is malformed or invalid, the API may return an error or empty result. Ensure the public key is correctly formatted and complete.
  • Network Issues: Failure to reach the specified Base URL will cause request errors. Verify network connectivity and correct Base URL configuration.
  • Missing Credentials: If credentials are expected but not supplied, the node falls back to the Base URL parameter. Make sure one of these is properly set.
  • API Errors: The node surfaces API error messages in the output. Review these messages for clues about issues such as rate limits, invalid parameters, or server errors.

Links and References

Discussion