mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-25 06:42:16 +00:00
14 lines
237 B
Go
14 lines
237 B
Go
|
package core
|
||
|
|
||
|
import (
|
||
|
ctypes "github.com/tendermint/tendermint/rpc/core/types"
|
||
|
)
|
||
|
|
||
|
func Tx(hash []byte) (*ctypes.ResultTx, error) {
|
||
|
r, err := txIndexer.Tx(hash)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return &ctypes.ResultTx{*r}, nil
|
||
|
}
|