Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
We have prepared commonly used SDK tools for developers.
[dependencies] blockrush-sdk = { path = "path/to/blockrush-sdk-0.1.0.crate" } tokio = { version = "1", features = ["full"] } serde = { version = "1", features = ["derive"] } serde_json = "1"
#[tokio::test] async fn test_blockrush_sdk() { let sdk = BlockrushSdk::new(Region::JP, "xxxxxx").await.unwrap(); assert_eq!(sdk.region(), Region::JP); let tx_data = "ASN=".to_string(); let resp: SdkResponse<serde_json::Value> = sdk.send_transaction(tx_data).await.unwrap(); println!("{:?}", resp.body); let resp2: SdkResponse<serde_json::Value> = sdk.submit_batch(&vec!["ASN=".to_string()]).await.unwrap(); println!("{:?}", resp2.body); }