Dragonchain Dart SDK
Talk to your dragonchain.
In order to use this SDK, you need to have an Auth Key as well as an Auth Key ID for a given Dragonchain ID. It is also strongly suggested that you supply an endpoint locally so that a remote service isn't called to automatically discover your dragonchain endpoint. These can be loaded into the sdk in various ways, and are checked in the following order of precedence:
createClientmethod can be initialized with an object containing the parameters
authKeyId: <KEY_ID>, and
The environment variables
DRAGONCHAIN_ENDPOINT, can be set with the appropriate values
An ini-style credentials file can be provided at
~/.dragonchain/credentials(or on Windows:
%LOCALAPPDATA%\dragonchain\credentials) where the section name is the dragonchain id, with values for
endpoint. Additionally, you can supply a value for
defaultsection to initialize the client for a specific chain without supplying an ID any other way
[default] dragonchain_id = c2dffKwiGj6AGg4zHkNswgEcyHeQaGr4Cm5SzsFVceVv [c2dffKwiGj6AGg4zHkNswgEcyHeQaGr4Cm5SzsFVceVv] auth_key_id = JSDMWFUJDVTC auth_key = n3hlldsFxFdP2De0yMu6A4MFRh1HGzFvn6rJ0ICZzkE endpoint = https://35a7371c-a20a-4830-9a59-5d654fcd0a4a.api.dragonchain.com [28VhSgtPhwkhKBgmQSW6vrsir7quEYHdCjqsW6aAYbfrw] auth_key_id = OGNHGLYIFVUA auth_key = aS73Si7agvX9gfxnLMh6ack9DEuidKiwQxkqBudXl81 endpoint = https://28567017-6412-44b6-80b2-12876fb3d4f5.api.dragonchain.com
Dragonchain is happy to welcome contributions from the community. You can get started here.