TriportRPC

getnowblock

POSThttps://triport.io/rpc/tron/wallet/getnowblock

Returns the current solid block reported by the selected Tron wallet node.

Tron mainnettron:rpcfree+; tron_read_rpc: 15 / 20 / 100 / 250 RPS (free / basic / pro / business; default, unmeasured)

getnowblock returns the native wallet representation of the node's current solid block. It is the wallet-layer choice when a consumer needs a complete native block object rather than only an EVM-form height.

The response describes the selected node's view. Use eth_blockNumber for a compact EVM quantity; neither method alone is a pool-wide freshness guarantee.

Parameters

The request body is a required empty JSON object.

bodyobjectrequired
Must be {}; additional properties are not accepted by the contract.

Response

The concrete response example is unknown: tron.yaml defines an extensible wallet object but publishes no response example. The empty object above is a schema-valid placeholder, not a captured successful block.

responseobject
Operation-dependent native wallet object; fields are not enumerated by the contract.

Errors

Wallet failures use HTTP status plus JSON. See Tron errors.

HTTPMeaningWhen it happens
400Bad requestThe JSON body is malformed or contains unsupported fields.
401UnauthorizedThe API key is missing or invalid.
403ForbiddenThe scope or tier does not permit the request.
429Rate limitedThe tron_read_rpc budget is exceeded.

Examples

const response = await fetch("https://triport.io/rpc/tron/wallet/getnowblock", {
  method: "POST",
  headers: { "x-token": process.env.TRIPORT_API_KEY, "Content-Type": "application/json" },
  body: "{}",
});
const block = await response.json();

Notes

  • The native block object can be larger than the height returned by JSON-RPC.
  • No wallet WebSocket or public mempool stream is available.
  • Related: getblockbynum reads a specified height.