flow-archive-client

command
v0.29.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2022 License: Apache-2.0 Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Flow DPS Client

Description

The Flow Archive Client provides access to a Flow DPS Server's index through the command line. It can be used to execute Cadence scripts at an arbitrary block height of a fork. It uses the Flow DPS Server's GRPC API as the backend to query the required data.

Usage

Usage of flow-archive-client:
  -a, --api string      host for GRPC API server
  -e, --cache uint      maximum cache size for register reads in bytes (default 1000000000)
  -h, --height uint     block height to execute the script at
  -l, --level string    log output level (default "info")
  -p, --params string   comma-separated list of Cadence parameters
  -s, --script string   path to file with Cadence script (default "script.cdc")

Cadence parameters can be provided as a list of comma-separated Type(Value) pairs. Whenever raw bytes are represented, they should be given in hexadecimal format.

-p "UFix64(123.456),String(/storage/FlowTokenVault),Bytes(43F164656E636521467572AC76657)".

Example

The following executes a Cadence script by using state retrieved from the given GRPC API.

./flow-archive-client -a "127.0.0.1:5005" -s "get_balance.cdc" -p "Address(436164656E636521)"

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL