code: func (s *PublicTransactionPoolAPI) GetRawTransactionByHash(ctx context.Context, hash common.Hash) (hexutil.Bytes, error) {
  	var tx *types.Transaction
  
  	// Retrieve a finalized transaction, or a pooled otherwise
  	if tx, _, _, _ = rawdb.ReadTransaction(s.b.ChainDb(), hash); tx == nil {
  		if tx = s.b.GetPoolTransaction(hash); tx == nil {
  			// Transaction not found anywhere, abort
  			return nil, nil
  		}
  	}
  	// Serialize to RLP and return
  	return rlp.EncodeToBytes(tx)
  }
docs: // GetRawTransactionByHash returns the bytes of the transaction for the given hash.