henesis wallet api proxy
npm install @haechi-labs/henesis-wallet-api-proxyAPI PROXYWe recommend using npm >= 7.20.6
``bash
npm run start # (with production environment)
Environment Vairables
`bash
CACHE_TTL=10 # cahcing time to live. default: 10 second
CACHE_MAX=100 # maximum caching items. default: 100 items
PORT=3000 # port to open. default: 3000
BUILD_SWAGGER=false # build swagger file and exit(swagger/swagger-spec.yaml), default: false
API_VERSION="" # specify api version(v2, v3). default: N/A(V2,V3 activate)
NODE_ENV="" # specify environment (test, local, development, production) default: production
MAINNET="" # specify v2 mainnet (ethereum,klaytn, bitcoin)
`Swagger
You can see swagger files in
packages/api-proxy/swagger. If you want to make a new swagger file based on your code, run npm run build:spec.How to format/lint
`bash
npm run eslint
npm run prettier
``