Facilities to use subxt
to connect with an Avail Node.
Once node is updated, we can re-generate the src/api_dev.rs
file using the following script:
NOTE: The script requires a running node at localhost:9944
#> ./build_api.sh
-
If you encounter any warnings or errors related to 'sed' while running the script on macOS, please ensure that you have gnu-sed installed.
-
If you're not receiving any error messages, but the code generation process is not producing any output, consider running the individual code generation commands separately to check for any error messages.
This binary executes each example on an Avail Node. It launches the node before running any example.
The following command uses the node located in ./target/release/avail-node
to run each example
Examples are store in e2e folder.
$> cargo run -- --avail-path ../target/release/avail-node