You need to connect to an Aptos node to use this library, or run one yourself locally.
Docs can be found here
For Javascript or Typescript usage, check out the ./examples
folder with ready-made package.json
files
to get you going quickly!
If you are using the types in a commonjs
module, like in a Node app, you just have to enable esModuleInterop
and allowSyntheticDefaultImports
in your tsconfig
for types compatibility:
{
...
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"esModuleInterop": true
...
}
}
sudo apt-get update
sudo apt-get install nodejs yarn
Originally created with this:
$ npx swagger-typescript-api@latest -p ../../../api/doc/openapi.yaml -o ./src/api --modular --axios --single-http-client
http-client.ts
as the axios types are incomplete, that were fixed
via // @ts-ignore
yarn test
This project follows semver as closely as possible
Generated using TypeDoc