Last updated
Was this helpful?
If your server application (most likely on Linux) language supports FFI to C, it is possible to call wallet core.
Here is a step by step example using cgo, with the Wallet Core docker image.
Run docker run -it trustwallet/wallet-core The library is already built in this image (Build instructions here). Note: may not be the most recent version.
Install Go: apt-get update && apt-get install golang-go
A complete Go sample application is available at samples/go in the repository. It uses a tw/core wrapper package over the CGo bindings. Build and run it:
cd samples/go && go build -o main && ./mainYou might want to copy and run main outside of the docker container; make sure you have libstdc++6 and libc++abi1 installed on your host Ubuntu.
Install the package from NPM:
npm install @trustwallet/wallet-coreA TypeScript sample application is available at samples/node in the repository. Check wasm/tests for further API usage examples.
Last updated
Was this helpful?
Was this helpful?