Crates.io | satstream-rust-sdk |
lib.rs | satstream-rust-sdk |
version | 1.0.17 |
source | src |
created_at | 2024-11-15 08:41:49.071716 |
updated_at | 2024-11-19 11:32:37.508237 |
description | Satstream API SDK for Rust |
homepage | |
repository | |
max_upload_size | |
id | 1448881 |
size | 254,929 |
Satstream API
This API client was generated by the swagger-codegen project. By using the swagger-spec from a remote server, you can easily generate an API client.
Put the package under your project folder and add the following in import:
"./satstream-rust-sdk"
All URIs are relative to https://api.satstream.io/api/v1
Class | Method | HTTP request | Description |
---|
AddressesApi | get_address_balance | Get /addresses/{address}/balance | Get address balance AddressesApi | get_address_non_inscription_utxos | Get /addresses/{address}/utxos | Get address non-inscription UTXOs AddressesApi | get_address_rune_balance | Get /addresses/{address}/runes/{runeid} | Get address rune balance AddressesApi | get_address_runes_balance_list | Get /addresses/{address}/runes | Get address runes balance list AddressesApi | get_address_timeframe_balance | Get /addresses/{address}/balance/timeframe | Get address timeframe balance BlocksApi | get_block_by_hash | Get /blocks/hash/{hash} | Get block by hash BlocksApi | get_block_info | Get /blocks/{height} | Get block info BlocksApi | get_block_transactions | Get /blocks/{height}/transactions | Get block transactions BlocksApi | get_current_block_height | Get /blocks/current-height | Get current block height FeesApi | get_recommended_fees | Get /fees | Get recommended fees MempoolApi | get_address_mempool_transactions | Get /mempool/addresses/{address}/transactions | Get address mempool transactions MempoolApi | get_mempool_transaction_info | Get /mempool/transactions/{txid} | Get mempool transaction info MempoolApi | get_mempool_transactions | Get /mempool/transactions | Get mempool transactions RunesApi | get_runes_holders | Get /runes/{runeId}/holders | Get rune holders RunesApi | get_runes_info | Get /runes/{runeId} | Get rune info RunesApi | get_runes_info_list | Get /runes | Get runes info list TransactionsApi | broadcast_transaction | Post /transactions/broadcast | Broadcast transaction TransactionsApi | get_transaction | Get /indexer/tx/{hash} | Get transaction TransactionsApi | get_transaction_info | Get /transactions/{txid} | Get transaction info
Example
auth := context.WithValue(context.TODO(), sw.ContextAPIKey, sw.APIKey{
Key: "APIKEY",
Prefix: "Bearer", // Omit if not necessary.
})
r, err := client.Service.Operation(auth, args)