-
Notifications
You must be signed in to change notification settings - Fork 482
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation
Description
📚 Documentation
The AleoNetworkClient constructor parameters seems different from what the example is given and the constructor doesn't actually handle the account property at all.
Lines 27 to 34 in 63ffbf2
| * @example | |
| * // Connection to a local node. | |
| * const localNetworkClient = new AleoNetworkClient("http://0.0.0.0:3030", undefined, account); | |
| * | |
| * // Connection to a public beacon node | |
| * const account = Account.fromCiphertext(process.env.ciphertext, process.env.password); | |
| * const publicNetworkClient = new AleoNetworkClient("http://api.explorer.provable.com/v1", undefined, account); | |
| */ |
Lines 42 to 56 in 63ffbf2
| constructor(host: string, options?: AleoNetworkClientOptions) { | |
| this.host = host + "/%%NETWORK%%"; | |
| this.network = "%%NETWORK%%"; | |
| this.ctx = {}; | |
| if (options && options.headers) { | |
| this.headers = options.headers; | |
| } else { | |
| this.headers = { | |
| // This is replaced by the actual version by a Rollup plugin | |
| "X-Aleo-SDK-Version": "%%VERSION%%", | |
| "X-Aleo-environment" : environment(), | |
| }; | |
| } | |
| } |
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation