Categorygithub.com/satstream/satstream-go-sdk
modulepackage
0.0.16
Repository: https://github.com/satstream/satstream-go-sdk.git
Documentation: pkg.go.dev

# 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.45
  • 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

ClassMethodHTTP requestDescription
AddressesApiGetAddressGet /address/{address}Get address info
AddressesApiGetAddressBalanceGet /address/{address}/balanceGet address balance
AddressesApiGetAddressDeltasGet /address/{address}/deltasGet address deltas
AddressesApiGetAddressRuneDeltasGet /address/{address}/deltas/runesGet address rune deltas
AddressesApiGetAddressUtxosGet /address/{address}/outputsGet UTXOs for an address
AddressesApiValidateAddressGet /address/{address}/validateValidate address
BlocksApiGetBlockCountGet /blockcountGet the height of the latest block
BlocksApiGetBlockDecodedGet /block/raw/{identifier}/decodedGet block by hash or height (verbosity 2)
BlocksApiGetBlockHashByHeightGet /blockhash/{block_height}Returns blockhash of specified block.
BlocksApiGetBlockHexGet /block/raw/{identifier}/hexGet block by hash or height (verbosity 0)
BlocksApiGetBlockInfoGet /block/{identifier}Get block info by hash or height
BlocksApiGetBlockPrevoutGet /block/raw/{identifier}/prevoutGet block by hash or height (verbosity 3)
BlocksApiGetBlockStatsPost /block/statsGet block stats
BlocksApiGetBlockSummaryGet /block/raw/{identifier}/summaryGet block by hash or height (verbosity 1)
BlocksApiGetBlockchainInfoGet /blockchain/infoGet blockchain information
BlocksApiGetBlocksGet /blocksReturns the latest block height, last 100 block hashes, and featured inscriptions
BlocksApiGetLatestBlockHeightGet /blockheightReturns the height of the latest block.
BlocksApiGetLatestBlockhashGet /blockhashReturns blockhash for the latest block.
BlocksApiGetLatestBlocktimeGet /blocktimeGet the timestamp of the latest block
FeesApiEstimateRawFeePost /fee/estimate-rawEstimate Raw Fee
FeesApiEstimateSmartFeePost /fee/estimate-smartEstimate smart fee
InscriptionsApiFetchInscriptionChildGet /inscription/{inscription_id}/{child_index}Get inscription child info
InscriptionsApiFetchInscriptionsPost /inscriptionsFetch multiple inscriptions
InscriptionsApiGetBlockInscriptionsGet /inscriptions/block/{block_height}Get inscriptions in a specific block
InscriptionsApiGetBlockInscriptionsPageGet /inscriptions/block/{block_height}/{page}Get paginated inscriptions in a specific block
InscriptionsApiGetInscriptionGet /inscription/{inscription_id}Get inscription info
InscriptionsApiGetLatestInscriptionsGet /inscriptionsGet latest inscriptions
InscriptionsApiGetLatestInscriptionsPageGet /inscriptions/{page}Get latest inscriptions page
MempoolApiGetMempoolAncestorsPost /mempool/ancestorsGet mempool ancestors
MempoolApiGetMempoolDescendantsPost /mempool/descendantsGet mempool descendants
MempoolApiGetMempoolInfoGet /mempool/infoGet mempool information
MempoolApiGetRawMempoolPost /mempool/rawGet raw mempool
MempoolApiTestMempoolAcceptPost /mempool/test-acceptTest mempool accept
MiningApiGetMiningInfoGet /mining/infoGet mining information
MiningApiGetNetworkHashpsPost /mining/networkhashpsGet network hash per second
NetworkApiGetChainTxStatsPost /chain/txstatsGet chain tx stats
NetworkApiGetDifficultyGet /chain/difficultyGet difficulty
OutputsApiGetOutputByOutpointGet /output/{outpoint}Get output info by outpoint
OutputsApiGetOutputsPost /outputsGet multiple outputs
PSBTsApiAnalyzePsbtPost /psbt/analyzeAnalyze PSBT
PSBTsApiCombinePsbtPost /psbt/combineCombine PSBTs
PSBTsApiCreatePsbtPost /psbt/createCreate PSBT
PSBTsApiDecodePsbtPost /psbt/decodeDecode PSBT
PSBTsApiJoinPsbtsPost /psbt/joinJoin PSBTs
RunesApiGetLatestRunesGet /runesGet latest runes
RunesApiGetLatestRunesPageGet /runes/{page}Get latest runes page
RunesApiGetRuneGet /rune/{identifier}Get rune info
SatoshisApiGetSatoshiGet /sat/{number}Get satoshi info
ScriptsApiDecodeScriptPost /script/decodeDecode Script
StatusApiGetStatusGet /statusGet server status
TransactionsApiCombineRawTransactionPost /tx/combineCombine Raw Transactions
TransactionsApiConvertToPsbtPost /tx/convert-to-psbtConvert Raw Transaction to PSBT
TransactionsApiCreateRawTransactionPost /tx/createCreate Raw Transaction
TransactionsApiDecodeTxInscriptionsGet /tx/{txid}/inscriptionsDecode transaction inscriptions
TransactionsApiGetRawTransactionGet /tx/{txid}/raw/decodeGet raw transaction (verbosity 1)
TransactionsApiGetRawTransactionHexGet /tx/{txid}/hexGet raw transaction (verbosity 0)
TransactionsApiGetRawTransactionPrevoutGet /tx/{txid}/raw/prevoutGet raw transaction with prevouts (verbosity 2)
TransactionsApiGetTxOutPost /tx/outGet transaction output
TransactionsApiGetTxOutProofPost /tx/outproofGet transaction output proof
TransactionsApiGetTxOutSetInfoPost /tx/out/set/infoGet transaction output set information
TransactionsApiGetTxSpendingPrevoutPost /tx/spending-prevoutGet transaction spending prevout
TransactionsApiSendRawTransactionPost /tx/sendSend raw transaction
TransactionsApiVerifyTxOutProofPost /tx/outproof/verifyVerify transaction output proof

Documentation For Models

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

[email protected]

# 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.
Detailed view of unspendable categories.
Info on amounts in the block at this height.
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
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
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