- Node.js (v14+)
npm install -D aurora-is-near/aurora.js
"dependencies": {
"@aurora-is-near/engine": "git://github.com/aurora-is-near/aurora.js",
}
import Aurora from '@aurora-is-near/engine';
See the Aurora CLI source code for example usage.
The library will load the following local keys by default, if found:
-
$HOME/.near-credentials/*/*.json
: credentials stored by the NEAR CLI -
$HOME/.near/validator_key.json
: the localnearcore
validator key (for thetest.near
master account)