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

EVM-compatible blockchain implementation of the x402 protocol.

example/main.dart

import 'dart:io';

import 'package:web3dart/web3dart.dart';
import 'package:x402_evm/x402_evm.dart';

void main() {
  final privateKey = EthPrivateKey.fromHex('YOUR_PRIVATE_KEY');
  final signer = EvmSigner(
    chainId: 1, // Ethereum Mainnet
    privateKey: privateKey,
  );

  stdout.writeln('EVM Signer Address: ${signer.address}');
  stdout.writeln('Supported Network: ${signer.network}');

  // This signer can now be passed to the X402Client or used manually
}
0
likes
140
points
117
downloads

Publisher

unverified uploader

Weekly Downloads

EVM-compatible blockchain implementation of the x402 protocol.

Topics

#x402 #payment #web3 #blockchain #http

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

convert, crypto, http, web3dart, x402_core

More

Packages that depend on x402_evm