# README
Go API client for satstream_go_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.52
- Build package: io.swagger.codegen.v3.generators.go.GoClientCodegen For more information, please visit https://satstream.io
Installation
Put the package under your project folder and add the following in import:
import "./satstream_go_sdk"
Documentation for API Endpoints
All URIs are relative to https://api.satstream.io/api/v1
Class | Method | HTTP request | Description |
---|---|---|---|
AddressesApi | GetAddress | Get /address/{address} | Get address info |
AddressesApi | GetAddressBalance | Get /address/{address}/balance | Get address balance |
AddressesApi | GetAddressDeltas | Get /address/{address}/deltas | Get address deltas |
AddressesApi | GetAddressRuneDeltas | Get /address/{address}/deltas/runes | Get address rune deltas |
AddressesApi | GetAddressUtxos | Get /address/{address}/outputs | Get UTXOs for an address |
AddressesApi | ValidateAddress | Get /address/{address}/validate | Validate address |
BlocksApi | GetBlockCount | Get /blockcount | Get the height of the latest block |
BlocksApi | GetBlockDecoded | Get /block/raw/{identifier}/decoded | Get block by hash or height (verbosity 2) |
BlocksApi | GetBlockHashByHeight | Get /blockhash/{block_height} | Returns blockhash of specified block. |
BlocksApi | GetBlockHex | Get /block/raw/{identifier}/hex | Get block by hash or height (verbosity 0) |
BlocksApi | GetBlockInfo | Get /block/{identifier} | Get block info by hash or height |
BlocksApi | GetBlockPrevout | Get /block/raw/{identifier}/prevout | Get block by hash or height (verbosity 3) |
BlocksApi | GetBlockStats | Post /block/stats | Get block stats |
BlocksApi | GetBlockSummary | Get /block/raw/{identifier}/summary | Get block by hash or height (verbosity 1) |
BlocksApi | GetBlockchainInfo | Get /blockchain/info | Get blockchain information |
BlocksApi | GetBlocks | Get /blocks | Returns the latest block height, last 100 block hashes, and featured inscriptions |
BlocksApi | GetLatestBlockHeight | Get /blockheight | Returns the height of the latest block. |
BlocksApi | GetLatestBlockhash | Get /blockhash | Returns blockhash for the latest block. |
BlocksApi | GetLatestBlocktime | Get /blocktime | Get the timestamp of the latest block |
FeesApi | EstimateRawFee | Post /fee/estimate-raw | Estimate Raw Fee |
FeesApi | EstimateSmartFee | Post /fee/estimate-smart | Estimate smart fee |
InscriptionsApi | FetchInscriptionChild | Get /inscription/{inscription_id}/{child_index} | Get inscription child info |
InscriptionsApi | FetchInscriptions | Post /inscriptions | Fetch multiple inscriptions |
InscriptionsApi | GetBlockInscriptions | Get /inscriptions/block/{block_height} | Get inscriptions in a specific block |
InscriptionsApi | GetBlockInscriptionsPage | Get /inscriptions/block/{block_height}/{page} | Get paginated inscriptions in a specific block |
InscriptionsApi | GetInscription | Get /inscription/{inscription_id} | Get inscription info |
InscriptionsApi | GetLatestInscriptions | Get /inscriptions | Get latest inscriptions |
InscriptionsApi | GetLatestInscriptionsPage | Get /inscriptions/{page} | Get latest inscriptions page |
MempoolApi | GetMempoolAncestors | Post /mempool/ancestors | Get mempool ancestors |
MempoolApi | GetMempoolDescendants | Post /mempool/descendants | Get mempool descendants |
MempoolApi | GetMempoolInfo | Get /mempool/info | Get mempool information |
MempoolApi | GetRawMempool | Post /mempool/raw | Get raw mempool |
MempoolApi | TestMempoolAccept | Post /mempool/test-accept | Test mempool accept |
MiningApi | GetMiningInfo | Get /mining/info | Get mining information |
MiningApi | GetNetworkHashps | Post /mining/networkhashps | Get network hash per second |
NetworkApi | GetChainTxStats | Post /chain/txstats | Get chain tx stats |
NetworkApi | GetDifficulty | Get /chain/difficulty | Get difficulty |
OutputsApi | GetOutputByOutpoint | Get /output/{outpoint} | Get output info by outpoint |
OutputsApi | GetOutputs | Post /outputs | Get multiple outputs |
PSBTsApi | AnalyzePsbt | Post /psbt/analyze | Analyze PSBT |
PSBTsApi | CombinePsbt | Post /psbt/combine | Combine PSBTs |
PSBTsApi | CreatePsbt | Post /psbt/create | Create PSBT |
PSBTsApi | DecodePsbt | Post /psbt/decode | Decode PSBT |
PSBTsApi | JoinPsbts | Post /psbt/join | Join PSBTs |
RunesApi | GetLatestRunes | Get /runes | Get latest runes |
RunesApi | GetLatestRunesPage | Get /runes/{page} | Get latest runes page |
RunesApi | GetRune | Get /rune/{identifier} | Get rune info |
SatoshisApi | GetSatoshi | Get /sat/{number} | Get satoshi info |
ScriptsApi | DecodeScript | Post /script/decode | Decode Script |
StatusApi | GetStatus | Get /status | Get server status |
TransactionsApi | CombineRawTransaction | Post /tx/combine | Combine Raw Transactions |
TransactionsApi | ConvertToPsbt | Post /tx/convert-to-psbt | Convert Raw Transaction to PSBT |
TransactionsApi | CreateRawTransaction | Post /tx/create | Create Raw Transaction |
TransactionsApi | DecodeTxInscriptions | Get /tx/{txid}/inscriptions | Decode transaction inscriptions |
TransactionsApi | GetRawTransaction | Get /tx/{txid}/raw/decode | Get raw transaction (verbosity 1) |
TransactionsApi | GetRawTransactionHex | Get /tx/{txid}/raw/hex | Get raw transaction (verbosity 0) |
TransactionsApi | GetRawTransactionPrevout | Get /tx/{txid}/raw/prevout | Get raw transaction with prevouts (verbosity 2) |
TransactionsApi | GetTxOut | Post /tx/out | Get transaction output |
TransactionsApi | GetTxOutProof | Post /tx/outproof | Get transaction output proof |
TransactionsApi | GetTxSpendingPrevout | Post /tx/spending-prevout | Get transaction spending prevout |
TransactionsApi | SendRawTransaction | Post /tx/send | Send raw transaction |
TransactionsApi | VerifyTxOutProof | Post /tx/outproof/verify | Verify transaction output proof |
Documentation For Models
- AddressResponse
- AddressRuneDelta
- AllOfBlockVin2ScriptSig
- AllOfBlockVin3Prevout
- AllOfDecodedPsbtInputFinalScriptsig
- AllOfDecodedPsbtInputNonWitnessUtxo
- AllOfDecodedPsbtInputRedeemScript
- AllOfDecodedPsbtInputUnknown
- AllOfDecodedPsbtInputWitnessScript
- AllOfDecodedPsbtInputWitnessUtxo
- AllOfDecodedPsbtOutputRedeemScript
- AllOfDecodedPsbtOutputUnknown
- AllOfDecodedPsbtOutputWitnessScript
- AllOfDecodedPsbtUnknown
- AllOfDecodedPsbttx
- AllOfDecodedScriptSegwit
- AllOfFeeHorizonEstimateFail
- AllOfFeeHorizonEstimatePass
- AllOfMempoolEntryFees
- AllOfPsbtWitnessUtxoScriptPubKey
- AllOfRawFeeEstimateLong
- AllOfRawFeeEstimateMedium
- AllOfRawFeeEstimateShort
- AllOfRawMempoolDataSequence
- AllOfTestMempoolAcceptResultFees
- AllOfTxOutScriptPubKey
- AnalyzePsbtRequest
- AnalyzePsbtResponse
- BigInt
- Bip32Deriv
- Block1
- Block2
- Block3
- BlockResponse
- BlockStats
- BlockVin2
- BlockVin3
- BlockchainInfo
- BlocksResponse
- BtcTx2
- BtcTx3
- ChainTxStats
- CombinePsbtRequest
- CombinePsbtResponse
- CombineRawTransactionResponse
- ConvertToPsbtResponse
- CreatePsbtInput
- CreatePsbtOutput
- CreatePsbtRequest
- CreatePsbtResponse
- CreateRawTransactionResponse
- DecodePsbtRequest
- DecodePsbtResponse
- DecodeResponse
- DecodeScriptRequest
- DecodeScriptResponse
- DecodeTransactionResponse
- DecodedInscription
- DecodedPsbt
- DecodedPsbtInput
- DecodedPsbtOutput
- DecodedScript
- EstimateRawFeeRequest
- EstimateRawFeeResponse
- EstimateSmartFeeRequest
- EstimateSmartFeeResponse
- FeeHorizonEstimate
- FeeRange
- FetchInscriptionsResponse
- GetAddressBalanceResponse
- GetAddressBalanceResponseData
- GetAddressDeltasResponse
- GetAddressResponse
- GetAddressRuneDeltasResponse
- GetAddressUtxosResponse
- GetBlockCountResponse
- GetBlockDecodedResponse
- GetBlockHashByHeightResponse
- GetBlockHexResponse
- GetBlockInscriptionsResponse
- GetBlockPrevoutResponse
- GetBlockResponse
- GetBlockStatsRequest
- GetBlockStatsResponse
- GetBlockSummaryResponse
- GetBlockchainInfoResponse
- GetBlocksResponse
- GetChainTxStatsRequest
- GetChainTxStatsResponse
- GetDifficultyResponse
- GetInscriptionChildResponse
- GetInscriptionResponse
- GetLatestBlockHashResponse
- GetLatestBlockHeightResponse
- GetLatestBlockTimeResponse
- GetLatestInscriptionsResponse
- GetLatestRunesResponse
- GetMempoolAncestorsRequest
- GetMempoolAncestorsResponse
- GetMempoolDescendantsRequest
- GetMempoolDescendantsResponse
- GetMempoolInfoResponse
- GetMiningInfoResponse
- GetNetworkHashPsRequest
- GetNetworkHashPsResponse
- GetRawMempoolRequest
- GetRawMempoolResponse
- GetRawTransactionDecodeResponse
- GetRawTransactionHexResponse
- GetRawTransactionPrevoutResponse
- GetRuneResponse
- GetSatoshiResponse
- GetStatusResponse
- GetTxOutProofResponse
- GetTxOutResponse
- GetTxSpendingPrevoutResponse
- GithubComSatstreamSsUtilsDatabaseAddressDelta
- GithubComSatstreamSsUtilsOrdServerResponsesRuneDetails
- GithubComSatstreamSsUtilsOrdServerResponsesRuneListEntry
- GithubComSatstreamSsUtilsOrdServerResponsesRunesListResponse
- InlineResponse200
- InlineResponse2001
- Input
- InscriptionData
- InscriptionResponse
- JoinPsbtsRequest
- JoinPsbtsResponse
- LatestInscriptionsResponse
- MempoolAncestorsData
- MempoolDescendantsData
- MempoolEntry
- MempoolFees
- MempoolInfo
- MempoolSequence
- MiningInfo
- Output
- OutputResponse
- PrevOut
- PsbtAnalysis
- PsbtBip32Deriv
- PsbtInputAnalysis
- PsbtMissingData
- PsbtWitnessUtxo
- RawFeeEstimate
- RawMempoolData
- RawTx1
- RawTx2
- RuneResponse
- RuneTerms
- RunesBalance
- RunestoneData
- SatoshiResponse
- Script
- ScriptPubKey
- ScriptSig
- SegwitDetails
- SendRawTransactionResponse
- SmartFeeEstimate
- StatusResponse
- TestMempoolAcceptRequest
- TestMempoolAcceptResponse
- TestMempoolAcceptResult
- TestMempoolFees
- Transaction
- TransactionCombineRawTransactionRequest
- TransactionConvertToPsbtRequest
- TransactionCreateRawTxInput
- TransactionCreateRawTxRequest
- TransactionGetTxOutProofRequest
- TransactionGetTxOutRequest
- TransactionGetTxSpendingPrevoutRequest
- TransactionSendRawTransactionRequest
- TransactionVerifyTxOutProofRequest
- TxOut
- TxSpendingPrevoutInput
- TxSpendingPrevoutResult
- TxVin1
- TxVin2
- UnknownFields
- UtilsResponseEnvelope
- ValidateAddressResponse
- ValidateAddressResult
- VerifyTxOutProofResponse
- Vout
Documentation For Authorization
ApiKeyAuth
- Type: API key
Example
auth := context.WithValue(context.Background(), sw.ContextAPIKey, sw.APIKey{
Key: "APIKEY",
Prefix: "Bearer", // Omit if not necessary.
})
r, err := client.Service.Operation(auth, args)
Author
# Functions
CacheExpires helper function to determine remaining time before repeating a request.
NewAPIClient creates a new API client.
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
ContextAccessToken takes a string oauth2 access token as authentication for the request.
ContextAPIKey takes an APIKey as authentication for the request.
ContextBasicAuth takes BasicAuth as authentication for the request.
ContextOAuth2 takes a oauth2.TokenSource as authentication for the request.
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
The script signature.
Detailed previous output.
The final script sig.
Decoded network transaction for non-witness UTXOs.
The redeem script.
Unknown fields.
The witness script.
Transaction output for witness UTXOs.
The redeem script.
Unknown fields.
The witness script.
The decoded network-serialized unsigned transaction.
The unknown global fields.
Witness script details.
Information about highest range of feerates to fail.
Information about lowest range of feerates to succeed.
Fee information.
The script pub key.
Estimate for long time horizon.
Estimate for medium time horizon.
Estimate for short time horizon.
Only if mempool_sequence is true.
Transaction fees.
The public key script.
No description provided by the author
No description provided by the author
APIClient manages communication with the Satstream API API v1.0 In most cases there should be only one, shared, APIClient.
APIKey provides API key based authentication to a request passed via context using ContextAPIKey.
No description provided by the author
BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GenericSwaggerError Provides access to the body, error and model on returned errors.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author