docker volume rm chain-data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const util = require('util') | |
const nearApi = require('near-api-js') | |
const { connect, Contract, keyStores } = nearApi; | |
async function main() { | |
const homedir = require("os").homedir(); | |
const CREDENTIALS_DIR = ".near-credentials"; | |
const credentialsPath = require("path").join(homedir, CREDENTIALS_DIR); | |
const myKeyStore = new keyStores.UnencryptedFileSystemKeyStore(credentialsPath); |