crp_sdk 1.0.0 copy "crp_sdk: ^1.0.0" to clipboard
crp_sdk: ^1.0.0 copied to clipboard

Non-custodial transaction lifecycle management SDK for BSC, Solana, and Sui. Grant-safe with foreground-only polling, explicit retries, and idempotency.

CRP SDK — Chain Relay Protocol (crp_sdk) #

CRP SDK is a Dart/Flutter SDK for secure local signing and transaction lifecycle handling. It is designed to work with the CRP API (relay) for transaction preparation, broadcasting, and finality tracking.

Mainnet Proof (Sui) #


Install #

dart pub add crp_sdk

10-Minute Quickstart (Sui) #

Goal: Prepare via CRP API → sign locally → broadcast → track finality.

final result = await sdk.sendTransfer(
  chain: Chain.sui,
  token: Token.usdt,
  fromPrivateKey: "<SUI_PRIVATE_KEY>",
  to: "<RECIPIENT_SUI_ADDRESS>",
  amount: "1",
  clientIdempotencyKey: DateTime.now().millisecondsSinceEpoch.toString(),
);

print("Tx Hash: ${result.txHash}");

Notes #

  • Use a unique clientIdempotencyKey per request
  • Never hardcode private keys in production (use secure storage / wallet)
  • Use HTTPS + API keys in production for CRP API

Examples #

Run the integration test:

dart run example/all_chains_usdt_test.dart

License #

MIT

0
likes
0
points
34
downloads

Publisher

unverified uploader

Weekly Downloads

Non-custodial transaction lifecycle management SDK for BSC, Solana, and Sui. Grant-safe with foreground-only polling, explicit retries, and idempotency.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

bip32, bip39, convert, cryptography, dart_bech32, ed25519_hd_key, http, solana, web3dart

More

Packages that depend on crp_sdk