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_requestWithdrawStake"
required
JSON-RPC method name.
params
object
required
Creates an unsigned transaction to withdraw staked SUI.Positional parameters for unsafe_requestWithdrawStake:
  • params[0]: The Sui address of the transaction signer.
  • params[1]: The object ID of the staked SUI to withdraw.
  • params[2]: Optional gas object ID. If omitted, a gas object will be selected automatically.
  • params[3]: The gas budget for the transaction.

Returns

result
object
The unsigned transaction block that performs the stake withdrawal.
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_requestWithdrawStake",
    "params": [
      "0xabc123456789abcdef123456789abcdef123456789abcdef123456789abcdef",
      "0xstakeobject1234567890abcdef1234567890abcdef",
      "0xgasobject1234567890abcdef",
      "100000"
    ]
  }'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {}
}