You can get an RPC URL for Tron from www.trongrid.io.
chainID
totron:nile
rpcUrl
togrpc.nile.trongrid.io:50051?api_key=<API_KEY>
method
totron_sendTransaction
params
to a base64 encoded serialized Tron transaction
params
using tronweb
, for a complete example checkout this example repo:
The RPC URL for Tron uses the GRPC protocol, not HTTP.
Supported Methods and ChainIds
Methods:tron_sendTransaction
tron:mainnet
tron:nile
tron:shasta