Marketplace has launched, further enabling blockchain developers! Learn more

Contents

platform.getTx RPC method

The API credit value for this method is 1 . To learn more about API credits and each method's value, visit the API Credits page.

Parameters:

  1. txID - string - The transaction id.
  2. encoding - string - Optional encoding parameter to specify the format for the returned transaction. Can be either "cb58", "hex", or "json". Defaults to "cb58".

Returns:

  1. txID - string - The id of the subnet.
  2. encoding - string - Can be either "cb58", "hex", or "json". Defaults to "cb58".

Code Examples:

curl --location --request POST http://sample-endpoint-name.network.quiknode.pro/token-goes-here/ext/bc/P \
--header 'Content-Type: application/json' \
--data-raw '{
    "jsonrpc":"2.0",
    "id"     :1,
    "method" :"platform.getTx",
    "params" :{
        "txID":"2dum8LzyddFVZhiYBCUBZw3Xqsb2GdZAP6FsmCPB1gHGJhw1oJ",
        "encoding": "cb58"
    }
}'
Ready to get started? Create a free account