Skip to main content

GetTransactionReceipts

An enhanced API that gets all transaction receipts for a given block by number or block hash. Returns geth's Receipt.

func GetTransactionReceipts(arg types.BlockNumberOrHash) (receipts []*types.Receipt, err error)
func main() {
...
alchemy := gas.NewAlchemy(setting)
res, err := alchemy.Core.GetTransactionReceipts(
types.BlockNumberOrHash{
BlockNumber: "0xF1D1C6",
},
)
}