4 stable releases
Uses old Rust 2015
new 1.0.17 | Nov 19, 2024 |
---|---|
1.0.16 | Nov 15, 2024 |
#1259 in Web programming
363 downloads per month
200KB
5.5K
SLoC
Rust API client for satstream-rust-sdk
Satstream API
Overview
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.
- API version: 1.0
- Package version: 1.0.17
- Build package: io.swagger.codegen.languages.RustClientCodegen For more information, please visit https://satstream.io
Installation
Put the package under your project folder and add the following in import:
"./satstream-rust-sdk"
Documentation for API Endpoints
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 |
Documentation For Models
- BigInt
- GithubComSatstreamSsApiServerApiAddressesResponsesError
- GithubComSatstreamSsApiServerApiBlocksResponsesError
- GithubComSatstreamSsApiServerApiRunesResponsesError
- GithubComSatstreamSsApiServerApiTransactionsResponsesError
- GithubComSatstreamSsUtilsOrdinalsTerms
- GithubComSatstreamSsUtilsOrdinalsTermsRange
- GithubComSatstreamSsUtilsRpcBlock
- GithubComSatstreamSsUtilsRpcBtcTx
- GithubComSatstreamSsUtilsRpcPrevOut
- GithubComSatstreamSsUtilsRpcScriptPubKey
- GithubComSatstreamSsUtilsRpcScriptSig
- GithubComSatstreamSsUtilsRpcUtxoRune
- GithubComSatstreamSsUtilsRpcVin
- GithubComSatstreamSsUtilsRpcVout
- GithubComSatstreamSsUtilsStoreTransactionDocument
- ResponsesBlockRange
- ResponsesGetAddressBalance
- ResponsesGetAddressBalanceData
- ResponsesGetAddressMempoolTxs
- ResponsesGetAddressNonInscriptionUtxo
- ResponsesGetAddressNonInscriptionUtxoData
- ResponsesGetAddressRuneBalance
- ResponsesGetAddressRuneBalanceData
- ResponsesGetAddressRunesBalanceList
- ResponsesGetAddressRunesBalanceListData
- ResponsesGetAddressRunesBalanceListItem
- ResponsesGetAddressTimeframeBalance
- ResponsesGetAddressTimeframeBalanceData
- ResponsesGetAddressTimeframeBalanceItem
- ResponsesGetAddressTimeframeBalanceItemBlockRange
- ResponsesGetBlockByHash
- ResponsesGetBlockHeight
- ResponsesGetBlockHeightData
- ResponsesGetBlockInfo
- ResponsesGetBlockTransactions
- ResponsesGetFees
- ResponsesGetFeesData
- ResponsesGetMempoolTransactions
- ResponsesGetMempoolTxInfo
- ResponsesGetRuneHolders
- ResponsesGetRuneHoldersData
- ResponsesGetRuneInfo
- ResponsesGetRunesInfoList
- ResponsesGetRunesInfoListData
- ResponsesGetTransaction
- ResponsesGetTxInfo
- ResponsesGetTxInfoData
- ResponsesNonInscriptionUtxo
- ResponsesPaginationInfo
- ResponsesRuneHolder
- ResponsesRuneInfo
- ResponsesSendRawTransaction
- ResponsesSendRawTransactionData
Documentation For Authorization
ApiKeyAuth
- Type: API key
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)
Author
Dependencies
~13MB
~240K SLoC