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

SVM blockchain implementation of the x402 protocol.

example/main.dart

import 'dart:io';

import 'package:x402_svm/x402_svm.dart';

void main() async {
  final signer = await SvmSigner.fromHex(
    privateKeyHex: 'YOUR_SOLANA_PRIVATE_KEY_HEX',
    network: SolanaNetwork.devnet,
  );

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

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

Publisher

unverified uploader

Weekly Downloads

SVM blockchain implementation of the x402 protocol.

Topics

#x402 #payment #web3 #blockchain #http

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

convert, http, solana, x402_core

More

Packages that depend on x402_svm