Versions in this module Expand all Collapse all v0 v0.4.0 Apr 4, 2024 v0.3.0 Feb 28, 2024 Changes in this version + const ApplicationCbor + const ApplicationJson + const ContentType + const HeaderLink + const HeaderLinkValueFormat + const LockReasonAddFees + const LockReasonCollectDust + const LockReasonManual + const LockReasonReclaimFees + const QueryParamLimit + const QueryParamOffsetKey + const UserAgent + var ErrInvalidRequest = errors.New("invalid request") + var ErrNotFound = errors.New("not found") + var ErrRecordNotFound = errors.New("not found") + var SwaggerFiles embed.FS + func CreateBuckets(update func(fn func(*bolt.Tx) error) error, buckets ...[]byte) error + func DecodeResponse(rsp *http.Response, successStatus int, data any, allowEmptyResponse bool) error + func EncodeHex(value []byte) string + func EnsureSubBucket(tx *bolt.Tx, parentBucket []byte, bucket []byte, allowAbsent bool) (*bolt.Bucket, error) + func ExtractOffsetMarker(rsp *http.Response) (string, error) + func GetURL(url url.URL, pathElements ...string) *url.URL + func ParseHex[T types.UnitID | TxHash | []byte](value string, required bool) (T, error) + func ParseMaxResponseItems(s string, maxValue int) (int, error) + func SetLinkHeader(u *url.URL, w http.ResponseWriter, next string) + func SetPaginationParams(u *url.URL, offset string, limit int) + func SetQueryParam(u *url.URL, key, val string) + type Bill struct + DCTargetUnitBacklink []byte + DCTargetUnitID []byte + Id []byte + Locked LockReason + TxHash []byte + Value uint64 + func (x *Bill) GetID() []byte + func (x *Bill) GetTxHash() []byte + func (x *Bill) GetValue() uint64 + func (x *Bill) IsLocked() bool + type Bills struct + Bills []*Bill + type EmptyResponse struct + type ErrorResponse struct + Message string + type InfoResponse struct + Name string + SystemID string + type LockReason uint64 + func (r LockReason) String() string + type Predicate []byte + type Proof struct + TxProof *types.TxProof + TxRecord *types.TransactionRecord + func NewTxProof(txIdx int, b *types.Block, hashAlgorithm crypto.Hash) (*Proof, error) + func (p *Proof) GetActualFee() uint64 + type PubKey []byte + func DecodePubKeyHex(pubKey string) (PubKey, error) + func ParsePubKey(pubkey string, required bool) (PubKey, error) + func (pk PubKey) Hash() PubKeyHash + type PubKeyHash []byte + type ResponseWriter struct + LogErr func(err error) + func (rw *ResponseWriter) ErrorResponse(w http.ResponseWriter, code int, err error) + func (rw *ResponseWriter) InvalidParamResponse(w http.ResponseWriter, name string, err error) + func (rw *ResponseWriter) WriteCborResponse(w http.ResponseWriter, data any) + func (rw *ResponseWriter) WriteErrorResponse(w http.ResponseWriter, err error) + func (rw *ResponseWriter) WriteResponse(w http.ResponseWriter, data any) + type RoundNumber struct + LastIndexedRoundNumber uint64 + RoundNumber uint64 + type Transactions struct + Transactions []*types.TransactionOrder + type TxHash []byte + type TxHistoryRecord struct + CounterParty []byte + Kind TxHistoryRecordKind + State TxHistoryRecordState + Timeout uint64 + TxHash TxHash + UnitID types.UnitID + type TxHistoryRecordKind byte + const INCOMING + const OUTGOING + type TxHistoryRecordState byte + const CONFIRMED + const FAILED + const UNCONFIRMED + type TxProof = types.TxProof