APIs for shielded smart contract note scanning, transaction construction, and spend/receive handling.
APIs for shielded smart contract note scanning, transaction construction, and spend/receive handling.
APIs in this group
Note scanning and query
| API | Purpose |
|---|---|
| ScanShieldedTrc20NotesByIvk | Scan shielded TRC20 notes by incoming viewing key. |
| ScanAndMarkNoteByIvk | Scan notes by incoming viewing key and mark spent notes. |
| ScanShieldedTrc20NotesByOvk | Scan shielded TRC20 notes by outgoing viewing key. |
| GetSpendingKey | Generate or query a spending key. |
| GetExpandedSpendingKey | Query an expanded spending key. |
| GetAkFromAsk | Derive ask-related key material. |
| GetNkFromNsk | Derive nsk-related key material. |
| GetIncomingViewingKey | Derive an incoming viewing key. |
| GetDiversifier | Generate a diversifier. |
| GetZenPaymentAddress | Generate a shielded payment address. |
Transaction construction and verification
| API | Purpose |
|---|---|
| CreateShieldedContractParameters | Create shielded contract parameters. |
| CreateShieldedContractParametersWithoutAsk | Create shielded parameters without ask. |
| IsShieldedTrc20ContractNoteSpent | Check whether a shielded TRC20 note is spent. |
Related resources
- Smart contracts — smart contract execution model
- Resource model — Energy and fee handling for contract calls
- TronGrid node service and extension API introduction — hosted node access and extension APIs