ScanShieldedTrc20NotesByIvk

Scan outgoing notes (Confirmed state).

This method will use 30 Compute Units.


Parameters

  • start_block_index - Int32 - Required - An integer representing the starting block index for the shielded TRC20 contract events

  • end_block_index - Int32 - Required - An integer representing the ending block index for the shielded TRC20 contract events

  • shielded_TRC20_contract_address - String - Required - The address of the shielded TRC20 contract

  • ivk - String - Required - A string representing the incoming viewing key (ivk) associated with the shielded TRC20 contract

  • ak - String - Required - A string representing the address key (ak)

  • nk - String - Required - A string representing the note key (nk)

  • visible - boolean - Required - A boolean value indicating whether the events should be visible or not

Returns

is_spent - indicates whether the specified shielded TRC20 contract note has been spent or not

curl https://mainnet.tron.validationcloud.io/v1/<YOUR_API_KEY_HERE>/walletsolidity/scanshieldedtrc20notesbyivk \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{
      "ivk": "INCOMING_VIEWING_KEY",
      "shielded_TRC20_contract_address": "CONTRACT_ADDRESS",
      "end_block_index": 567,
      "start_block_index": 345,
      "ak": "ADDRESS_KEY",
      "visible": true,
      "nk": "NOTE_KEY"
}
'

Last updated

Was this helpful?