mirror of
https://github.com/alexgo-io/gaze-indexer.git
synced 2026-04-30 20:52:01 +08:00
17 lines
436 B
Go
17 lines
436 B
Go
package usecase
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/cockroachdb/errors"
|
|
"github.com/gaze-network/indexer-network/modules/runes/internal/entity"
|
|
)
|
|
|
|
func (u *Usecase) GetTransactionsByHeight(ctx context.Context, height uint64) ([]*entity.RuneTransaction, error) {
|
|
txs, err := u.runesDg.GetRuneTransactionsByHeight(ctx, height)
|
|
if err != nil {
|
|
return nil, errors.Wrap(err, "error during GetTransactionsByHeight")
|
|
}
|
|
return txs, nil
|
|
}
|