XpansionChain SDK - Typescript
XpansionChain SDK - Typescript
This SDK provides access to a wide range of features allowing you to integrate your game with key blockchain functionality.
💡ROLLUPS THIS SDK SUPPORTS
XpansionChain X
XpansionChain zkEVM
CONTENTS
Installation
Initialization
Further documentation
📚SDK LINKS
npm package
Installation
📋PREREQUISITES
Node v18 or higher
Ethers v6 or higher
Install the XpansionChain SDK
Run the following in the root directory of your project:
TROUBLESHOOTING
The XpansionChain SDK is still in alpha
. Should complications arise during the installation, please use the following commands to ensure the most recent release of the SDK is correctly installed:
Install Typescript dependencies:
Initialization
Each module of the XpansionChain SDK must be initialised with an instance of an XpansionChainConfiguration
. The XpansionChainConfiguration
defines configuration that is shared across modules, such as the current environment. An instance of an XpansionChainConfiguration
can be initialised as follows:
💡ENVIRONMENTS
The environment
argument can be one of the following:
Environment.SANDBOX
The default test network (currently, it is Goërli)
Environment.PRODUCTION
The Ethereum mainnet network
SDK modules can then be initialised as follows:
Further documentation
See the Developer homepage for general information on building on XpansionChain.
Build on XpansionChain zkEVM:
Documentation
API reference
Support
Build on XpansionChain:
Documentation
API reference
Support
Last updated