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:
-
The
createClient
method can be initialized with an object containing the parametersdragonchainId: <ID>
,authKey: <KEY>
,authKeyId: <KEY_ID>
, andendpoint: <URL>
-
The environment variables
DRAGONCHAIN_ID
,AUTH_KEY
,AUTH_KEY_ID
, andDRAGONCHAIN_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 forauth_key
,auth_key_id
, andendpoint
. Additionally, you can supply a value fordragonchain_id
in thedefault
section 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.