dart_solana_adapter 0.0.38 dart_solana_adapter: ^0.0.38 copied to clipboard
Wrapper around JS Solana classes and functions
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add dart_solana_adapter
With Flutter:
$ flutter pub add dart_solana_adapter
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
dart_solana_adapter: ^0.0.38
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:dart_solana_adapter/common/stringify.dart';
import 'package:dart_solana_adapter/solana.dart';
import 'package:dart_solana_adapter/solana/core/compute_budget_program.dart';
import 'package:dart_solana_adapter/solana/core/connection.dart';
import 'package:dart_solana_adapter/solana/core/create_signature.dart';
import 'package:dart_solana_adapter/solana/core/fee_calculator.dart';
import 'package:dart_solana_adapter/solana/core/keypair.dart';
import 'package:dart_solana_adapter/solana/core/message.dart';
import 'package:dart_solana_adapter/solana/core/public_key.dart';
import 'package:dart_solana_adapter/solana/core/sign_transaction.dart';
import 'package:dart_solana_adapter/solana/core/solflare_wallet.dart';
import 'package:dart_solana_adapter/solana/core/storage_size.dart';
import 'package:dart_solana_adapter/solana/core/system_program.dart';
import 'package:dart_solana_adapter/solana/core/transaction.dart';
import 'package:dart_solana_adapter/solana/core/transaction_instruction.dart';
import 'package:dart_solana_adapter/solana/dto/budget_program/request_heap_frame_params.dart';
import 'package:dart_solana_adapter/solana/dto/budget_program/request_units_params.dart';
import 'package:dart_solana_adapter/solana/dto/budget_program/set_compute_unit_limit_params.dart';
import 'package:dart_solana_adapter/solana/dto/budget_program/set_compute_unit_price_params.dart';
import 'package:dart_solana_adapter/solana/dto/connection/account_info.dart';
import 'package:dart_solana_adapter/solana/dto/keypair/ed25519_keypair.dart';
import 'package:dart_solana_adapter/solana/dto/keypair/option.dart';
import 'package:dart_solana_adapter/solana/dto/keypair/signer.dart';
import 'package:dart_solana_adapter/solana/dto/message/compiled_instruction.dart';
import 'package:dart_solana_adapter/solana/dto/message/message_args.dart';
import 'package:dart_solana_adapter/solana/dto/message/message_header.dart';
import 'package:dart_solana_adapter/solana/dto/system_program/allocate_params.dart';
import 'package:dart_solana_adapter/solana/dto/system_program/allocate_with_seed_params.dart';
import 'package:dart_solana_adapter/solana/dto/system_program/create_account_params.dart';
import 'package:dart_solana_adapter/solana/dto/system_program/create_account_with_seed_params.dart';
import 'package:dart_solana_adapter/solana/dto/system_program/transfer_params.dart';
import 'package:dart_solana_adapter/solana/dto/transaction/account_meta.dart';
import 'package:dart_solana_adapter/solana/dto/transaction/nonce_information.dart';
import 'package:dart_solana_adapter/solana/dto/transaction/serialize_config.dart';
import 'package:dart_solana_adapter/solana/dto/transaction/signature_pubkey_pair.dart';
import 'package:dart_solana_adapter/solana/dto/transaction/transaction_ctor_fields.dart';
import 'package:dart_solana_adapter/solana/dto/types.dart';
import 'package:dart_solana_adapter/spl_token/core/create_mint_to_instruction.dart';