code: func (t *Transaction) getReceipt(ctx context.Context) (*types.Receipt, error) {
  	if _, err := t.resolve(ctx); err != nil {
  		return nil, err
  	}
  
  	if t.block == nil {
  		return nil, nil
  	}
  
  	receipts, err := t.block.resolveReceipts(ctx)
  	if err != nil {
  		return nil, err
  	}
  
  	return receipts[t.index], nil
  }
docs: // getReceipt returns the receipt associated with this transaction, if any.