⚒️ Wallet SDK
Last updated
Last updated
The BlockBolt SDK for the Sui Wallet App offers a seamless, secure, and user-friendly interface for executing transactions on the Sui blockchain. Users can confirm payments directly within their Sui wallet with support for QR code scanning and payment interpretation.
The SDK ensures safe and reliable delivery of funds to the merchant wallet by handling all the logic on-chain.
Our payment infrastructure is fully open-source, reinforcing transparency and enabling community-driven security enhancements.
Install the BlockBolt SDK using either npm
or yarn
:
BlockBolt SDK requires the @mysten/sui
package as a peer dependency. Install it alongside:
USD Coin
USDC
6
0x5d4b...::coin::COIN
Tether
USDT
6
0xc060...::coin::COIN
SCA Token
SCA
9
0x7016...::sca::SCA
Sacabum
SCB
5
0x9a55...::scb::SCB
Buck USD
BUCK
9
0xce7f...::buck::BUCK
Turbos
TURBOS
9
0x5d1f...::turbos::TURBOS
FlowX
FLX
8
0x6dae...::flx::FLX
NavX
NAVX
9
0xa99b...::navx::NAVX
FUD Token
FUD
5
0x76cb...::fud::FUD
Generate or import your keypair using the Sui SDK. For example:
🔐 Note: Never hardcode secrets or mnemonics in production. Use secure key vaults or encrypted storage.
BlockBolt.send(params)
Send a transaction via the Sui network.
Parameters
keyPair
— Ed25519Keypair
from Sui SDK
receiverAddr
— recipient wallet address
nameProduct
— name or description of the item/service
amount
— amount to send (in smallest unit of token)
coinType
— full coin type string
randomId
— unique BigInt to avoid duplicates
senderAddr
(optional) — if set, only this wallet can initiate the payment
Returns
A Promise
resolving to the transaction result.
Wrap all SDK interactions in a try-catch
block:
🔒 Security First: Never expose private keys or mnemonics.
⚙️ Key Management: Use secure wallets and avoid client-side key generation for production apps.
✅ Transaction Uniqueness: Always use randomId
to prevent duplicate submissions.
📤 QR Usage: Let users scan a QR that includes the transaction data (excluding private key).
ℹ️ Payments are verified strictly via on-chain logic. No external verification or off-chain validation is supported.
Need help?
This project is licensed under the MIT License.
📧 Email:
💬 Discord: