Skip to content

Latest commit

 

History

History
 
 

avail-subxt

Avail node SubXt Library

Facilities to use subxt to connect with an Avail Node.

Generate/Update src/api_dev.rs

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 

Troubleshooting

  1. If you encounter any warnings or errors related to 'sed' while running the script on macOS, please ensure that you have gnu-sed installed.

  2. 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.

E2E Binary

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