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_pay"
required
JSON-RPC method name.
params
object
required
Create an unsigned transaction to send Coin<T> to multiple recipients.Positional parameters for unsafe_pay:
  • params[0]: The signer’s Sui address.
  • params[1]: The Sui coin object IDs to use for payment.
  • params[2]: List of recipient Sui addresses.
  • params[3]: Amounts to send to each recipient, in the same order.
  • params[4]: Optional gas object ID. If not provided, the node will select one.
  • params[5]: Gas budget for the transaction.

Returns

result
object
Unsigned transaction block for sending multiple payments.
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_pay",
    "params": [
      "0xabcde1234567890abcde1234567890abcde1234567890abcde1234567890abcd",
      [
        "0xcoin1",
        "0xcoin2"
      ],
      [
        "0xrecipient1",
        "0xrecipient2"
      ],
      [
        "10000",
        "5000"
      ],
      "0xgasobject",
      "100000"
    ]
  }'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {}
}