Skip to main content
Version: near-api-js@1.1.0

Interface: NearConfig

near.NearConfig

Hierarchy

Properties

headers

Optional headers: Object

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

See

JsonRpcProvider

Index signature

[key: string]: string | number

Defined in

near.ts:58


helperUrl

Optional helperUrl: string

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

See

UrlAccountCreator

Defined in

near.ts:29


initialBalance

Optional initialBalance: string

The balance transferred from the masterAccount to a created account

See

LocalAccountCreator

Defined in

near.ts:35


jsvmAccountId

Optional jsvmAccountId: string

JVSM account ID for NEAR JS SDK

Defined in

near.ts:69


keyStore

Optional keyStore: KeyStore

Holds KeyPairs for signing transactions

Defined in

near.ts:20


masterAccount

Optional masterAccount: string

The account to use when creating new accounts

See

LocalAccountCreator

Defined in

near.ts:41


networkId

networkId: string

KeyPairs are stored in a KeyStore under the networkId namespace.

Defined in

near.ts:46


nodeUrl

nodeUrl: string

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

See

JsonRpcProvider

Defined in

near.ts:52


walletUrl

Optional walletUrl: string

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

See

https://wallet.near.org/

Defined in

near.ts:64