interface ConnectConfig {
    deps?: {
        keyStore: KeyStore;
    };
    headers?: {
        [key: string]: string | number;
    };
    helperUrl?: string;
    initialBalance?: string;
    jsvmAccountId?: string;
    keyPath?: string;
    keyStore?: KeyStore;
    logger?: false | LoggerService;
    masterAccount?: string;
    networkId: string;
    nodeUrl: string;
    provider?: Provider;
    walletUrl?: string;
}

Hierarchy (view full)

Properties

deps?: {
    keyStore: KeyStore;
}

Backward-compatibility for older versions

Type declaration

headers?: {
    [key: string]: string | number;
}

NEAR RPC API headers. Can be used to pass API KEY and other parameters.

Type declaration

  • [key: string]: string | number
helperUrl?: string

NEAR Contract Helper url used to create accounts if no master account is provided

See

UrlAccountCreator

initialBalance?: string

The balance transferred from the NearConfig#masterAccount to a created account

See

LocalAccountCreator

jsvmAccountId?: string

JVSM account ID for NEAR JS SDK

keyPath?: string

Initialize an InMemoryKeyStore by reading the file at keyPath.

keyStore?: KeyStore

Holds KeyPair for signing transactions

logger?: false | LoggerService

Specifies the logger to use. Pass false to turn off logging.

masterAccount?: string

The account to use when creating new accounts

See

LocalAccountCreator

networkId: string

KeyPair are stored in a KeyStore under the networkId namespace.

nodeUrl: string

NEAR RPC API url. used to make JSON RPC calls to interact with NEAR.

provider?: Provider

Specifies NEAR RPC API connections, and is used to make JSON RPC calls to interact with NEAR

See

walletUrl?: string

NEAR wallet url used to redirect users to their wallet in browser applications.