MCPcopy Create free account
hub / github.com/ccxt/ccxt / initAuthObject

Method initAuthObject

js/src/lighter.js:406–421  ·  view source on GitHub ↗
(strAccountIndex, strApiKeyIndex)

Source from the content-addressed store, hash-verified

404 return signer;
405 }
406 initAuthObject(strAccountIndex, strApiKeyIndex) {
407 if (!('auths' in this.options)) {
408 this.options['auths'] = {};
409 }
410 if (!(strAccountIndex in this.options['auths'])) {
411 this.options['auths'][strAccountIndex] = {};
412 }
413 if (!(strApiKeyIndex in this.options['auths'][strAccountIndex])) {
414 this.options['auths'][strAccountIndex][strApiKeyIndex] = {
415 'signer': undefined,
416 'lighterPrivateKey': undefined,
417 'deadline': undefined,
418 'token': undefined,
419 };
420 }
421 }
422 getLighterPrivateKey(strAccountIndex, strApiKeyIndex) {
423 if (!('auths' in this.options)) {
424 return undefined;

Callers 2

loadAccountMethod · 0.95
preLoadLighterLibraryMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected