particle_chains 1.3.2 copy "particle_chains: ^1.3.2" to clipboard
particle_chains: ^1.3.2 copied to clipboard

paritlce chains

homepage #

https://docs.particle.network/overview/available-networks

install #

dart pub add particle_chains

example #

import 'package:particle_chains/particle_chains.dart';

void main() {
  print(ChainInfo.Ethereum); // Ethereum
  print(ChainInfo.Ethereum.id); // 1
  print(ChainInfo.Ethereum.name); // 'Ethereum'
  print(ChainInfo.PlatON.id); // 210425

  print(ChainInfo.getChainType(ChainInfo.Ethereum)); // demo

  // print(ChainInfo.ParticleChains);
  // print(ChainInfo.getAllChainInfos());

  // https://rpc.particle.network/evm-chain?chainId=123&projectUuid=aaa&projectKey=bbb
  print(ChainInfo.getParticleNode(123, 'aaa', 'bbb'));
}
2
likes
130
points
30
downloads

Publisher

verified publisherparticle.network

Weekly Downloads

paritlce chains

Homepage

Documentation

API reference

License

MIT (license)

More

Packages that depend on particle_chains