Meta tags:
description= Toolkit for interacting with SUI network in typescript - scallop-io/sui-kit;
Headings (most frequently used words):
uh, oh, sui, navigation, saved, searches, use, to, files, footer, move, search, code, repositories, users, issues, pull, requests, provide, feedback, scallop, io, kit, toolkit, for, interacting, with, network, menu, filter, your, results, more, quickly, folders, and, latest, commit, history, repository, features, pre, requisites, how, migration, guide, about, releases, 47, packages, contributors, languages, init, suikit, transfer, stake, call, programmable, transaction, multi, accounts, publish, upgrade, package, topics, resources, license, stars, watchers, forks,
Text of the page (most frequently used words):
#suikit (43), const (38), sui (34), you (16), the (16), mnemonics (14), github (13), with (12), from (12), for (11), transfer (11), code (11), this (10), security (10), kit (10), and (10), await (10), vector (10), can (9), address (9), all (9), reload (8), new (8), use (8), pass (8), please (7), move (7), 1000 (7), accounts (7), scallop (7), your (7), pkgid (7), vectype (7), view (7), package (6), accountindex (6), log (6), cointype (6), multiple (6), movecall (6), coin (6), recipient1 (6), json (6), enterprise (6), navigation (5), there (5), was (5), error (5), while (5), loading (5), page (5), custom (5), license (5), account (5), console (5), number (5), import (5), example (5), transaction (5), coinb (5), config (5), actions (5), need (5), specify (5), key (5), search (5), manage (4), community (4), typescript (4), readme (4), network (4), env (4), process (4), async (4), res (4), loan (4), coina (4), bool (4), u64 (4), default (4), arguments (4), name (4), stake (4), fullnode (4), features (4), pnpm (4), yaml (4), issues (4), support (4), repository (3), stars (3), resources (3), topics (3), toolkit (3), interacting (3), then (3), fromaccountindex (3), amount (3), toaccountindex (3), function (3), balance (3), using (3), create (3), wallet (3), sender (3), coinb2 (3), treasuryb (3), dexpool (3), dotenv (3), programmable (3), coin1 (3), array (3), call (3), replace (3), real (3), objects (3), recipient2 (3), available (3), secret (3), more (3), files (3), changelog (3), workflows (3), commit (3), open (3), insights (3), pull (3), requests (3), signed (3), settings (3), another (3), tab (3), window (3), refresh (3), session (3), sign (3), saved (3), documentation (3), feedback (3), grade (3), copilot (3), platform (3), solutions (3), explore (3), not (2), footer (2), 2026 (2), releases (2), latest (2), forks (2), 189 (2), apache (2), refer (2), migration (2), guide (2), have (2), npm (2), publish (2), upgrade (2), internaltransfersui (2), checkaccounts (2), toaddr (2), transfersui (2), getaddress (2), displayaccounts (2), numaccounts (2), addr (2), 0x2 (2), when (2), init (2), multi (2), transferobjects (2), paybackcoinb (2), custom_coin_b (2), flash (2), dex (2), swap (2), ratio (2), make (2), suitxblock (2), following (2), object (2), supported (2), types (2), are (2), coin2 (2), value (2), addr2 (2), addr1 (2), test_args (2), target (2), like (2), coins (2), public (2), how (2), validatoraddress (2), stakeamount (2), 0x123 (2), objectids (2), 2000 (2), recipients (2), single (2), recipient (2), custom_coin (2), any (2), secretkey (2), will (2), type (2), testnet (2), mainnet (2), options (2), bytes (2), hex (2), file (2), install (2), mysten (2), query (2), vitest (2), tsup (2), tsconfig (2), workspace (2), lock (2), biome (2), gitignore (2), test (2), src (2), scripts (2), document (2), husky (2), 315 (2), commits (2), last (2), message (2), menu (2), quality (2), projects (2), appearance (2), cancel (2), see (2), searches (2), repositories (2), business (2), advanced (2), developer (2), source (2), customer (2), services (2), devops (2), app (2), perform, that, action, time, share, personal, information, cookies, contact, docs, status, privacy, terms, inc, shell, javascript, languages, contributors, packages, jul, report, watching, watchers, properties, activity, about, upgrading, standalone, help, based, return, let, first, has, getbalance, follows, bip32, bip39, standard, signandsendtxn, execute, profits, payback_loan, splitcoins, repay, swap_b, back, swap_a, flash_loan, currentaddress, 0x3c316b6af0586343ce8e6b4be890305a1f83b7e196366f6435b22b6e3fc8e3d9, 0x8a13859a8d930f3238ddd31180a5f0914e5b8dbaa31e18387066b61a563fedf9, 0xdd2f53171b8c886fad20e0bfecf1d4eede9d6c75762f169a9f3c3022e5ce7293, 0xe5042357d2c2bb928f37e4d12eac594e6d02327d565e801eaf9aca4c7340c28c, treasurya, send, flashloan, arbitrage, check, corresponding, contract, here, u256, u128, u32, u16, false, true, boolean, 234234, 34324, module, 0x4d4a01b597b87986b04b65e04049499b445c0ee901fe8ba310b1cf29feaa8687, 0xd4a01b597b87986b04b65e04049499b445c0ee901fe8ba310b1cf29feaa86876, 0x10651e50cdbb4944a8fd77665d5af27f8abde6eb76a12b97444809ae4ddb1aad, 0x656b875c9c072a465048fc10643470a39ba331727719df46c004973fcfb53c95, addrs, numbers, bools, ctx, txcontext, mut, fun, entry, suppose, typearguments, coin0, join, functions, success, stakesui, objid2, objid1, transfercointomany, transfercoin, transfersuitomany, 0x456, fullnode2, fullnode1, fullnodeurls, rotate, current, urls, preconfig, url, given, networktype, devnet, localnet, override, suikit3, random, suikit2, words, suikit1, legacy, base64, cli, keystore, peer, dependency, alongside, pre, requisites, chain, data, items, history, date, folders, tags, branches, main, additional, star, fork, must, change, notification, notifications, dismiss, alert, switched, out, resetting, focus, qualifiers, our, filter, results, quickly, submit, include, email, contacted, read, every, piece, take, input, very, seriously, provide, syntax, tips, clear, users, jump, pricing, premium, add, ons, powered, collections, trending, archive, program, accelerator, maintainer, lab, programs, fund, developers, sponsors, partners, trust, center, forum, skills, ebooks, reports, events, webinars, stories, software, development, topic, industries, government, manufacturing, financial, healthcare, industry, cases, devsecops, modernization, case, nonprofits, startups, small, medium, teams, enterprises, company, size, marketplace, blog, why, stop, leaks, before, they, start, protection, secure, build, find, fix, vulnerabilities, application, changes, review, plan, track, work, instant, dev, environments, codespaces, automate, workflow, integrate, external, tools, mcp, registry, direct, agents, issue, merge, write, better, creation, toggle, skip, content,
Text of the page (random words):
github scallop io sui kit toolkit for interacting with sui network in typescript github skip to content navigation menu toggle navigation sign in appearance settings platform ai code creation github copilot write better code with ai github copilot app direct agents from issue to merge mcp registry new integrate external tools developer workflows actions automate any workflow codespaces instant dev environments issues plan and track work code review manage code changes application security github advanced security find and fix vulnerabilities code security secure your code as you build secret protection stop leaks before they start explore why github documentation blog changelog marketplace view all features solutions by company size enterprises small and medium teams startups nonprofits by use case app modernization devsecops devops ci cd view all use cases by industry healthcare financial services manufacturing government view all industries view all solutions resources explore by topic ai software development devops security view all topics explore by type customer stories events webinars ebooks reports business insights github skills support services documentation customer support community forum trust center partners view all resources open source community github sponsors fund open source developers programs security lab maintainer community accelerator github stars archive program repositories topics trending collections enterprise enterprise solutions enterprise platform ai powered developer platform available add ons github advanced security enterprise grade security features copilot for business enterprise grade ai features premium support enterprise grade 24 7 support pricing search or jump to search code repositories users issues pull requests search clear search syntax tips provide feedback we read every piece of feedback and take your input very seriously include my email address so i can be contacted cancel submit feedback saved searches use saved searches to filter your results more quickly name query to see all available qualifiers see our documentation cancel create saved search sign in sign up appearance settings resetting focus you signed in with another tab or window reload to refresh your session you signed out in another tab or window reload to refresh your session you switched accounts on another tab or window reload to refresh your session dismiss alert message uh oh there was an error while loading please reload this page scallop io sui kit public notifications you must be signed in to change notification settings fork 39 star 189 code issues 2 pull requests 0 actions projects security and quality 0 insights additional navigation options code issues pull requests actions projects security and quality insights scallop io sui kit main branches tags go to file code open more actions menu folders and files name name last commit message last commit date latest commit history 315 commits 315 commits github workflows github workflows husky husky document document scripts scripts src src test test env example env example gitignore gitignore changelog md changelog md license license readme md readme md biome json biome json package json package json pnpm lock yaml pnpm lock yaml pnpm workspace yaml pnpm workspace yaml tsconfig json tsconfig json tsup config ts tsup config ts vitest config ts vitest config ts view all files repository files navigation readme apache 2 0 license more items toolkit for interacting with sui network features transfer sui custom coin and objects move call programmable transaction query on chain data hd wallet multi accounts pre requisites mysten sui is a peer dependency so install it alongside sui kit npm install scallop io sui kit mysten sui how to use init suikit import suikit from scallop io sui kit the following types of secret key are supported 1 base64 key from sui cli keystore file 2 32 bytes hex key 3 64 bytes legacy hex key const secretkey secret key const suikit1 new suikit secretkey 12 or 24 words mnemonics const mnemonics mnemonics const suikit2 new suikit mnemonics it will create a hd wallet with a random mnemonics const suikit3 new suikit override options const suikit new suikit mnemonics mnemonics testnet mainnet devnet localnet default is mainnet networktype testnet the fullnode urls default is the preconfig fullnode url for the given network type it will rotate the fullnode when the current fullnode is not available fullnodeurls sui fullnode1 sui fullnode2 transfer you can use suikit to transfer sui custom coins and any objects const recipient1 0x123 replace with real address const recipient2 0x456 replace with real address transfer sui to single recipient await suikit transfersui recipient1 1000 transfer sui to multiple recipients await suikit transfersuitomany recipient1 recipient2 1000 2000 const cointype pkgid custom_coin custom_coin transfer custom coin to single recipient await suikit transfercoin recipient1 1000 cointype transfer custom coin to multiple recipients await suikit transfercointomany recipient1 recipient2 1000 2000 cointype transfer objects const objectids objid1 objid2 await suikit transferobjects objectids recipient1 stake sui you can use suikit to stake sui this is an example of using suikit to stake sui const stakeamount 1000 const validatoraddress 0x123 replace with real address suikit stakesui stakeamount validatoraddress then console log stake sui success move call you can use suikit to call move functions const res await suikit movecall target 0x2 coin join arguments coin0 coin1 typearguments cointype console log res how to pass arguments suppose you have a move function like this public entry fun test_args addrs vector address name vector u8 numbers vector u64 bools vector bool coins vector coin sui ctx mut txcontext you can pass the arguments like this const addr1 0x656b875c9c072a465048fc10643470a39ba331727719df46c004973fcfb53c95 const addr2 0x10651e50cdbb4944a8fd77665d5af27f8abde6eb76a12b97444809ae4ddb1aad const coin1 0xd4a01b597b87986b04b65e04049499b445c0ee901fe8ba310b1cf29feaa86876 const coin2 0x4d4a01b597b87986b04b65e04049499b445c0ee901fe8ba310b1cf29feaa8687 suikit movecall target pkgid module test_args arguments pass vector address need to specify the vectype as address value addr1 addr2 vectype address pass vector u8 need to specify the vectype as u8 value 10 20 vectype u8 pass vector u64 default vectype for number array is u64 so no need to specify 34324 234234 pass vector bool default vectype for boolean array is bool so no need to specify true false pass vector coin sui no need to specify the vectype for object array coin1 coin2 all the supported types are address u8 u16 u32 u64 u128 u256 bool object programmable transaction with programmable transaction you can send a transaction with multiple actions the following is an example using flashloan to make arbitrage check here for the corresponding move contract code import suikit suitxblock from scallop io sui kit import as process from process import as dotenv from dotenv dotenv config const treasurya 0xe5042357d2c2bb928f37e4d12eac594e6d02327d565e801eaf9aca4c7340c28c const treasuryb 0xdd2f53171b8c886fad20e0bfecf1d4eede9d6c75762f169a9f3c3022e5ce7293 const dexpool 0x8a13859a8d930f3238ddd31180a5f0914e5b8dbaa31e18387066b61a563fedf9 const pkgid 0x3c316b6af0586343ce8e6b4be890305a1f83b7e196366f6435b22b6e3fc8e3d9 async const mnemonics process env mnemonics const suikit new suikit mnemonics const sender suikit currentaddress const tx new suitxblock 1 make a flash loan for coinb const coinb loan tx movecall pkgid custom_coin_b flash_loan treasuryb 10 9 2 swap from coinb to coina ratio is 1 1 const coina tx movecall pkgid dex swap_a dexpool coinb 3 swap from coina back to coinb ratio is 1 2 const coinb2 tx movecall pkgid dex swap_b dexpool coina 4 repay flash loan const paybackcoinb tx splitcoins coinb2 10 9 tx movecall pkgid custom_coin_b payback_loan treasuryb paybackcoinb loan 5 transfer profits to sender tx transferobjects coinb2 sender 5 execute transaction const res await suikit signandsendtxn tx console log res multi accounts suikit follows bip32 bip39 standard so you can use it to manage multiple accounts when init suikit you can pass in your mnemonics to create a wallet with multiple accounts this is an example of using suikit to manage multiple accounts import suikit from scallop io sui kit async function checkaccounts suikit suikit const displayaccounts async suikit suikit accountindex number const cointype 0x2 sui sui const addr suikit getaddress accountindex const balance await suikit getbalance cointype accountindex balance console log account accountindex addr has balance sui log the first 10 accounts const numaccounts 10 for let i 0 i numaccounts i await displayaccounts suikit i async function internaltransfersui suikit suikit fromaccountindex number toaccountindex number amount number const toaddr suikit getaddress accountindex toaccountindex console log transfer amount sui from account fromaccountindex to account toaccountindex return await suikit transfersui toaddr amount accountindex fromaccountindex const mnemonics process env mnemonics const suikit new suikit mnemonics checkaccounts suikit then transfer 1000 sui from account 0 to account 1 internaltransfersui suikit 0 1 1000 then publish upgrade move package we have a standalone npm package to help you publish and upgrade move package based on sui kit please refer to the repository sui package kit migration guide if you re upgrading from v1 x to v2 0 0 please refer to the migration guide about toolkit for interacting with sui network in typescript topics typescript sui resources readme license apache 2 0 license uh oh there was an error while loading please reload this page activity custom properties stars 189 stars watchers 16 watching forks 39 forks report repository releases 47 v2 2 0 latest jul 7 2026 46 releases packages 0 uh oh there was an error while loading please reload this page uh oh there was an error while loading please reload this page contributors uh oh there was an error while loading please reload this page languages typescript 96 4 javascript 3 5 shell 0 1 footer 2026 github inc footer navigation terms privacy security status community docs contact manage cookies do not share my personal information you can t perform that action at this time
|