# SDK

**URL:** https://forums.sui.io/c/sdk/15.md?page=1

[Latest](https://forums.sui.io/latest.md) · [Categories](https://forums.sui.io/categories.md) · [Tags](https://forums.sui.io/tags.md)

**Page:** 2

---

## [How to correctly pass string\[\] as argument to move call](https://forums.sui.io/t/how-to-correctly-pass-string-as-argument-to-move-call/45743)

<div class="topic-metadata">

**Author:** [@thebishalniroula](https://forums.sui.io/u/thebishalniroula)\
**Replies:** 1\
**Last updated:** [July 15, 2024, 8:49am UTC](https://forums.sui.io/t/how-to-correctly-pass-string-as-argument-to-move-call/45743 "2024-07-15T08:49:21Z")

</div>

I am new to sui. It seems like the latest version of typescript sdk does not allow directly passing array of string to the txn.pure() function. What would be the correct way to do it? Error message: Argument of type ‘…

---

## [Signing with multisig](https://forums.sui.io/t/signing-with-multisig/45765)

<div class="topic-metadata">

**Author:** [@Nikos-T](https://forums.sui.io/u/Nikos-T)\
**Replies:** 3\
**Last updated:** [July 2, 2024, 9:07am UTC](https://forums.sui.io/t/signing-with-multisig/45765 "2024-07-02T09:07:59Z")

</div>

i am using split\_and\_transfer function of pay module i am using multisig account for this transaction i am getting this error VMVerificationOrDeserializationError while doing it thorugh js-sdk it works fine on CLI ? wha…

---

## [Typedoc missing version](https://forums.sui.io/t/typedoc-missing-version/45763)

<div class="topic-metadata">

**Author:** [@shiqicao](https://forums.sui.io/u/shiqicao)\
**Replies:** 0\
**Last updated:** [July 1, 2024, 7:13am UTC](https://forums.sui.io/t/typedoc-missing-version/45763 "2024-07-01T07:13:54Z")

</div>

can these doc include version?

---

## [How can I listen to epoch changes?](https://forums.sui.io/t/how-can-i-listen-to-epoch-changes/45723)

<div class="topic-metadata">

**Author:** [@Stefanos](https://forums.sui.io/u/Stefanos)\
**Replies:** 1\
**Last updated:** [June 17, 2024, 12:13pm UTC](https://forums.sui.io/t/how-can-i-listen-to-epoch-changes/45723 "2024-06-17T12:13:35Z")

</div>

Question from Discord (sui-sdk channel): I want to listen to the event when a new epoch is updated, how do I filter? I use typescript. Hope everyone supports

---

## [Serialize an unsigned transaction](https://forums.sui.io/t/serialize-an-unsigned-transaction/45591)

<div class="topic-metadata">

**Author:** [@dimakogan](https://forums.sui.io/u/dimakogan)\
**Replies:** 1\
**Last updated:** [June 4, 2024, 8:00am UTC](https://forums.sui.io/t/serialize-an-unsigned-transaction/45591 "2024-06-04T08:00:39Z")

</div>

Hi all, Is there a standard way to serialize an unsigned transaction (such that it is supported in Python/TS/Rust SDKs). A few things I considered, but didn’t quite work: In the TS SDK, calling build to get the BCS re…

---

## [Error: Dry run failed, could not automatically determine a budget](https://forums.sui.io/t/error-dry-run-failed-could-not-automatically-determine-a-budget/45573)

<div class="topic-metadata">

**Author:** [@Rockgu](https://forums.sui.io/u/Rockgu)\
**Replies:** 2\
**Last updated:** [May 27, 2024, 7:48am UTC](https://forums.sui.io/t/error-dry-run-failed-could-not-automatically-determine-a-budget/45573 "2024-05-27T07:48:47Z")

</div>

I wrote a program with SDK.It works, however sometimes it complains Error: Dry run failed, could not automatically determine a budget Can somebody help?Thx

---

## [Issue with get wallet balance with @mysten/sui.js/client](https://forums.sui.io/t/issue-with-get-wallet-balance-with-mysten-sui-js-client/45593)

<div class="topic-metadata">

**Author:** [@legoguy1083](https://forums.sui.io/u/legoguy1083)\
**Replies:** 4\
**Last updated:** [May 24, 2024, 8:04pm UTC](https://forums.sui.io/t/issue-with-get-wallet-balance-with-mysten-sui-js-client/45593 "2024-05-24T20:04:27Z")

</div>

Hi, I’m trying to get my wallet balance using sui.js client. However, the balance that i get is not the latest balance. It seems to have some issue with the SuiClient. Is this something wrong with the RPC? Please help.…

---

## [Typescripe sdk is hard to use](https://forums.sui.io/t/typescripe-sdk-is-hard-to-use/45589)

<div class="topic-metadata">

**Author:** [@zhouop0](https://forums.sui.io/u/zhouop0)\
**Replies:** 0\
**Last updated:** [May 17, 2024, 5:20am UTC](https://forums.sui.io/t/typescripe-sdk-is-hard-to-use/45589 "2024-05-17T05:20:46Z")

</div>

i just import { getFullnodeUrl, SuiClient } from ‘@mysten/sui.js/client’; but so many error in here when I command yarn run start:dev

---

## [How to get private key (sui address ) importable to Sui wallet from a Sui keystore](https://forums.sui.io/t/how-to-get-private-key-sui-address-importable-to-sui-wallet-from-a-sui-keystore/44892)

<div class="topic-metadata">

**Author:** [@channa](https://forums.sui.io/u/channa)\
**Replies:** 5\
**Last updated:** [May 13, 2024, 6:36pm UTC](https://forums.sui.io/t/how-to-get-private-key-sui-address-importable-to-sui-wallet-from-a-sui-keystore/44892 "2024-05-13T18:36:01Z")

</div>

I have a sui keystore generated using sui client CLI. I found this: https://github.com/MystenLabs/sui/blob/3ea9adb/sdk/typescript/src/cryptography/ed25519-keypair.ts#L80 let secretKey = raw.slice(1); let keypair…

---

## [Can't publish package](https://forums.sui.io/t/cant-publish-package/45558)

<div class="topic-metadata">

**Author:** [@fomotoshi](https://forums.sui.io/u/fomotoshi)\
**Replies:** 0\
**Last updated:** [May 11, 2024, 7:59am UTC](https://forums.sui.io/t/cant-publish-package/45558 "2024-05-11T07:59:57Z")

</div>

Hi, I get error when I try to publish my second contract. BUILDING BobContract Failed to publish the Move module(s), reason: \[warning\] Local version of dependency a99fbab1ed9aad696819562b070cecfb1d5b13e077b83bb29004ebe9…

---

## [Get programmable transactions created from a single address](https://forums.sui.io/t/get-programmable-transactions-created-from-a-single-address/45422)

<div class="topic-metadata">

**Author:** [@tahlil](https://forums.sui.io/u/tahlil)\
**Replies:** 1\
**Last updated:** [April 4, 2024, 8:26pm UTC](https://forums.sui.io/t/get-programmable-transactions-created-from-a-single-address/45422 "2024-04-04T20:26:51Z")

</div>

I want to get the list of past programmable transactions from an address. I want to know the details of the transaction like which function was called, and the gas cost, etc. What would be the syntax for achieving this u…

---

## [How to call query function from Sui SDK](https://forums.sui.io/t/how-to-call-query-function-from-sui-sdk/45399)

<div class="topic-metadata">

**Author:** [@tahlil](https://forums.sui.io/u/tahlil)\
**Replies:** 1\
**Last updated:** [March 24, 2024, 9:20pm UTC](https://forums.sui.io/t/how-to-call-query-function-from-sui-sdk/45399 "2024-03-24T21:20:34Z")

</div>

Let’s say I am creating an object of the type: struct Table1 has key, store{ id: UID, list: Table\<String, bool\> } In the package, I have a function that checks if a String-type element is present on…

---

## [How to do basic transfer SUI with Rust SDK?](https://forums.sui.io/t/how-to-do-basic-transfer-sui-with-rust-sdk/45372)

<div class="topic-metadata">

**Author:** [@janrockdev](https://forums.sui.io/u/janrockdev)\
**Replies:** 2\
**Last updated:** [March 24, 2024, 11:13am UTC](https://forums.sui.io/t/how-to-do-basic-transfer-sui-with-rust-sdk/45372 "2024-03-24T11:13:38Z")

</div>

Hi, I’m using current 1.20 version on local, and having the same issue visible just in wallet (code response is fine): “CommandArgumentError {arg\_idx: 1, InvalidBCSBytes } in command 1”. The behavior is the same on loca…

---

## [How to transfer an nft to other addres use SDK](https://forums.sui.io/t/how-to-transfer-an-nft-to-other-addres-use-sdk/45389)

<div class="topic-metadata">

**Author:** [@nhateric](https://forums.sui.io/u/nhateric)\
**Replies:** 3\
**Last updated:** [March 21, 2024, 10:09am UTC](https://forums.sui.io/t/how-to-transfer-an-nft-to-other-addres-use-sdk/45389 "2024-03-21T10:09:04Z")

</div>

Hello Everyone, I want to create a script to send nft to other addresses by using SuiSDK. Can you give me an example? I asked about that because my wallet has received too many spam nfts I need to burn it but can not d…

---

## [Ed25519Keypair expected 32 bytes, but got 0](https://forums.sui.io/t/ed25519keypair-expected-32-bytes-but-got-0/45383)

<div class="topic-metadata">

**Author:** [@rgundal2](https://forums.sui.io/u/rgundal2)\
**Replies:** 2\
**Last updated:** [March 21, 2024, 5:41am UTC](https://forums.sui.io/t/ed25519keypair-expected-32-bytes-but-got-0/45383 "2024-03-21T05:41:48Z")

</div>

Running into an issue when calling the getPublicKey() function on the Ed25519Keypair class in typescript. “Expected 32 bytes, but got 0” I have logged out different methods to see there results. Here is my code: const …

---

## [Query table from a SUI object](https://forums.sui.io/t/query-table-from-a-sui-object/45377)

<div class="topic-metadata">

**Author:** [@tahlil](https://forums.sui.io/u/tahlil)\
**Replies:** 1\
**Last updated:** [March 21, 2024, 3:27am UTC](https://forums.sui.io/t/query-table-from-a-sui-object/45377 "2024-03-21T03:27:56Z")

</div>

I want to query all the elements on the Table data type in the move Sui object with the TS SDK. For example: module experiment::test { struct TableA has key{ id: UID, list: Table\<String, bool\> } …

---

## [Filter out object when getting owned object using SUI TS SDK](https://forums.sui.io/t/filter-out-object-when-getting-owned-object-using-sui-ts-sdk/45380)

<div class="topic-metadata">

**Author:** [@tahlil](https://forums.sui.io/u/tahlil)\
**Replies:** 1\
**Last updated:** [March 21, 2024, 3:54am UTC](https://forums.sui.io/t/filter-out-object-when-getting-owned-object-using-sui-ts-sdk/45380 "2024-03-21T03:54:56Z")

</div>

With Sui TS SDK. client objects “getOwnedObjects” method how do I filter out the type of object I want to get?

---

## [How can i transfer sui token like usdc](https://forums.sui.io/t/how-can-i-transfer-sui-token-like-usdc/45253)

<div class="topic-metadata">

**Author:** [@VictorLee](https://forums.sui.io/u/VictorLee)\
**Replies:** 1\
**Last updated:** [March 13, 2024, 7:39am UTC](https://forums.sui.io/t/how-can-i-transfer-sui-token-like-usdc/45253 "2024-03-13T07:39:06Z")

</div>

hello, please understand my poor english. I want to know about sui token transfer, before, i used splitcoins and transferobject for transfer sui. it’s simple but how could i transfer usdc? “0x5d4b302506645c37ff133b98c4…

---

## [How to query objects after a package upgrade](https://forums.sui.io/t/how-to-query-objects-after-a-package-upgrade/45325)

<div class="topic-metadata">

**Author:** [@sceat](https://forums.sui.io/u/sceat)\
**Replies:** 0\
**Last updated:** [March 3, 2024, 2:33pm UTC](https://forums.sui.io/t/how-to-query-objects-after-a-package-upgrade/45325 "2024-03-03T14:33:29Z")

</div>

Is there an efficient way to avoid the need to use both the ORIGINAL\_PACKAGE id and the UPGRADED\_PACKAGE id ? If I create objects through an upgraded package, I can only retrieve them with the struct filter by passing i…

---

## [Native (d)App zkLogin integration](https://forums.sui.io/t/native-d-app-zklogin-integration/45075)

<div class="topic-metadata">

**Author:** [@astinz](https://forums.sui.io/u/astinz)\
**Replies:** 0\
**Last updated:** [October 23, 2023, 12:11pm UTC](https://forums.sui.io/t/native-d-app-zklogin-integration/45075 "2023-10-23T12:11:28Z")

</div>

Introducing ZeroAuth: a suite of multi-platform zkLogin SDKs. Painlessly add zkLogin to your native, web and hybrid (d)Apps with a few lines of code. For more information, visit https://zeroauth.dev

---

## [Read a Move Table object by using Typescript SDK](https://forums.sui.io/t/read-a-move-table-object-by-using-typescript-sdk/44999)

<div class="topic-metadata">

**Author:** [@teohaik](https://forums.sui.io/u/teohaik)\
**Replies:** 0\
**Last updated:** [September 19, 2023, 3:11pm UTC](https://forums.sui.io/t/read-a-move-table-object-by-using-typescript-sdk/44999 "2023-09-19T15:11:49Z")

</div>

This is triggered by a discord question from member crazybit here. How can we get the rows of a Move Table by using the Typescript SDK? ANSWER: Table is the field pools of the ClmmPools object here. So Table ID = 0x3…

---

## [\[RFC\] BCS \<--\> JSON ser/de for TransactionData type #13483](https://forums.sui.io/t/rfc-bcs-json-ser-de-for-transactiondata-type-13483/44956)

<div class="topic-metadata">

**Author:** [@stefan](https://forums.sui.io/u/stefan)\
**Replies:** 0\
**Last updated:** [August 21, 2023, 11:34pm UTC](https://forums.sui.io/t/rfc-bcs-json-ser-de-for-transactiondata-type-13483/44956 "2023-08-21T23:34:28Z")

</div>

We’re working on providing a BCS to JSON and vice-versa serialization / deserialization interface to make it easier for languages that do not have BCS support to work with transactions. See issue #13483 on GitHub and fe…

---

## [Rust sdk example is out dated](https://forums.sui.io/t/rust-sdk-example-is-out-dated/44849)

<div class="topic-metadata">

**Author:** [@shiqicao](https://forums.sui.io/u/shiqicao)\
**Replies:** 3\
**Last updated:** [August 18, 2023, 4:25am UTC](https://forums.sui.io/t/rust-sdk-example-is-out-dated/44849 "2023-08-18T04:25:55Z")

</div>

with new sdk, the following code doesn’t work, can someone update it? Or show me how execute a transaction? // Execute the transaction let transaction\_response = sui .quorum\_driver() .execute\_transac…

---

## [Setting up Rust environment errors](https://forums.sui.io/t/setting-up-rust-environment-errors/44805)

<div class="topic-metadata">

**Author:** [@EliteIntegrity](https://forums.sui.io/u/EliteIntegrity)\
**Replies:** 4\
**Last updated:** [July 27, 2023, 5:50pm UTC](https://forums.sui.io/t/setting-up-rust-environment-errors/44805 "2023-07-27T17:50:04Z")

</div>

Hi, I am trying the most basic Rust example to interact with the network here. sui/crates/sui-sdk/examples/get\_owned\_objects.rs at main · MystenLabs/sui · GitHub I have added: \[dependencies\] sui-sdk = { git = "https:/…

---

## [How to transfer all sui](https://forums.sui.io/t/how-to-transfer-all-sui/44877)

<div class="topic-metadata">

**Author:** [@lly835](https://forums.sui.io/u/lly835)\
**Replies:** 1\
**Last updated:** [July 25, 2023, 2:05pm UTC](https://forums.sui.io/t/how-to-transfer-all-sui/44877 "2023-07-25T14:05:25Z")

</div>

const tx = new TransactionBlock(); const \[coin\] = tx.splitCoins(tx.gas, \[tx.pure(1000)\]); How to set gas to transfer all the balance in the wallet. Alternatively, can we set gas as another wallet for payment?

---

## [Use of undeclared type \`SignedTransactison\`](https://forums.sui.io/t/use-of-undeclared-type-signedtransactison/44867)

<div class="topic-metadata">

**Author:** [@shiqicao](https://forums.sui.io/u/shiqicao)\
**Replies:** 0\
**Last updated:** [July 18, 2023, 6:21am UTC](https://forums.sui.io/t/use-of-undeclared-type-signedtransactison/44867 "2023-07-18T06:21:54Z")

</div>

Compiling sui-types v0.1.0 (/home/shiqi/.cargo/git/checkouts/sui-6ac459c53b1b685a/5b4da14/crates/sui-types) error\[E0433\]: failed to resolve: use of undeclared type SignedTransactison → crates/sui-types/src/transaction…

---

## [Need to create function to parse Asset on a checkpoint](https://forums.sui.io/t/need-to-create-function-to-parse-asset-on-a-checkpoint/44863)

<div class="topic-metadata">

**Author:** [@victor](https://forums.sui.io/u/victor)\
**Replies:** 0\
**Last updated:** [July 17, 2023, 5:27am UTC](https://forums.sui.io/t/need-to-create-function-to-parse-asset-on-a-checkpoint/44863 "2023-07-17T05:27:52Z")

</div>

Hello, i’m victor. In near day, there were lots of transaction on Network. In my situation, i need function that can find the change history of an asset based on a checkpoint. Now, i call a getCheckpoint func and get l…

---

## [How to get adress from privateKey](https://forums.sui.io/t/how-to-get-adress-from-privatekey/31552)

<div class="topic-metadata">

**Author:** [@loomorton](https://forums.sui.io/u/loomorton)\
**Replies:** 1\
**Last updated:** [July 3, 2023, 8:59am UTC](https://forums.sui.io/t/how-to-get-adress-from-privatekey/31552 "2023-07-03T08:59:52Z")

</div>

how to generate sui adress from a keyPair. have any rpc or sdk function about this ?

---

## [How to calulate ObjectDigest?](https://forums.sui.io/t/how-to-calulate-objectdigest/44459)

<div class="topic-metadata">

**Author:** [@sunny](https://forums.sui.io/u/sunny)\
**Replies:** 1\
**Last updated:** [May 17, 2023, 1:42am UTC](https://forums.sui.io/t/how-to-calulate-objectdigest/44459 "2023-05-17T01:42:59Z")

</div>

Why do I need the ObjectDigest? As a hardware wallet developer, I need to know exactly what object is being transferred when signing SUI transactions like “transferObject”, whether it is SUI, token, or something else. H…

---

## [Is skipDataValidation options disabled?](https://forums.sui.io/t/is-skipdatavalidation-options-disabled/44492)

<div class="topic-metadata">

**Author:** [@victor](https://forums.sui.io/u/victor)\
**Replies:** 0\
**Last updated:** [May 18, 2023, 2:29am UTC](https://forums.sui.io/t/is-skipdatavalidation-options-disabled/44492 "2023-05-18T02:29:31Z")

</div>

Hello, I’m victor from South Korea. Please understand my poor English. I saw sui github and saw there was skipDataValidation options in JsonRpcProvider Constructor, and version 0.32.0 fix skipDataValidation options rem…

[Previous page](https://forums.sui.io/c/sdk/15.md)

[Next page](https://forums.sui.io/c/sdk/15.md?page=2)
