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:"suix_subscribeTransaction"
required
JSON-RPC method name.
params
object
required
Parameters for suix_subscribeTransaction: [filter]. The filter object specifies the criteria for subscription to a stream of Sui transaction effects.Positional parameters for suix_subscribeTransaction:
  • params[]: Transaction filter criteria.

Returns

result
object
SuiTransactionBlockEffects object that represents the effects of a transaction block.
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": "suix_subscribeTransaction",
    "params": [
      {
        "eventType": "Transfer",
        "sender": "0xabc123...",
        "recipient": "0xdef456..."
      }
    ]
  }'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "transactionHash": "0x123abc456def789...",
    "effects": {
      "gasUsed": "123456",
      "events": [
        {
          "__truncated": true
        }
      ]
    }
  }
}