metamask-snap-polkadot icon indicating copy to clipboard operation
metamask-snap-polkadot copied to clipboard

Working with substrate nodes

Open aditya9729 opened this issue 1 year ago • 1 comments

I wanted to understand if you support substrate nodes. Is it that I have to provide ws rpc url in snapconfig, in that case what would be the snap network here? Any help there?

The snippet below is from: https://github.com/chainsafe/metamask-snap-polkadot/tree/master/packages/adapter

Enabling API you folks have: function enablePolkadotSnap( config?: SnapConfig, snapOrigin?: string, snapInstallationParams?: Record<SnapInstallationParamNames, unknown> = {} ): Promise<MetamaskPolkadotSnap>

Configuration document:

SnapConfig { networkName: SnapNetworks; wsRpcUrl?: string; addressPrefix?: number; unit?: UnitConfiguration; }

SnapNetworks = "polkadot" | "kusama" | "westend";

UnitConfiguration { symbol: string; decimals: number; image?: string; customViewUrl?: string; }

aditya9729 avatar Mar 18 '24 14:03 aditya9729

Hi @aditya9729

with new version you can now override with custom configuration. https://github.com/ChainSafe/metamask-snap-polkadot/issues/230#issuecomment-2082696506

irubido avatar Apr 29 '24 14:04 irubido