-
Notifications
You must be signed in to change notification settings - Fork 3
2. Platform
Can Gök edited this page Nov 27, 2023
·
2 revisions
StarkSharp offers integration for a range of platforms, each of which provides methods to manage Starknet interactions. Since there are so many platforms supported, StarkSharp requires you to specify your platform. To do so, you'll need to define the platform within the code.
To create a platform in StarkSharp, follow the steps below:
Import Necessary Libraries
Ensure you've imported the required StarkSharp libraries.
using StarkSharp.Platforms;
Platform Definition
A platform can be defined using the [Platform].New method. This method expects an argument PlatformConnectorType.[Type].
Supported Platforms
Supported Platform Connector Types:
Example
Platform myNewPlatform = DotNetPlatform.New(PlatformConnectorType.Sharpion);
Supported Interactions
- RPC: CallContract
- Sharpion: ConnectWallet, SendTransaction
- WebGL: ConnectWallet, SendTransaction