Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working with substrate nodes #224

Open
aditya9729 opened this issue Mar 18, 2024 · 1 comment
Open

Working with substrate nodes #224

aditya9729 opened this issue Mar 18, 2024 · 1 comment

Comments

@aditya9729
Copy link

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

Configuration document:

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

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

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

@irubido
Copy link
Contributor

irubido commented Apr 29, 2024

Hi @aditya9729

with new version you can now override with custom configuration.
#230 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants