Skip to content

ccxt/lighter-wasm

Repository files navigation

lighter binaries

Lighter Wasm required for working with Lighter in JS/TS and regular binaries in PY/PHP/CS

Compiled directly from https://github.com/elliottech/lighter-go

Check how to set it up here: https://github.com/ccxt/ccxt/wiki/FAQ#how-to-use-the-lighter-exchange-in-ccxt

  • CCXT is using the WASM binary built from the official package and it can be downloaded here or built from the source
  • You also need to provide the path to exec_wasm.js, you can either download it from the same repo or check the path to your local file (assuming Go is installed)

Example JS/TS

lighter = new ccxt.lighter({
	'options': {
		'libraryPath': '/user/cjg/Git/lighter-wasm/lighter.wasm',
		'wasmExecPath': '/opt/homebrew/opt/go/libexec/lib/wasm/wasm_exec.js'
	}
})

Example Python/C#/PHP

lighter = ccxt.lighter({
	'options': {
		'libraryPath': '/Users/cjg/Git/ccxt12/lighter-signer-darwin-arm64.dylib,
	}
})

Binaries can also be downloaded here: https://github.com/elliottech/lighter-python/tree/main/lighter/signers

If you need help or encounter any difficulties during the process, the CCXT team is ready to assist you.

About

Lighter Wasm/Binaries required for the CCXT integration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages