test_a 0.1.0 copy "test_a: ^0.1.0" to clipboard
test_a: ^0.1.0 copied to clipboard

paritlce chains

homepage #

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

install #

dart pub add particle_chains
copied to clipboard

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'));
}
copied to clipboard
1
likes
120
points
20
downloads

Publisher

unverified uploader

Weekly Downloads

2024.09.26 - 2025.04.10

paritlce chains

Homepage

Documentation

API reference

License

MIT (license)

More

Packages that depend on test_a