suix_getCoins

Return all Coin<coin_type> objects owned by an address.

Parameters:

owner< SuiAddress > - The owner's Sui address

coin_type< string > - Optional type names for the coin (e.g., 0x168da5bf1f48dafc111b0a488fa454aca95e0b5e::usdc::USDC), default to 0x2::sui::SUI if not specified.

cursor< ObjectID > - Optional paging cursor

limit< uint > - Maximum number of items per page

Returns:

CoinPage< Page_for_Coin_and_ObjectID >

Example:

// Request
curl  https://sui.blockpi.network/v1/rpc/your-rpc-key -X POST -H "Content-Type: application/json" 
--data 
'{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "suix_getCoins",
  "params": [
    "0x2b9839632975470cf865bcf5872d162c731ecb98f2453bb39679d0f0f9d1991e",
    "0x2::sui::SUI"
  ]
}'

// Result
{
    "jsonrpc": "2.0",