Parameters
- request_typestring
The type of request i.e view_state
- finalitystring
The assurance that the transaction cannot be altered, reversed, or canceled after they are completed. For finality=final, it means that it has been validated on at least 66% of the nodes in the network and for finality=optimistic, it uses the latest block recorded on the node that responded to the query passed
- block_idinteger/string
The block id, it could be either block number or block hash
- account_idstring
The id of the account associcated with the transaction
- prefix_base64string
The key prefix encoded in base64
- after_key_base64string
(Optional) A pagination cursor encoded in base64. Pass the last_key returned by the previous response to fetch the next page of state entries. Added in nearcore v2.13.0.
- limitinteger
(Optional) The maximum number of state entries to return in a single page. Added in nearcore v2.13.0.
Returns
- block_hashstring
The hash of the block this transaction was associated with
- block_heightinteger
The height of the block this transactions was associated with
- proofarray
(Optional) The proof
- last_keystring
(Optional) A pagination cursor encoded in base64, present when more state entries remain and absent when the listing is complete. Pass it as after_key_base64 in a subsequent request to fetch the next page. Added in nearcore v2.13.0.
- valuesarray
An array of values that are sent with the transaction
- keystring
The signer key
- valuestring
Integer of the value sent with this transaction encoded as a hexadecimal
- proofarray
The proof encoded in hexadecimal form