Categorygithub.com/satstream/satstream-go-sdk
repositorypackage
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]