getnowblock
https://triport.io/rpc/tron/wallet/getnowblockReturns the current solid block reported by the selected Tron wallet node.
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{}; 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.
responseobjectErrors
Wallet failures use HTTP status plus JSON. See Tron errors.
| HTTP | Meaning | When it happens |
|---|---|---|
400 | Bad request | The JSON body is malformed or contains unsupported fields. |
401 | Unauthorized | The API key is missing or invalid. |
403 | Forbidden | The scope or tier does not permit the request. |
429 | Rate limited | The 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:
getblockbynumreads a specified height.