C#
Core SDK - C#
The XpansionChain Core SDK provides convenient access to XpansionChain's APIs and smart contracts to help projects build better web3 games and marketplaces.
💡ROLLUPS THIS SDK SUPPORTS
XpansionChain
CONTENTS
Implementation roadmap
Installation
Initialization
Get data
API autogenerated code
Further documentation
📚SDK LINKS
SDK reference
Package reference
Code examples
Github repository
Changelog
⚠️THE C# CORE SDK IS CURRENTLY READ-ONLY
These are the endpoints supported and their read functionality (from this Changelog entry):
Assets:
Get
andList
Balances:
Get
andList
Collections:
Get
,List
, andList
with filtersExchanges:
Get
andList
Metadata:
Get
Mints:
Get
andList
NFT Checkout Primary:
Get
andList
transactions,Get
currenciesDeposits:
Get
andList
Withdrawals:
Get
andList
Transfers:
Get
andList
Trades:
Get
andList
Orders:
Get
andList
Users:
Get
Tokens:
Get
andList
Implementation roadmap
Installation
Add the following nuget packages:
https://www.nuget.org/packages/Imx.Sdk
https://www.nuget.org/packages/Imx.Sdk.Gen
Initialization
Initialize the Core SDK client with the network on which you want your application to run (see all networks available):
Select one of the following Ethereum networks XpansionChain platform currently supports.
Sandbox
The default test network (currently, it is Goërli)
Mainnet
Ethereum network
Get data
These methods allow you to read data about events, transactions or current state on XpansionChain (layer 2). They do not require any user authentication because no state is being changed.
Examples of the types of data that are typically retrieved include:
Assets or details of a particular asset
Token balances for a particular user
Orders or details about a particular order
Historical trades and transfers
Examples
Get all collections and get assets from a particular collection:
API autogenerated code
We use OpenAPI (formally known as Swagger) to auto-generate the API clients that connect to the public APIs. The OpenAPI spec is retrieved from https://api.x.XpansionChain.com/openapi and also saved in the repo.
To re-generate the API client, run:
Changelog management
This repository is using release-it to manage the CHANGELOG.md.
The following headings should be used as appropriate
Added
Changed
Deprecated
Removed
Fixed
This is an example with all the change headings. For actual usage, use only the one heading that is relevant. This goes at the top of the CHANGELOG.md above the most recent release.
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