Skip to main content

Parameters

chainId
string
default:"sui"
required
Unique identifier for a blockchain network.
id
number
default:1
required
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"unsafe_paySui"
required
JSON-RPC method name.
params
object
required
Create an unsigned transaction to send SUI coins to multiple recipients with defined amounts.Positional parameters for unsafe_paySui:
  • params[0]: The Sui address of the transaction signer.
  • params[1]: List of SUI coin object IDs to be used (including gas coin).
  • params[2]: List of recipient Sui addresses.
  • params[3]: List of amounts to send to each recipient (in the same order).
  • params[4]: Gas budget to be used by this transaction.

Returns

result
object
The unsigned transaction block for a SUI coin payment.
curl --request POST \
  --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=sui \
  --header 'content-type: application/json' \
  --data '{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "unsafe_paySui",
    "params": [
      "0xaabbccddeeff00112233445566778899aabbccdd00112233445566778899aabb",
      [
        "0xcoin1",
        "0xcoin2",
        "0xcoin3"
      ],
      [
        "0xrecipient1",
        "0xrecipient2"
      ],
      [
        "1000000",
        "250000"
      ],
      "50000"
    ]
  }'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {}
}