v1

latestOpenAPI 3.0.02026-07-17224996.6 KB
Scripts

Execute a Cadence Script

Executes a read-only Cadence script against the execution state at the given block height or ID. If block height or ID is not specified, then the script is executed at the latest sealed block height.

post/scripts

Query parameters

block_idstring hexadecimal

A 32-byte unique identifier for an entity.

The ID of the block to execute the script against. For a specific block height, use block_height instead.

string uint64
OR
'final' | 'sealed'

The height of the block to execute the script against. This parameter is incompatible with block_id.

Request body

scriptstring base64

Base64 encoded content of the Cadence script.

argumentsstring[]

An list of arguments each encoded as Base64 passed in the JSON-Cadence interchange format.

Response

OK

valuestring byte

Example response

{
  "value": ""
}