RPC List¶
For the specific definition of API, please refer to the following link: api/api.proto core/Contract.proto.
Note
SolidityNode is deprecated. Now a FullNode supports all RPCs of a SolidityNode. New developers should deploy FullNode only.
1. Get account information
rpc GetAccount (Account) returns (Account) {}
2. TRX transfer
rpc CreateTransaction (TransferContract) returns (Transaction) {}
3. Broadcast transaction
rpc BroadcastTransaction (Transaction) returns (Return) {}
Description: Transfer, vote, issuance of token, or participation in token offering. Sending signed transaction information to node, and broadcasting it to the entire network after witness verification.
4. Create an account
rpc CreateAccount (AccountCreateContract) returns (Transaction) {}
5. Account name update
rpc UpdateAccount (AccountUpdateContract) returns (Transaction) {}
6. Vote for super representative candidates
rpc VoteWitnessAccount (VoteWitnessContract) returns (Transaction) {}
7. Query the ratio of brokerage of the witness
rpc GetBrokerageInfo (BytesMessage) returns (NumberMessage) {}
8. Query unclaimed reward
rpc GetRewardInfo (BytesMessage) returns (NumberMessage) {}
9. Update the ratio of brokerage
rpc UpdateBrokerage (UpdateBrokerageContract) returns (TransactionExtention) {}
10. Issue a token
rpc CreateAssetIssue (AssetIssueContract) returns (Transaction) {}
11. Query of list of super representative candidates
rpc ListWitnesses (EmptyMessage) returns (WitnessList) {}
12. Application for super representative
rpc CreateWitness (WitnessCreateContract) returns (Transaction) {}
Description: To apply to become TRON’s Super Representative candidate.
13. Information update of Super Representative candidates
rpc UpdateWitness (WitnessUpdateContract) returns (Transaction) {}
Description: Update the website url of the SR.
14. Token transfer
rpc TransferAsset (TransferAssetContract) returns (Transaction){}
15. Participate a token
rpc ParticipateAssetIssue (ParticipateAssetIssueContract) returns (Transaction) {}
16. Query the list of nodes connected to the ip of the api
rpc ListNodes (EmptyMessage) returns (NodeList) {}
17. Query the list of all issued tokens
rpc GetAssetIssueList (EmptyMessage) returns (AssetIssueList) {}
18. Query the token issued by a given account
rpc GetAssetIssueByAccount (Account) returns (AssetIssueList) {}
19. Query the token information by token name
rpc GetAssetIssueByName (BytesMessage) returns (AssetIssueContract) {}
20. Query the list of tokens by timestamp
rpc GetAssetIssueListByTimestamp (NumberMessage) returns (AssetIssueList){}
21. Get current block information
rpc GetNowBlock (EmptyMessage) returns (Block) {}
22. Get a block by block height
rpc GetBlockByNum (NumberMessage) returns (Block) {}
23. Get the total number of transactions
rpc TotalTransaction (EmptyMessage) returns (NumberMessage) {}
24. Query the transaction by transaction id
rpc getTransactionById (BytesMessage) returns (Transaction) {}
25. Query the transaction by timestamp
rpc getTransactionsByTimestamp (TimeMessage) returns (TransactionList) {}
26. Query the transactions initiated by an account
rpc getTransactionsFromThis (Account) returns (TransactionList) {}
27. Query the transactions received by an account
rpc getTransactionsToThis (Account) returns (NumberMessage) {}
28. Freeze TRX 该接口已废弃。
rpc FreezeBalance (FreezeBalanceContract) returns (Transaction) {}
29. Unfreeze TRX
rpc UnfreezeBalance (UnfreezeBalanceContract) returns (Transaction) {}
30. Block producing reward redemption
rpc WithdrawBalance (WithdrawBalanceContract) returns (Transaction) {}
31. Unfreeze token balance
rpc UnfreezeAsset (UnfreezeAssetContract) returns (Transaction) {}
32. Query the next maintenance time
rpc GetNextMaintenanceTime (EmptyMessage) returns (NumberMessage) {}
33. Query the transaction fee & block information
rpc GetTransactionInfoById (BytesMessage) returns (TransactionInfo) {}
34. Query block information by block id
rpc GetBlockById (BytesMessage) returns (Block) {}
35. Update token information
rpc UpdateAsset (UpdateAssetContract) returns (Transaction) {}
Description: Token update can only be initiated by the token issuer to update token description, url, maximum bandwidth consumption by each account and total bandwidth consumption.
36. Query the list of all the tokens by pagination
rpc GetPaginatedAssetIssueList (PaginatedMessage) returns (AssetIssueList) {}
37. Deploy a smart contract
rpc DeployContract (CreateSmartContract) returns (TransactionExtention) {}
38. Trigger a smart contract
rpc TriggerContract (TriggerSmartContract) returns (TransactionExtention) {}
39. Create a shielded transaction
rpc CreateShieldedTransaction (PrivateParameters) returns (TransactionExtention) {}
40. Get a Merkle tree information of a note
rpc GetMerkleTreeVoucherInfo (OutputPointInfo) returns (IncrementalMerkleVoucherInfo) {}
41. Scan note by ivk
rpc ScanNoteByIvk (IvkDecryptParameters) returns (DecryptNotes) {}
42. Scan note by ovk
rpc ScanNoteByOvk (OvkDecryptParameters) returns (DecryptNotes) {}
43. Get spending key
rpc GetSpendingKey (EmptyMessage) returns (BytesMessage) {}
44. Get expanded spending key
rpc GetExpandedSpendingKey (BytesMessage) returns (ExpandedSpendingKeyMessage) {}
45. Get ak from ask
rpc GetAkFromAsk (BytesMessage) returns (BytesMessage) {}
46. Get nk from nsk
rpc GetNkFromNsk (BytesMessage) returns (BytesMessage) {}
47. Get incoming viewing key
rpc GetIncomingViewingKey (ViewingKeyMessage) returns (IncomingViewingKeyMessage) {}
48. Get diversifier
rpc GetDiversifier (EmptyMessage) returns (DiversifierMessage) {}
49. Get zen payment address
rpc GetZenPaymentAddress (IncomingViewingKeyDiversifierMessage) returns (PaymentAddressMessage) {}
50. Get rcm
rpc GetRcm (EmptyMessage) returns (BytesMessage) {}
51. Get a note status of is spent or not
rpc IsSpend (NoteParameters) returns (SpendResult) {}
52. Create a shielded transaction without using ask
rpc CreateShieldedTransactionWithoutSpendAuthSig (PrivateParametersWithoutAsk) returns (TransactionExtention) {}
53. Create a shielded transaction hash
rpc GetShieldTransactionHash (Transaction) returns (BytesMessage) {}
54. Create a signature for a shielded transaction
rpc CreateSpendAuthSig (SpendAuthSigParameters) returns (BytesMessage) {}
55. Create a shield nullifier
rpc CreateShieldNullifier (NfParameters) returns (BytesMessage) {}
56. Get new shielded address
rpc GetNewShieldedAddress (EmptyMessage) returns (ShieldedAddressInfo){}
57. Create shielded contract parameters
rpc CreateShieldedContractParameters (PrivateShieldedTRC20Parameters) returns (ShieldedTRC20Parameters) {}
58. Create shielded contract parameters without ask
rpc CreateShieldedContractParametersWithoutAsk (PrivateShieldedTRC20ParametersWithoutAsk) returns (ShieldedTRC20Parameters) {}
59. Scan shielded TRC20 notes by ivk
rpc ScanShieldedTRC20NotesbyIvk (IvkDecryptTRC20Parameters) returns (DecryptNotesTRC20) {}
60. Scan shielded TRC20 notes by ovk
rpc ScanShieldedTRC20NotesbyOvk (OvkDecryptTRC20Parameters) returns (DecryptNotesTRC20) {}
61. Get the status of shielded TRC20 note of spent or not
rpc IsShieldedTRC20ContractNoteSpent (NfTRC20Parameters) returns (NullifierResult) {}
62. Get the trigger input for the shielded TRC20
rpc GetTriggerInputForShieldedTRC20Contract (ShieldedTRC20TriggerContractParameters) returns (BytesMessage) {}
63. Create an market order
rpc MarketSellAsset (MarketSellAssetContract) returns (TransactionExtention) {};
64. Cancel the order
rpc MarketCancelOrder (MarketCancelOrderContract) returns (TransactionExtention) {};
65. Get all orders for the account
rpc GetMarketOrderByAccount (BytesMessage) returns (MarketOrderList) {};
66. Get all trading pairs
rpc GetMarketPairList (EmptyMessage) returns (MarketOrderPairList) {};
67. Get all orders for the trading pair
rpc GetMarketOrderListByPair (MarketOrderPair) returns (MarketOrderList) {};
68. Get all prices for the trading pair
rpc GetMarketPriceByPair (MarketOrderPair) returns (MarketPriceList) {};
69. Get order by id
rpc GetMarketOrderById (BytesMessage) returns (MarketOrder) {};
70. perform a historical balance lookup
rpc GetAccountBalance (AccountBalanceRequest) returns (AccountBalanceResponse){};
71. fetch all balance-changing transactions in a block
rpc GetBlockBalanceTrace (BlockBalanceTrace.BlockIdentifier) returns (BlockBalanceTrace) {};
72. get the burn trx amount
rpc GetBurnTrx (EmptyMessage) returns (NumberMessage) {};
73. Freeze TRX
rpc FreezeBalanceV2 (FreezeBalanceV2Contract) returns (TransactionExtention) {}
74. UnFreeze TRX
rpc UnfreezeBalanceV2 (UnfreezeBalanceV2Contract) returns (TransactionExtention) {}
75. Withdraw Staked TRX
rpc WithdrawExpireUnfreeze (WithdrawExpireUnfreezeContract) returns (TransactionExtention) {}
76. Delegate Resource
rpc DelegateResource (DelegateResourceContract) returns (TransactionExtention) {}
77. UnDelegate Resource
rpc UnDelegateResource (UnDelegateResourceContract) returns (TransactionExtention) {}
78. Query transaction information in the pending pool
rpc GetTransactionFromPending (BytesMessage) returns (Transaction) {};
79. Query the pending pool transaction id list
rpc GetTransactionListFromPending (EmptyMessage) returns (TransactionIdList) {};
80. Query the size of the pending pool
rpc GetPendingSize (EmptyMessage) returns (NumberMessage) {};
Nodes: FullNode
rpc CancelAllUnfreezeV2 (CancelAllUnfreezeV2Contract) returns (TransactionExtention) {}
82. Get bandwidth unit price
rpc GetBandwidthPrices (EmptyMessage) returns (PricesResponseMessage) {}
83. Get energy unit price
rpc GetEnergyPrices (EmptyMessage) returns (PricesResponseMessage) {}
84. Get transaction memo fee
rpc GetMemoFee (EmptyMessage) returns (PricesResponseMessage) {}