0 purchases
test a
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
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.