Register new Chain
Up to date
Here are the steps needed to make to add a new chain. Please, do not skip any of them!
Add the chain info inside of the chains.json file:
{
"name": "Chain name",
"websocket": "wss://yourendpoint.io"
}Afterwards, you can run the following script:
./generator.sh <Chain name>
Before running the script, you might need to install the following:
Substrate.Net.Toolchain - https://github.com/SubstrateGaming/Substrate.NET.Toolchain.
Register the chain info
Go to PlutoFramework/Constants/Endpoints.cs.
Add the EndpointEnum:
public enum EndpointEnum
{
Polkadot,
Kusama,
// ...
YourChain
}Add the genesis hash to the HashToKey Dictionary:
Add the your chain details to GetEndpointDictionary:
Link the Generated Chain Representation to your app
Add the generated chain .csproj to your app solution:

Add the reference to your chain. Select PlutoFramework.Model -> Add -> Project Reference... and select your chain project.

Now add your chain to the SubstrateClientExt which can be found in PlutoFramework.Model/AjunaExt/SubstrateClientExt.cs:
Lastly, add your chain to the EventsModel which can be found in PlutoFramework.Model/EventsModel.cs:
Last updated