> For the complete documentation index, see [llms.txt](https://developer.trustwallet.com/developer/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.trustwallet.com/developer/wallet-core/integration-guide/server-side.md).

# Server-Side

If your server application (most likely on Linux) language supports [FFI](https://en.wikipedia.org/wiki/Foreign_function_interface) to C, it is possible to call wallet core.

## Go

Here is a step by step example using [cgo](https://golang.org/cmd/cgo/), with the Wallet Core docker image.

1. Run `docker run -it trustwallet/wallet-core` The library is already built in this image (Build instructions [here](/developer/wallet-core/developing-the-library/building.md)). Note: may not be the most recent version.
2. Install Go: `apt-get update && apt-get install golang-go`
3. A complete Go sample application is available at [`samples/go`](https://github.com/trustwallet/wallet-core/tree/master/samples/go) in the repository. It uses a `tw/core` wrapper package over the CGo bindings. Build and run it:

```shell
cd samples/go && go build -o main && ./main
```

4. You 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.

## Node.js

1. Install the package from NPM:

```shell
npm install @trustwallet/wallet-core
```

2. A TypeScript sample application is available at [`samples/node`](https://github.com/trustwallet/wallet-core/tree/master/samples/node) in the repository. Check [wasm/tests](https://github.com/trustwallet/wallet-core/tree/master/wasm/tests) for further API usage examples.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://developer.trustwallet.com/developer/wallet-core/integration-guide/server-side.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
