Skip to main content

suix_getAllCoins RPC Method

Return all Coin objects owned by an address.

Updated on
Dec 10, 2024

suix_getAllCoins RPC Method

Parameters

owner
string
REQUIRED
The owner's Sui address
cursor
string
The paging cursor
limit
integer
The maximum number of items per page

Returns

result
object
The result containing the list of coin objects and pagination details
data
array
A list of coin objects with their details
coinType
string
The type of the coin (e.g. token contract address and module)
coinObjectId
string
The unique identifier for the coin object
version
string
The version of the coin object
digest
string
The digest of the coin object
balance
string
The balance of the coin object in its smallest unit
previousTransaction
string
The ID of the previous transaction associated with this coin object
nextCursor
string
The cursor for the next page of results, if available
hasNextPage
boolean
Indicates whether there is another page of results
Request
1
curl --location 'https://docs-demo.sui-mainnet.quiknode.pro/' \
2
--header 'Content-Type: application/json' \
3
--data '{
4
"jsonrpc": "2.0",
5
"id": 1,
6
"method": "suix_getAllCoins",
7
"params": [
8
"0xac5bceec1b789ff840d7d4e6ce4ce61c90d190a7f8c4f4ddf0bff6ee2413c33c"
9
]
10
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free