alchemyplatform / alchemy-sdk-js

The easiest way to connect your dApp to the blockchain.
https://www.alchemy.com/sdk
MIT License
403 stars 183 forks source link

FR: StarkNet support #437

Closed hugo-levet closed 1 month ago

hugo-levet commented 4 months ago

Is your feature request related to a problem? Please describe. SDK works but not support TypeScript type for StarkNet network (see screenshot) image

Describe the solution you'd like Can you add "starknet-mainnet" for Network type ?

Additional context I did not add a pull request with only the type change because I'm not sure about full StarkNet support in the SDK. Is it StarkNet full support in the last version ?

hugo-levet commented 4 months ago

For now, I use this little trick:

const config: AlchemySettings = {
    apiKey: <YOUR_API_KEY>,
    network: 'starknet-mainnet' as Network
};
thebrianchen commented 1 month ago

@hugo-levet Since starknet is not an EVM-based chain, it won't work with the underlying ethers library. Note that there is also an AlchemySettings.url field to pass in a custom RPC url.

I'll be closing this issue since we don't have plans to add starknet support into the SDK.